com.parabon.client
Class SimulatorJob

java.lang.Object
  extended by com.parabon.client.Job
      extended by com.parabon.client.RemoteJob
          extended by com.parabon.client.SimulatorJob

public class SimulatorJob
extends RemoteJob


Nested Class Summary
protected  class SimulatorJob.Establisher
          Establisher class
 
Nested classes/interfaces inherited from class com.parabon.client.Job
Job.JobConstraints, Job.TaskProxyIterator, Job.TaskProxySet, Job.WeakTaskReference
 
Constructor Summary
SimulatorJob()
           
SimulatorJob(SimulatorSessionManager manager_, java.lang.String jobID_, java.util.Map<java.lang.String,java.lang.String> attributes_, com.parabon.util.ObjectPool pool_, boolean isOriginator_)
           
 
Method Summary
protected  void addTask(com.parabon.message.sp.TaskMessage msg)
          For use when adding a previously serialized task to the job.
 void reestablish()
          Equivalent to reestablish(-1).
 void reestablish(int blockMillis)
          Request that the list of tasks contained in this job be reestablished if possible from a remote repository.
 void reestablish(com.parabon.util.Listener completionListener)
          Similar to reestablish(int), but does not block, instead calling the Listener.alert() method of the given listener when and if results are obtained.
protected  void setManager(SessionManager sm)
           
protected  void stopJob()
           
 
Methods inherited from class com.parabon.client.RemoteJob
addElement, addElementBundle, consumeContentsMessage, consumeTaskMessage, consumeTaskStatusMessage, createTaskID, createTaskMaster, findRemoteTasksByAttribute, getLaunchToken, getOrCreateTaskMaster, notifyListenersChanged, reestablishPartial, remove, setLaunchToken, updateAttach
 
Methods inherited from class com.parabon.client.Job
addElement, addElement, addElement, addElementBundle, addElementBundle, addElementBundle, addListener, addTask, addTask, attributesMatchTemplate, createSerializableTaskSpec, createTaskSpec, destroy, finalize, findTasksByAttribute, getAllowTaskRelease, getAttributes, getElements, getElementURIs, getJobConstraints, getJobID, getListeners, getListeners, getLog, getManager, getPool, getTask, getTaskMaster, getTaskMastersAndReferences, getTaskProxy, getTasks, hasTask, notifyTaskEventOccurred, releaseTask, removeAllListeners, removeListener, resolveElement, setAllowTaskRelease, setJobConstraints, stop
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimulatorJob

public SimulatorJob()

SimulatorJob

public SimulatorJob(SimulatorSessionManager manager_,
                    java.lang.String jobID_,
                    java.util.Map<java.lang.String,java.lang.String> attributes_,
                    com.parabon.util.ObjectPool pool_,
                    boolean isOriginator_)
Method Detail

setManager

protected void setManager(SessionManager sm)
Overrides:
setManager in class RemoteJob

reestablish

public void reestablish()
Description copied from class: Job
Equivalent to reestablish(-1).

Overrides:
reestablish in class RemoteJob
See Also:
Job.reestablish(int)

reestablish

public void reestablish(int blockMillis)
                 throws TimeoutException
Description copied from class: Job
Request that the list of tasks contained in this job be reestablished if possible from a remote repository.

Blocks a maximum of approximately the specified number of milliseconds. If results are not obtained within the specitied timeout, a TimeoutException will be thrown. If blockMillis == -1, will block indefinitely.

Note that this method should never be called with a negative or large block timeout from within an event listener or any other method which must complete in order for further events to be processed, as this would lead to a possible deadlock.

Overrides:
reestablish in class RemoteJob
Throws:
TimeoutException

reestablish

public void reestablish(com.parabon.util.Listener completionListener)
Description copied from class: Job
Similar to reestablish(int), but does not block, instead calling the Listener.alert() method of the given listener when and if results are obtained.

Overrides:
reestablish in class RemoteJob
See Also:
Job.reestablish(int)

stopJob

protected void stopJob()
Overrides:
stopJob in class RemoteJob

addTask

protected void addTask(com.parabon.message.sp.TaskMessage msg)
For use when adding a previously serialized task to the job.

Parameters:
msg -