Package org.pentaho.platform.api.engine
Interface IBackgroundExecution
public interface IBackgroundExecution
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbackgroundExecuteAction
(IPentahoSession userSession, IParameterProvider parameterProvider) Queues the action specified in the request parameters for execution in the backgroundgetBackgroundContent
(String contentGUID, IPentahoSession userSession) Gets the content generated by background executiongetBackgroundExecutedContentList
(IPentahoSession userSession) Gets a list of content GUIDs of background executed jobsgetContentOutputHandler
(String location, String fileName, String solutionName, IPentahoSession userSession, IParameterProvider parameterProvider) Returns the output handler for content, specific to the implementation of the background execution helper.getScheduledAndExecutingBackgroundJobs
(IPentahoSession userSession) Gets the list of items scheduled for background execution, and those currently executingvoid
removeBackgroundExecutedContentForID
(String contentGUID, IPentahoSession userSession) Removes the content generated by background executionvoid
trackBackgroundExecution
(IPentahoSession userSession, String GUID) This provides an entry point for tracking the created background execution task
-
Field Details
-
BACKGROUND_ACTION_NAME_STR
- See Also:
-
BACKGROUND_SUBMITTED
- See Also:
-
DEFAULT_USER_NAME
- See Also:
-
-
Method Details
-
backgroundExecuteAction
String backgroundExecuteAction(IPentahoSession userSession, IParameterProvider parameterProvider) throws BackgroundExecutionException Queues the action specified in the request parameters for execution in the background- Parameters:
userSession
- IPentahoSession of the session executing in backgroundparameterProvider
- Provides the parameters containing the action to execute in the background- Returns:
- String response that will be used for user feedback.
- Throws:
BackgroundExecutionException
-
getScheduledAndExecutingBackgroundJobs
List<IJobDetail> getScheduledAndExecutingBackgroundJobs(IPentahoSession userSession) throws BackgroundExecutionException Gets the list of items scheduled for background execution, and those currently executing- Parameters:
userSession
- The usersession- Returns:
- List of scheduled/executing jobs
- Throws:
BackgroundExecutionException
-
removeBackgroundExecutedContentForID
Removes the content generated by background execution- Parameters:
contentGUID
- The GUID of the content generateduserSession
- The user session
-
getBackgroundContent
Gets the content generated by background execution- Parameters:
contentGUID
- The GUID for the contentuserSession
- The user session- Returns:
- IContentItem pointing to the generated content
-
getBackgroundExecutedContentList
Gets a list of content GUIDs of background executed jobs- Parameters:
userSession
- User session- Returns:
- List of executed content ids
-
trackBackgroundExecution
This provides an entry point for tracking the created background execution task- Parameters:
userSession
-GUID
-
-
getContentOutputHandler
IOutputHandler getContentOutputHandler(String location, String fileName, String solutionName, IPentahoSession userSession, IParameterProvider parameterProvider) Returns the output handler for content, specific to the implementation of the background execution helper.- Parameters:
location
- Location for the contentfileName
- File name for the contentsolutionName
- Solution nameuserSession
- IPentahoSession of the callerparameterProvider
- parameter provider containing request parameters- Returns:
- IOutputHandler implementation for storing the content.
-