|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JobManagerContext
Context interface for DRMConnector to take advantage of services provided by the JobManager
Method Summary | |
---|---|
DRMConnector |
getDRMConnector(java.lang.String pName)
get the named DRMConnector from the context |
JobInstanceStore |
getJobInstanceStore()
get the job instance store |
void |
schedule(JobInstance pJobInstance,
DRMConnector pConnector)
schedule the given DRMConnector for immediate execution in this job context for the given job |
void |
schedule(JobInstance pJobInstance,
DRMConnector pConnector,
long pRepeatInterval)
schedule the given DRMConnector for repeated execution in this job context for the given job |
void |
schedule(JobInstance pJobInstance,
DRMConnector pConnector,
java.lang.String pCronExpression)
schedule the given DRMConnector for repeated execution in this job context for the given job |
void |
schedule(JobInstance pJobInstance,
java.lang.String pConnectorName)
schedule the given named DRMConnector for immediate execution in this job context for the given job |
void |
schedule(JobInstance pJobInstance,
java.lang.String pConnectorName,
long pRepeatInterval)
schedule the given named DRMConnector for immediate execution in this job context for the given job |
void |
schedule(JobInstance pJobInstance,
java.lang.String pConnectorName,
java.lang.String pCronExpression)
schedule the given named DRMConnector for immediate execution in this job context for the given job |
void |
scheduleImmediately()
get the DRMConnector that has been added by the schedule operations to be scheduled immediately. |
void |
unschedule()
unschedule the currently executing DRMConnector task this context is associated with. |
Method Detail |
---|
DRMConnector getDRMConnector(java.lang.String pName)
pName
- the name of the DRMConnector to retrieve
JobInstanceStore getJobInstanceStore()
void schedule(JobInstance pJobInstance, DRMConnector pConnector) throws JobManagerException
pJobInstance
- the job instance to run through the DRMConnectorpConnector
- the DRMConnector
JobManagerException
- if the DRMConnector cannot be scheduledvoid schedule(JobInstance pJobInstance, java.lang.String pConnectorName) throws JobManagerException
pJobInstance
- the job instance to run through the DRMConnectorpConnectorName
- the name of the DRMConnector resolvable by the context
JobManagerException
- if the DRMConnector cannot be scheduledvoid schedule(JobInstance pJobInstance, DRMConnector pConnector, long pRepeatInterval) throws JobManagerException
pJobInstance
- the job instance to run through the DRMConnectorpConnector
- the DRMConnectorpRepeatInterval
- the period between repeated execution
JobManagerException
- if the DRMConnector cannot be scheduledvoid schedule(JobInstance pJobInstance, java.lang.String pConnectorName, long pRepeatInterval) throws JobManagerException
pJobInstance
- the job instance to run through the DRMConnectorpConnectorName
- the name of the DRMConnector resolvable by the contextpRepeatInterval
- the period between repeated execution
JobManagerException
- if the DRMConnector cannot be scheduledvoid schedule(JobInstance pJobInstance, DRMConnector pConnector, java.lang.String pCronExpression) throws java.text.ParseException, JobManagerException
pJobInstance
- the job instance to run through the DRMConnectorpConnector
- the DRMConnectorpCronExpression
- the CRON job expression to specify the schedule
java.text.ParseException
- if the cron expression is invalid
JobManagerException
- if the DRMConnector cannot be scheduledvoid schedule(JobInstance pJobInstance, java.lang.String pConnectorName, java.lang.String pCronExpression) throws java.text.ParseException, JobManagerException
pJobInstance
- the job instance to run through the DRMConnectorpConnectorName
- the name of the DRMConnector resolvable by the contextpCronExpression
- the CRON job expression to specify the schedule
java.text.ParseException
- if the cron expression is invalid
JobManagerException
- if the DRMConnector cannot be scheduledvoid scheduleImmediately() throws JobManagerException
JobManagerException
void unschedule()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |