|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.dataengine.autorun.AutoRunManager
Manages operations which need to be run automatically. This class maintains a collection of timers which are used for scheduling auto-run operations.
Field Summary | |
static int |
AUTO_RUN_DEVELOPMENT_ENABLED
|
static int |
AUTO_RUN_DISABLED
|
static int |
AUTO_RUN_EMAIL_ENABLED
Deprecated. |
static int |
AUTO_RUN_ENABLED
|
static int |
AUTO_RUN_PRODUCTION_ENABLED
|
Method Summary | |
void |
cancelAllTasks(AutoRunOperation pOperation,
boolean pPermanently)
Cancels all of the operation's tasks. |
protected static void |
cancelAutoRun(Operation pOperation)
Deactivates auto-run for the specified operation. |
void |
cancelTask(AutoRunOperation pOperation,
Operation pTargetOperation,
boolean pPermanently)
Cancels the task associated with the specified operations. |
void |
cancelTask(int pAutoRunId,
int pTargetOperationId,
boolean pPermanently)
Cancels the task associated with the specified operations. |
void |
cancelTask(int pAutoRunId,
Operation pTargetOperation,
boolean pPermanently)
Cancels the task associated with the specified operations. |
protected java.util.List |
getOperationsForInitialization(java.lang.String metadataAlias)
Gets all operations in all applications that meet the following conditions: The operation has an autorun operation The operation's application autorun operation type is enabled (according to the operation's application) This method only needs to be invoked once, when the DataEngine first starts up. |
void |
initialize(java.lang.String metadataAlias)
Schedules all operation which are automatically run |
void |
rescheduleAllTasks(AutoRunOperation pOperation)
Cancels all of the operation's tasks and then reschedules them. |
void |
rescheduleTask(AutoRunOperation pOperation,
Operation pTargetOperation)
Cancels the task associated with the specified operations, and the reschedules it. |
void |
schedule(AutoRunTask pTask)
Schedules a task. |
void |
schedule(Operation o)
Schedules an operation to be run automatically. |
static AutoRunManager |
singleton()
Gets the singleton instance of AutoRunManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int AUTO_RUN_DISABLED
public static final int AUTO_RUN_ENABLED
public static final int AUTO_RUN_PRODUCTION_ENABLED
public static final int AUTO_RUN_DEVELOPMENT_ENABLED
public static final int AUTO_RUN_EMAIL_ENABLED
Method Detail |
public void cancelAllTasks(AutoRunOperation pOperation, boolean pPermanently) throws CMException
pOperation
- The autorun operation whose tasks will be canceledpPermanently
- If the link between the autorun operation and all of its target operations
should be severed
CMException
protected static void cancelAutoRun(Operation pOperation) throws CMException
CMException
public void cancelTask(int pAutoRunId, int pTargetOperationId, boolean pPermanently) throws CMException
pAutoRunId
- The id of the autorun operation whose task will be canceledpPermanently
- If the link between the autorun operation the target operation
should be severed
CMException
public void cancelTask(int pAutoRunId, Operation pTargetOperation, boolean pPermanently) throws CMException
pAutoRunId
- The id of the autorun operation whose task will be canceledpTargetOperation
- The target operation whose task will be canceledpPermanently
- If the link between the autorun operation the target operation
should be severed
CMException
public void cancelTask(AutoRunOperation pOperation, Operation pTargetOperation, boolean pPermanently) throws CMException
pOperation
- The autorun operation whose task will be canceledpTargetOperation
- The target operation whose task will be canceledpPermanently
- If the link between the autorun operation the target operation
should be severed
CMException
protected java.util.List getOperationsForInitialization(java.lang.String metadataAlias) throws CMException
CMException
public void initialize(java.lang.String metadataAlias) throws CMException
CMException
public void rescheduleAllTasks(AutoRunOperation pOperation) throws CMException
CMException
public void rescheduleTask(AutoRunOperation pOperation, Operation pTargetOperation) throws CMException
CMException
public void schedule(AutoRunTask pTask) throws CMException
CMException
public void schedule(Operation o) throws CMException
CMException
public static AutoRunManager singleton()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |