|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBackgroundExecution
Field Summary | |
---|---|
static String |
BACKGROUND_ACTION_NAME_STR
|
static String |
BACKGROUND_SUBMITTED
|
static String |
DEFAULT_USER_NAME
|
Method Summary | |
---|---|
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. |
IPentahoSession |
getEffectiveUserSession(String user)
When the job runs in background, gets the effective user session for the user executing the job |
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 |
Field Detail |
---|
static final String BACKGROUND_ACTION_NAME_STR
static final String BACKGROUND_SUBMITTED
static final String DEFAULT_USER_NAME
Method Detail |
---|
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 background
BackgroundExecutionException
List<IJobDetail> getScheduledAndExecutingBackgroundJobs(IPentahoSession userSession) throws BackgroundExecutionException
userSession
- The usersession
BackgroundExecutionException
void 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 session
List<IContentItem> getBackgroundExecutedContentList(IPentahoSession userSession)
userSession
- User session
IPentahoSession getEffectiveUserSession(String user)
user
- The user name
void 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |