|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGTaskActivator
This class handles coordinating the steps of performing a console task activation. The following steps take place:
Constructor Summary | |
---|---|
TWGTaskActivator(TWGSubtask subtask,
LongValueSet moid,
LongValueSet foid,
com.tivoli.twg.console.TWGMainGUI source,
java.lang.Object data)
Constructor specifying all the data needed for a task activation. |
|
TWGTaskActivator(TWGSubtask subtask,
LongValueSet moid,
LongValueSet foid,
com.tivoli.twg.console.TWGMainGUI source,
java.lang.Object data,
byte[] bdata)
Constructor specifying all the data needed for a task activation. |
Method Summary | |
---|---|
byte[] |
getDataBuffer()
Get the application binary data that was passed to this activation. |
long |
getEngActID()
Get the activation ID that the engine assigns. |
LongValueSet |
getFoid()
Get the filter ID LongValueSet for this activation. |
com.tivoli.twg.console.TWGMainGUI |
getMainConsole()
Get the main console that originated this activation. |
LongValueSet |
getMoid()
Get the managed object ID LongValueSet for this activation. |
static java.util.Vector |
getRunningGUIs()
Get the static list of guis which are running. |
TWGSubtask |
getSubtask()
Get the TWGSubtask for this activation |
java.lang.Object |
getTAParameters()
Get the application parameter that was passed to this activation. |
java.lang.String |
getTargetTitle()
Get a string that helps identify the target of the task activation that is occurring. |
TWGConTask |
getTask()
Get the TWGConTask for this activation. |
java.lang.String |
getUserID()
Get the user ID for this activation. |
void |
guiExiting()
|
static void |
handleServerCommand(Command cmd)
Handle a task command received from the server. |
void |
resetGuiStatus()
Stops the GUI status indicator on the main panel if it has not yet been stopped for this task activation. |
void |
taskActivationComplete(long rc,
long localID,
long remoteID,
java.lang.String taskID,
long toid,
java.lang.String subtaskID,
LongValueSet moid,
LongValueSet foid)
Method called by TWGRemoteTaskManager when subtask activation is complete |
void |
taskActivationEnded(int rc,
long localID)
Method called by TWGRemoteTaskManager when a subtask activation has ended |
void |
uncaughtException(java.lang.Thread thrd,
java.lang.Throwable excpt)
Implement UncaughtExceptionListener interface called by ProtectedThreadGroup uncaught exception handler when gui runner thread thow an uncaught exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TWGTaskActivator(TWGSubtask subtask, LongValueSet moid, LongValueSet foid, com.tivoli.twg.console.TWGMainGUI source, java.lang.Object data) throws TWGTaskActivationException
public TWGTaskActivator(TWGSubtask subtask, LongValueSet moid, LongValueSet foid, com.tivoli.twg.console.TWGMainGUI source, java.lang.Object data, byte[] bdata) throws TWGTaskActivationException
subtask
- the subtask being startedmoid
- a LongValueSet containing the object IDs of the
managed objects that are the target of this activation.
This parameter should be null if there are no
managed object targets for this activation.foid
- a LongValueSet containing the object IDs of the filters
that are the target of this activation. This parameter
should be null if there are no filter targets for this
activation.source
- the originating console that created this task activatordata
- optional object data parameterbdata
- optional binary data parameterMethod Detail |
public static void handleServerCommand(Command cmd)
cmd
- The command sent from the server.public void uncaughtException(java.lang.Thread thrd, java.lang.Throwable excpt)
public TWGConTask getTask()
public TWGSubtask getSubtask()
public long getEngActID()
public LongValueSet getMoid()
public LongValueSet getFoid()
public void guiExiting()
public void taskActivationComplete(long rc, long localID, long remoteID, java.lang.String taskID, long toid, java.lang.String subtaskID, LongValueSet moid, LongValueSet foid)
taskActivationComplete
in interface RemoteTaskActivatorListener
rc
- result code (see TWGTaskConstants.RETURN_* for valueslocalID
- the id passed into the TWGRemoteTaskManager.subtaskActivate()
callremoteID
- 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 taskIDtoid
- the object ID of the task that was activatedsubtaskID
- the string subtaskID of the subtask that was activatedmoid
- the moid passed on the subtaskActivate() callfoid
- the foid passed on the subtaskActivate() callpublic void taskActivationEnded(int rc, long localID)
taskActivationEnded
in interface RemoteTaskActivatorListener
rc
- reason the activation ended (see TWGTaskConstants.ACT_STATUS_*)localID
- the id passed into the TWGRemoteTaskManager.subtaskActivate()
callpublic void resetGuiStatus()
public com.tivoli.twg.console.TWGMainGUI getMainConsole()
public java.lang.String getUserID()
public java.lang.Object getTAParameters()
public byte[] getDataBuffer()
public java.lang.String getTargetTitle()
public static java.util.Vector getRunningGUIs()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |