planetj.dataengine.autorun
Class BatchProcessTask

java.lang.Object
  extended byjava.util.TimerTask
      extended byplanetj.util.CMTimerTask
          extended byplanetj.dataengine.task.DataEngineTimerTask
              extended byplanetj.dataengine.autorun.AutoRunTask
                  extended byplanetj.dataengine.autorun.BatchProcessTask
All Implemented Interfaces:
java.lang.Runnable

public class BatchProcessTask
extends AutoRunTask

A Task used for processing the results of an operation periodically.


Constructor Summary
protected BatchProcessTask()
          Constructor.
protected BatchProcessTask(AutoRunOperation sourceOp, Operation targetOp)
          Constructor.
 
Method Summary
 void autoRun()
          Process the results of the target Operation.
 long getFrequency()
          Gets the frequency (in seconds) at which the task should run
 java.util.Date getStartTime()
          Gets the exact day and time when this task should begin executing
 
Methods inherited from class planetj.dataengine.autorun.AutoRunTask
clone, cloneTask, getAutoRunOperation, getAutoRunOperationId, getAutoRunPropertyGroup, getMetadataAlias, getTargetOperation, getTargetOperationId, performTask, setAutoRunOperationId, setMetadataAlias, setTargetOperationId
 
Methods inherited from class planetj.dataengine.task.DataEngineTimerTask
postTask, preTask
 
Methods inherited from class planetj.util.CMTimerTask
addListener, getNewTaskEvent, getTaskEvent, removeListener, run, taskCompleted, taskFailed, taskStarted
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchProcessTask

protected BatchProcessTask()
Constructor.


BatchProcessTask

protected BatchProcessTask(AutoRunOperation sourceOp,
                           Operation targetOp)
Constructor.

Parameters:
sourceOp - Operation this task was created from
targetOp - Operation this task is to process results from
Method Detail

autoRun

public void autoRun()
             throws CMException
Process the results of the target Operation.

Specified by:
autoRun in class AutoRunTask
Throws:
CMException

getFrequency

public long getFrequency()
                  throws CMException
Gets the frequency (in seconds) at which the task should run

Specified by:
getFrequency in class AutoRunTask
Throws:
CMException

getStartTime

public java.util.Date getStartTime()
                            throws CMException
Gets the exact day and time when this task should begin executing

Specified by:
getStartTime in class AutoRunTask
Throws:
CMException