Package org.pentaho.platform.api.engine
Interface IBackgroundExecution
-
public interface IBackgroundExecution
-
-
Field Summary
Fields Modifier and Type Field Description static String
BACKGROUND_ACTION_NAME_STR
static String
BACKGROUND_SUBMITTED
static String
DEFAULT_USER_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
backgroundExecuteAction(IPentahoSession userSession, IParameterProvider parameterProvider)
Queues the action specified in the request parameters for execution in the backgroundIContentItem
getBackgroundContent(String contentGUID, IPentahoSession userSession)
Gets the content generated by background executionList<IContentItem>
getBackgroundExecutedContentList(IPentahoSession userSession)
Gets a list of content GUIDs of background executed jobsIOutputHandler
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.List<IJobDetail>
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 Detail
-
BACKGROUND_ACTION_NAME_STR
static final String BACKGROUND_ACTION_NAME_STR
- See Also:
- Constant Field Values
-
BACKGROUND_SUBMITTED
static final String BACKGROUND_SUBMITTED
- See Also:
- Constant Field Values
-
DEFAULT_USER_NAME
static final String DEFAULT_USER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
void removeBackgroundExecutedContentForID(String contentGUID, IPentahoSession userSession)
Removes the content generated by background execution- Parameters:
contentGUID
- The GUID of the content generateduserSession
- The user session
-
getBackgroundContent
IContentItem getBackgroundContent(String contentGUID, IPentahoSession userSession)
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
List<IContentItem> getBackgroundExecutedContentList(IPentahoSession userSession)
Gets a list of content GUIDs of background executed jobs- Parameters:
userSession
- User session- Returns:
- List of executed content ids
-
trackBackgroundExecution
void trackBackgroundExecution(IPentahoSession userSession, String GUID)
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.
-
-