02/28/2005
 

com.epicentric.task
Class InvocationDefinition

java.lang.Object
  |
  +--com.epicentric.task.InvocationDefinition

public class InvocationDefinition
extends Object

This is an object that represents how a task should be run.

Since:
4.5
See Also:
TaskManager

Field Summary
static Date DATE_FOREVER
          Date representing the end of time.
static Date DATE_IMMEDIATELY
          Date representing the beginning of time.
 
Constructor Summary
InvocationDefinition()
           
 
Method Summary
 Date getActivationDate()
          Get the earliest date for this task to be run.
 Date getDeactivationDate()
          Get the latest date for this task to be run.
 boolean isBroadcasted()
          Get whether this task should be broadcasted to other nodes in cluster for execution after its execution by this node.
 void setActivationDate(Date activationDate)
          Set the earliest date for this task to be run.
 void setBroadcasted(boolean broadcasted)
          Set whether this task should be broadcasted to other nodes in cluster for execution after its execution by this node.
 void setDeactivationDate(Date deactivationDate)
          Set the latest date for this task to be run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FOREVER

public static final Date DATE_FOREVER
Date representing the end of time.

DATE_IMMEDIATELY

public static final Date DATE_IMMEDIATELY
Date representing the beginning of time.
Constructor Detail

InvocationDefinition

public InvocationDefinition()
Method Detail

getActivationDate

public Date getActivationDate()
Get the earliest date for this task to be run. Defaults to InvocationDefinition.DATE_IMMEDIATELY.
Returns:
The activation date for the task

setActivationDate

public void setActivationDate(Date activationDate)
Set the earliest date for this task to be run.
Parameters:
activationDate - The activation date for the task

getDeactivationDate

public Date getDeactivationDate()
Get the latest date for this task to be run. Defaults to InvocationDefinition.DATE_FOREVER.
Returns:
The deactivation date for the task

setDeactivationDate

public void setDeactivationDate(Date deactivationDate)
Set the latest date for this task to be run.
Parameters:
deactivationDate - The deactivation date for the task

isBroadcasted

public boolean isBroadcasted()
Get whether this task should be broadcasted to other nodes in cluster for execution after its execution by this node. Tasks received via the broadcast are non-guaranteed and cannot be broadcasted to other nodes after their execution). Defaults to false.
Returns:
True to broadcast to the cluster, false otherwise.

setBroadcasted

public void setBroadcasted(boolean broadcasted)
Set whether this task should be broadcasted to other nodes in cluster for execution after its execution by this node. Tasks received via the broadcast are non-guaranteed and cannot be broadcasted to other nodes after their execution).

02/28/2005
 

Copyright and Trademark Notices