public interface IBackgroundExecution
| Modifier and Type | Field and Description |
|---|---|
static String |
BACKGROUND_ACTION_NAME_STR |
static String |
BACKGROUND_SUBMITTED |
static String |
DEFAULT_USER_NAME |
| Modifier and Type | Method and Description |
|---|---|
String |
backgroundExecuteAction(IPentahoSession userSession,
IParameterProvider parameterProvider)
Queues the action specified in the request parameters for execution in the background
|
IContentItem |
getBackgroundContent(String contentGUID,
IPentahoSession userSession)
Gets the content generated by background execution
|
List<IContentItem> |
getBackgroundExecutedContentList(IPentahoSession userSession)
Gets a list of content GUIDs of background executed jobs
|
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.
|
List<IJobDetail> |
getScheduledAndExecutingBackgroundJobs(IPentahoSession userSession)
Gets the list of items scheduled for background execution, and those currently executing
|
void |
removeBackgroundExecutedContentForID(String contentGUID,
IPentahoSession userSession)
Removes the content generated by background execution
|
void |
trackBackgroundExecution(IPentahoSession userSession,
String GUID)
This provides an entry point for tracking the created background execution task
|
static final String BACKGROUND_ACTION_NAME_STR
static final String BACKGROUND_SUBMITTED
static final String DEFAULT_USER_NAME
String backgroundExecuteAction(IPentahoSession userSession, IParameterProvider parameterProvider) throws BackgroundExecutionException
userSession - IPentahoSession of the session executing in backgroundparameterProvider - Provides the parameters containing the action to execute in the backgroundBackgroundExecutionExceptionList<IJobDetail> getScheduledAndExecutingBackgroundJobs(IPentahoSession userSession) throws BackgroundExecutionException
userSession - The usersessionBackgroundExecutionExceptionvoid removeBackgroundExecutedContentForID(String contentGUID, IPentahoSession userSession)
contentGUID - The GUID of the content generateduserSession - The user sessionIContentItem getBackgroundContent(String contentGUID, IPentahoSession userSession)
contentGUID - The GUID for the contentuserSession - The user sessionList<IContentItem> getBackgroundExecutedContentList(IPentahoSession userSession)
userSession - User sessionvoid trackBackgroundExecution(IPentahoSession userSession, String GUID)
userSession - GUID - IOutputHandler getContentOutputHandler(String location, String fileName, String solutionName, IPentahoSession userSession, IParameterProvider parameterProvider)
location - Location for the contentfileName - File name for the contentsolutionName - Solution nameuserSession - IPentahoSession of the callerparameterProvider - parameter provider containing request parameters