com.tivoli.twg.engine
Interface RemoteTaskActivatorListener

All Known Implementing Classes:
FSAgent, TWGTaskActivator

public interface RemoteTaskActivatorListener

This interface is used as the callback mechanism when TWGRemoteTaskManager is used to remotely activate a task on the server.


Method Summary
 void taskActivationComplete(long rc, long localID, long remoteID, java.lang.String taskID, long toid, java.lang.String subtaskID, LongValueSet moid, LongValueSet foid)
          This method is called when the TaskActivationCommand results are received from the engine.
 void taskActivationEnded(int rc, long localID)
          This method is called when an asynchronous notification has been received from the engine indicating that a subtask activation has ended.
 

Method Detail

taskActivationComplete

public void taskActivationComplete(long rc,
                                   long localID,
                                   long remoteID,
                                   java.lang.String taskID,
                                   long toid,
                                   java.lang.String subtaskID,
                                   LongValueSet moid,
                                   LongValueSet foid)
This method is called when the TaskActivationCommand results are received from the engine.

Parameters:
rc - result code (see TWGTaskConstants.RETURN_* for values
localID - the id passed into the TWGRemoteTaskManager.subtaskActivate() call
remoteID - the activation ID assigned by the server. This is the ID that you must use for subtaskDeactivate()
taskID - the string task ID of the task. This will be null if the subtaskActivate() call was made passing the toid instead of the taskID
toid - the object ID of the task that was activated
subtaskID - the string subtaskID of the subtask that was activated
moid - the moid passed on the subtaskActivate() call
foid - the foid passed on the subtaskActivate() call

taskActivationEnded

public void taskActivationEnded(int rc,
                                long localID)
This method is called when an asynchronous notification has been received from the engine indicating that a subtask activation has ended. Note: In order to enable this support, you must have issued one of the TWGRemoteTaskManager.setServiceNode() method calls. Also, because of the way this mechanism was added as a hack/band-aid very late in the game, you must also specify TWGServerServiceNodeConstants.TASK_CMD as the cmdCode parameter on the setServiceNode().

Parameters:
rc - reason the activation ended (see TWGTaskConstants.ACT_STATUS_*)
localID - the id passed into the TWGRemoteTaskManager.subtaskActivate() call