planetj.dataengine.autorun
Class EmailTask

java.lang.Object
  |
  +--java.util.TimerTask
        |
        +--planetj.util.CMTimerTask
              |
              +--planetj.dataengine.task.DataEngineTimerTask
                    |
                    +--planetj.dataengine.autorun.AutoRunTask
                          |
                          +--planetj.dataengine.autorun.EmailTask
All Implemented Interfaces:
Runnable

public class EmailTask
extends AutoRunTask

A Task used for sending out an operation periodically via email


Constructor Summary
EmailTask(EmailOperation emailOperation, Operation targetOperation)
          EMailTask constructor
 
Method Summary
 void autoRun()
          The action to be performed by this task.
 PropertyGroup getAlternateEmailPropertyGroup()
          Gets properties from another email property group.
 EmailOperation getEmailOperation()
          Gets this EmailTask's Email Operation
 int getEmailOperationId()
          Gets the ID of this EMailTask's Email Operation
 long getFrequency()
          Gets the frequency (in seconds) at which the task should run
 CMMailer getMailer()
          Gets the mailer to use
 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, getMetadataAlias, getTargetOperation, getTargetOperationId, performTask, setAutoRunOperationId
 
Methods inherited from class planetj.dataengine.task.DataEngineTimerTask
postTask, preTask
 
Methods inherited from class planetj.util.CMTimerTask
addListener, getNewTaskEvent, getTaskEvent, removeListener, run
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailTask

public EmailTask(EmailOperation emailOperation,
                 Operation targetOperation)
EMailTask constructor

Method Detail

autoRun

public void autoRun()
             throws CMException
The action to be performed by this task.

Specified by:
autoRun in class AutoRunTask
CMException

getAlternateEmailPropertyGroup

public PropertyGroup getAlternateEmailPropertyGroup()
                                             throws CMException
Gets properties from another email property group.

CMException

getEmailOperation

public EmailOperation getEmailOperation()
                                 throws CMException
Gets this EmailTask's Email Operation

CMException

getEmailOperationId

public int getEmailOperationId()
Gets the ID of this EMailTask's Email Operation


getFrequency

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

Specified by:
getFrequency in class AutoRunTask
CMException

getMailer

public CMMailer getMailer()
                   throws CMException
Gets the mailer to use

CMException

getStartTime

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

Specified by:
getStartTime in class AutoRunTask
CMException