02/28/2005
 

com.epicentric.task
Interface ClusteredTask

All Superinterfaces:
Serializable

public interface ClusteredTask
extends Serializable

Interface to implement that is run by the TaskManager.
Notes to developers using this interface:

  1. If the VM fails during execution of a task, it will be re-run by another node in the cluster. The task should be designed to take this into account.
  2. Remember to specify a serialVersionUID for serial compatibility.
  3. As this may be run some time after addition, account for environmental change such as the object to be referred to has been removed or changed, invalidating the task. This may mean that the task becomes a null operation.

Since:
4.5
See Also:
TaskManager

Method Summary
 void run()
          Method to implement that is run to execute the task.
 

Method Detail

run

public void run()
         throws Throwable
Method to implement that is run to execute the task.

02/28/2005
 

Copyright and Trademark Notices