|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGRemoteTaskManager
This class manages all task related communications with the core engine for a task server running in a different JVM. Note: Many of the methods have two versions, one with a ServiceNode parameter and one without. If setServiceNode() has been called, then the version without the ServiceNode parameter can be used. Calling the version without the ServiceNode parameter before setServiceNode() has been called will result in a NullPointerException.
Field Summary | |
---|---|
static long |
COMMAND_CLEAR_LOG_FILE_CONTENTS
|
static long |
COMMAND_GET_LOG_FILE_CONTENTS
|
static long |
COMMAND_GET_LOG_FILE_DEFINITIONS
|
static long |
RETURN_DELETE_PENDING
|
static long |
RETURN_GENERAL_FAILURE
|
static long |
RETURN_NO_LOG_FILE_DEF
|
static long |
RETURN_OK
|
static long |
RETURN_UNKNOWN_SUBTASK_ID
|
static long |
RETURN_UNKNOWN_TASK_ACT_ID
|
static long |
RETURN_UNKNOWN_TASK_ID
|
static long |
RETURN_UNKNOWN_USER_ID
|
Constructor Summary | |
---|---|
TWGRemoteTaskManager()
|
Method Summary | |
---|---|
static void |
activateSubtask(long localID,
long toid,
java.lang.String taskID,
java.lang.String subtaskID,
LongValueSet moid,
LongValueSet foid,
RemoteTaskActivatorListener listener)
Ask the server engine to activate a subtask |
static void |
activateSubtask(long localID,
long toid,
java.lang.String taskID,
java.lang.String subtaskID,
LongValueSet moid,
LongValueSet foid,
RemoteTaskActivatorListener listener,
byte[] taskActData)
Ask the server engine to activate a subtask |
static void |
activateSubtask(long localID,
java.lang.String taskID,
java.lang.String subtaskID,
LongValueSet moid,
LongValueSet foid,
RemoteTaskActivatorListener listener)
Ask the server engine to activate a subtask |
static void |
activateSubtask(long localID,
java.lang.String taskID,
java.lang.String subtaskID,
LongValueSet moid,
LongValueSet foid,
RemoteTaskActivatorListener listener,
byte[] taskActData)
Ask the server engine to activate a subtask |
static void |
activateSubtask(ServiceNode sn,
long localID,
long toid,
java.lang.String taskID,
java.lang.String subtaskID,
LongValueSet moid,
LongValueSet foid,
RemoteTaskActivatorListener listener)
Ask the server engine to activate a subtask |
static void |
activateSubtask(ServiceNode sn,
long localID,
long toid,
java.lang.String taskID,
java.lang.String subtaskID,
LongValueSet moid,
LongValueSet foid,
RemoteTaskActivatorListener listener,
byte[] taskActData)
Ask the server engine to activate a subtask |
static void |
activateSubtask(ServiceNode sn,
long localID,
java.lang.String taskID,
java.lang.String subtaskID,
LongValueSet moid,
LongValueSet foid,
RemoteTaskActivatorListener listener)
Ask the server engine to activate a subtask |
static void |
activateSubtask(ServiceNode sn,
long localID,
java.lang.String taskID,
java.lang.String subtaskID,
LongValueSet moid,
LongValueSet foid,
RemoteTaskActivatorListener listener,
byte[] taskActData)
Ask the server engine to activate a subtask |
static void |
addActivationListener(ServiceNode sn,
long cmdCode,
RemoteTaskActivationListener listener)
Register a RemoteTaskActivationListener which may run inside or outside the engine's JVM |
static void |
addActivatorListener(ServiceNode sn,
long cmdCode)
|
static void |
addRemoteMOLifeCycleListener(RemoteMOLifeCycleListener listener)
Add a RemoteMOLifeCycleListener to the list of listeners that will be called when a managed object life cycle notification is received. |
static boolean |
addRemoteMOServiceChangeListener(boolean deletes,
ServiceNode sn,
long cmdcode,
com.tivoli.twg.engine.RemoteMOServiceChangeListener listener,
java.lang.String svcname)
Add a RemoteMOServiceChangeListener to the list of listeners that will be called when a managed object service change notification is received for the specified service name. |
static void |
addRemoteMOStateChangeListener(RemoteMOStateChangeListener listener)
Add a RemoteMOStateChangeListener to the list of listeners that will be called when a managed object life cycle notification is received. |
static void |
addSubtask(long toid,
java.lang.String subtaskID,
java.lang.String menu,
java.lang.String menuLocation,
java.lang.String contextList,
java.lang.String actionsList)
Ask the server engine to add a subtask to the specified task |
static void |
addSubtask(ServiceNode sn,
long toid,
java.lang.String subtaskID,
java.lang.String menu,
java.lang.String menuLocation,
java.lang.String contextList,
java.lang.String actionsList)
Ask the server engine to add a subtask to the specified task |
static long |
createDefaultTask(java.util.Properties props,
java.lang.String extensionClassName)
Ask the server engine to construct a TWGDefault task object by sending it a Properties object. |
static long |
createDefaultTask(ServiceNode sn,
java.util.Properties props,
java.lang.String extensionClassName)
Ask the server engine to construct a TWGDefault task object by sending it a Properties object. |
static void |
deactivateSubtask(long remoteID)
Ask the server to deactivate a subtask |
static void |
deactivateSubtask(ServiceNode sn,
long remoteID)
Ask the server to deactivate a subtask |
static int |
deleteTask(ServiceNode sn,
java.lang.String taskID)
Ask the server engine to delete a task |
static int |
deleteTask(java.lang.String taskID)
Ask the server engine to delete a task |
static LongKeyTable |
getAllAddressShadowClassNames()
Get a LongKeyTable of all the address entry shadow class names defined on the server engine. |
static LongKeyTable |
getAllAddressShadowClassNames(ServiceNode sn)
Get a LongKeyTable of all the address entry shadow class names defined on the server engine. |
static LongKeyTable |
getAllManagedObjectClassNames()
Get a LongKeyTable of all the managed object class names defined on the server engine. |
static LongKeyTable |
getAllManagedObjectClassNames(ServiceNode sn)
Get a LongKeyTable of all the managed object class names defined on the server engine. |
static LongKeyTable |
getConTasks(java.util.Locale locale)
Get a LongKeyTable of TWGConTask objects for all defined tasks. |
static LongKeyTable |
getConTasks(java.util.Locale locale,
long uid)
Get a LongKeyTable of TWGConTask objects for all defined tasks. |
static LongKeyTable |
getConTasks(ServiceNode sn,
java.util.Locale locale)
Get a LongKeyTable of TWGConTask objects for all defined tasks. |
static LongKeyTable |
getConTasks(ServiceNode sn,
java.util.Locale locale,
long uid)
Get a LongKeyTable of TWGConTask objects for all defined tasks. |
static int |
getCurrentActivationCount()
Returns the current count of subtask activations. |
static TWGRemoteManagedObject |
getRemoteManagedObject(long moid)
Retrieve a TWGRemoteManagedObject representing the managed object specified by the ID. |
static TWGRemoteManagedObject |
getRemoteManagedObject(ServiceNode sn,
long moid)
Retrieve a TWGRemoteManagedObject representing the managed object specified by the ID. |
static byte[] |
getSubtaskData(long toid,
java.lang.String subtaskID)
Get the user settable byte array from the specified subtask. |
static byte[] |
getSubtaskData(ServiceNode sn,
long toid,
java.lang.String subtaskID)
Get the user settable byte array from the specified subtask. |
static java.lang.String[] |
getSubtaskIDs(long toid)
Get the list of subtaskIDs for a specified task. |
static java.lang.String[] |
getSubtaskIDs(ServiceNode sn,
long toid)
Get the list of subtaskIDs for a specified task. |
static byte[] |
getTaskData(long toid)
Get the user settable byte array from the specified task. |
static byte[] |
getTaskData(ServiceNode sn,
long toid)
Get the user settable byte array from the specified task. |
static LongKeyTable |
getTasks()
Get a list of all tasks. |
static LongKeyTable |
getTasks(ServiceNode sn)
Get a list of all tasks. |
static LongKeyTable |
getTasks(ServiceNode sn,
java.lang.String extensionClassName)
Get a list of all tasks associated for a specified extension. |
static LongKeyTable |
getTasks(java.lang.String extensionClassName)
Get a list of all tasks associated for a specified extension. |
static java.lang.String |
getTaskTitle(long toid)
Get the key used to retrieve the specified task's icon title from its resource bundle. |
static java.lang.String |
getTaskTitle(ServiceNode sn,
long toid)
Get the key used to retrieve the specified task's icon title from its resource bundle. |
static long |
getToid(ServiceNode sn,
java.lang.String taskID)
Get a task's object ID (toid) based on it's String identifier |
static long |
getToid(java.lang.String taskID)
Get a task's object ID (toid) based on it's String identifier Note: to use this version of the method, setServiceNode() must have been called first. |
static void |
removeActivationListener(java.lang.String name)
|
static void |
removeActivatorListener(java.lang.String name)
|
static boolean |
removeRemoteMOLifeCycleListener(RemoteMOLifeCycleListener listener)
Remove a RemoteMOLifeCycleListener from the list of listeners |
static boolean |
removeRemoteMOStateChangeListener(RemoteMOStateChangeListener listener)
Remove a RemoteMOStateChangeListener from the list of listeners Note: before any notifications can be received, setServiceNode() must have been called first. |
static boolean |
removeSubtask(long toid,
java.lang.String subtaskID)
Ask the server engine to remove a subtask from a task. |
static boolean |
removeSubtask(ServiceNode sn,
long toid,
java.lang.String subtaskID)
Ask the server engine to remove a subtask from a task. |
static boolean |
sendAsynchCommand(Command cmd)
Send an asynchronous command to the service node previously specified by setServiceNode(). |
static boolean |
sendAsynchCommand(ServiceNode sn,
Command cmd)
Send an asynchronous command to the specified service node. |
static boolean |
sendCommand(Command cmd)
Send a command to the service node previously specified by setServiceNode(). |
static boolean |
sendCommand(ServiceNode sn,
Command cmd)
Send a command to the specified service node. |
static void |
setServiceNode(ServiceNode SN,
long cmdCode)
Set the service node to use for task communications. |
static void |
setServiceNode(ServiceNode SN,
long cmdCode,
RemoteTaskActivationListener listener)
Set the service node to use for task communications. |
static boolean |
setSubtaskData(long toid,
java.lang.String subtaskID,
byte[] data)
Set the user settable byte array in the specified subtask. |
static boolean |
setSubtaskData(ServiceNode sn,
long toid,
java.lang.String subtaskID,
byte[] data)
Set the user settable byte array in the specified subtask. |
static boolean |
setTaskData(long toid,
byte[] data)
Set the user settable byte array in the specified task. |
static boolean |
setTaskData(ServiceNode sn,
long toid,
byte[] data)
Set the user settable byte array in the specified task. |
static boolean |
setTaskTitle(long toid,
java.lang.String titleKey)
Set the key used to retrieve the specified task's icon title from its resource bundle. |
static boolean |
setTaskTitle(ServiceNode sn,
long toid,
java.lang.String titleKey)
Set the key used to retrieve the specified task's icon title from its resource bundle. |
static void |
taskServerDeactivated(ServiceNode sn,
java.lang.String taskID)
Notify the server engine that a task server is exiting. |
static void |
taskServerDeactivated(java.lang.String taskID)
Notify the server engine that a task server is exiting. |
static void |
taskServerReady(ServiceNode sn,
java.lang.String taskID)
Notify the server engine that a task server is ready for business. |
static void |
taskServerReady(java.lang.String taskID)
Notify the server engine that a task server is ready for business. |
static void |
taskServerReadyForActivations(ServiceNode sn,
long cmdcode)
|
static void |
unsetServiceNode()
Unhook this class from the service node so that it will no longer intercept and process incoming task commands. |
static boolean |
verifyTaskForUser(long toid,
long uid)
Verify that a task can is accessable to a user |
static boolean |
verifyTaskForUser(ServiceNode sn,
long toid,
long uid)
Verify that a task can is accessable to a user |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long COMMAND_GET_LOG_FILE_CONTENTS
public static final long COMMAND_GET_LOG_FILE_DEFINITIONS
public static final long COMMAND_CLEAR_LOG_FILE_CONTENTS
public static final long RETURN_OK
public static final long RETURN_GENERAL_FAILURE
public static final long RETURN_UNKNOWN_TASK_ID
public static final long RETURN_UNKNOWN_SUBTASK_ID
public static final long RETURN_UNKNOWN_TASK_ACT_ID
public static final long RETURN_UNKNOWN_USER_ID
public static final long RETURN_DELETE_PENDING
public static final long RETURN_NO_LOG_FILE_DEF
Constructor Detail |
public TWGRemoteTaskManager()
Method Detail |
public static final void taskServerReady(java.lang.String taskID)
taskID
- a String containing the identifier of the task that is readypublic static final void taskServerReady(ServiceNode sn, java.lang.String taskID)
sn
- the service node to use to communicate with the servertaskID
- a String containing the identifier of the task that is readypublic static final void taskServerDeactivated(java.lang.String taskID)
taskID
- a String containing the identifier of the task that is exitingpublic static final void taskServerReadyForActivations(ServiceNode sn, long cmdcode)
public static final void taskServerDeactivated(ServiceNode sn, java.lang.String taskID)
sn
- the service node to use to communicate with the servertaskID
- a String containing the identifier of the task that is exitingpublic static void setServiceNode(ServiceNode SN, long cmdCode, RemoteTaskActivationListener listener)
SN
- an active ServiceNode that can be used for server communication.cmdCode
- the command code to register a listener for to receive
task commands from the server enginelistener
- a RemoteTaskActivationListener that will be called when
task activation commands are received.public static void addActivationListener(ServiceNode sn, long cmdCode, RemoteTaskActivationListener listener)
public static void removeActivationListener(java.lang.String name)
public static void addActivatorListener(ServiceNode sn, long cmdCode)
public static void removeActivatorListener(java.lang.String name)
public static void setServiceNode(ServiceNode SN, long cmdCode)
SN
- an active ServiceNode that can be used for server communication.cmdCode
- the command code to register a listener for to receive
task commands from the server enginepublic static void unsetServiceNode()
public static void addRemoteMOLifeCycleListener(RemoteMOLifeCycleListener listener)
listener
- a RemoteMOLifeCycleListenerpublic static boolean removeRemoteMOLifeCycleListener(RemoteMOLifeCycleListener listener)
listener
- a RemoteMOLifeCycleListener
public static void addRemoteMOStateChangeListener(RemoteMOStateChangeListener listener)
setServiceNode()
must have been called first.
listener
- a RemoteMOStateChangeListenerpublic static boolean removeRemoteMOStateChangeListener(RemoteMOStateChangeListener listener)
setServiceNode()
must have been called first.
listener
- a RemoteMOStateChangeListener
public static boolean addRemoteMOServiceChangeListener(boolean deletes, ServiceNode sn, long cmdcode, com.tivoli.twg.engine.RemoteMOServiceChangeListener listener, java.lang.String svcname)
setServiceNode()
must have been called first.
deletes
- true to listen for adds and deletes, false to listen only for adds.sn
- service node to send notification commands tocmdcode
- command code set for RemoteTaskManager use on the service nodelistener
- a RemoteMOServiceChangeListenersvcname
- service name to listen for
public static final LongKeyTable getAllManagedObjectClassNames()
setServiceNode()
must have been called first.
public static LongKeyTable getAllManagedObjectClassNames(ServiceNode sn)
sn
- the service node to use to communicate with the server
public static final LongKeyTable getAllAddressShadowClassNames()
setServiceNode()
must have been called first.
public static final LongKeyTable getAllAddressShadowClassNames(ServiceNode sn)
sn
- the service node to use to communicate with the server
public static final TWGRemoteManagedObject getRemoteManagedObject(long moid)
setServiceNode()
must have been called first.
moid
- the ID of the managed object to retrieve data from
public static TWGRemoteManagedObject getRemoteManagedObject(ServiceNode sn, long moid)
sn
- the service node to use to communicate with the servermoid
- the ID of the managed object to retrieve data from
public static final java.lang.String[] getSubtaskIDs(long toid)
setServiceNode()
must have been called first.
toid
- the object ID of the task to retrieve the data from.
public static java.lang.String[] getSubtaskIDs(ServiceNode sn, long toid)
sn
- the service node to use to communicate with the servertoid
- the object ID of the task to retrieve the data from.
public static final java.lang.String getTaskTitle(long toid)
setServiceNode()
must have been called first.
toid
- the object ID of the task to retrieve the data from.
public static final java.lang.String getTaskTitle(ServiceNode sn, long toid)
sn
- the service node to use to communicate with the servertoid
- the object ID of the task to retrieve the data from.
public static final boolean setTaskTitle(long toid, java.lang.String titleKey)
setServiceNode()
must have been called first.
toid
- the object ID of the task to retrieve the data from.titleKey
- the value to set as the task's new title keypublic static final boolean setTaskTitle(ServiceNode sn, long toid, java.lang.String titleKey)
sn
- the service node to use to communicate with the servertoid
- the object ID of the task to retrieve the data from.titleKey
- the value to set as the task's new title keypublic static final byte[] getTaskData(long toid)
setServiceNode()
must have been called first.
toid
- the object ID of the task to retrieve the data from.
public static byte[] getTaskData(ServiceNode sn, long toid)
sn
- the service node to use to communicate with the servertoid
- the object ID of the task to retrieve the data from.
public static final boolean setTaskData(long toid, byte[] data)
setServiceNode()
must have been called first.
toid
- the object ID of the task to set the data ofdata
- a byte[] containing the new data to be set,
this can also be null.
public static boolean setTaskData(ServiceNode sn, long toid, byte[] data)
sn
- the service node to use to communicate with the servertoid
- the object ID of the task to set the data ofdata
- a byte[] containing the new data to be set,
this can also be null.
public static final byte[] getSubtaskData(long toid, java.lang.String subtaskID)
setServiceNode()
must have been called first.
toid
- the object ID of the task owning the subtasksubtaskID
- a string containing the identifier of the subtask to
retrieve the data from
public static byte[] getSubtaskData(ServiceNode sn, long toid, java.lang.String subtaskID)
sn
- the service node to use to communicate with the servertoid
- the object ID of the task owning the subtasksubtaskID
- a string containing the identifier of the subtask to
retrieve the data from
public static boolean setSubtaskData(long toid, java.lang.String subtaskID, byte[] data)
setServiceNode()
must have been called first.
toid
- the object ID of the task owning the subtasksubtaskID
- a string containing the identifier of the subtask to
set the data ofdata
- a byte[] containing the new data to be set,
this can also be null.
public static boolean setSubtaskData(ServiceNode sn, long toid, java.lang.String subtaskID, byte[] data)
sn
- the service node to use to communicate with the servertoid
- the object ID of the task owning the subtasksubtaskID
- a string containing the identifier of the subtask to
set the data ofdata
- a byte[] containing the new data to be set,
this can also be null.
public static final long getToid(java.lang.String taskID)
setServiceNode()
must have been called first.
taskID
- the String identifier of the task to retrieve the toid of
public static final long getToid(ServiceNode sn, java.lang.String taskID)
sn
- the service node to use to communicate with the servertaskID
- the String identifier of the task to retrieve the toid of
public static final LongKeyTable getTasks()
setServiceNode()
must have been called first.
public static LongKeyTable getTasks(ServiceNode sn)
sn
- the service node to use to communicate with the server
public static LongKeyTable getTasks(java.lang.String extensionClassName)
setServiceNode()
must have been called first.
public static LongKeyTable getTasks(ServiceNode sn, java.lang.String extensionClassName)
sn
- the service node to use to communicate with the serverextensionClassName
- the name of the extension class to find the tasks for
public static LongKeyTable getConTasks(java.util.Locale locale)
locale
- the locale to use for translating NLS strings
public static LongKeyTable getConTasks(ServiceNode sn, java.util.Locale locale)
sn
- the service node to use to communicate with the serverlocale
- the locale to use for translating NLS strings
public static LongKeyTable getConTasks(java.util.Locale locale, long uid)
locale
- the locale to use for translating NLS stringsuid
- ID of the user to use as a filter for which tasks to shadow
public static LongKeyTable getConTasks(ServiceNode sn, java.util.Locale locale, long uid)
sn
- the service node to use to communicate with the serverlocale
- the locale to use for translating NLS stringsuid
- ID of the user to use as a filter for which tasks to shadow
public static final long createDefaultTask(java.util.Properties props, java.lang.String extensionClassName) throws com.tivoli.twg.engine.TWGTaskCreationException
setServiceNode()
must have been called first.
props
- Properties object to send to the server for use in
constructing a TWGDefaultTask object.extensionClassName
- String name of the extension class creating
the task
TWGTaskCreationException
- if an exception was encountered on the
server engine while processing the
Properties object.public static long createDefaultTask(ServiceNode sn, java.util.Properties props, java.lang.String extensionClassName) throws com.tivoli.twg.engine.TWGTaskCreationException
sn
- the service node to use to communicate with the serverprops
- Properties object to send to the server for use in
constructing a TWGDefaultTask object.extensionClassName
- String name of the extension class creating
the task
TWGTaskCreationException
- if an exception was encountered on the
server engine while processing the
Properties object.public static int deleteTask(java.lang.String taskID)
taskID
- the task ID string of the task to be deleted.public static int deleteTask(ServiceNode sn, java.lang.String taskID)
sn
- the service node to use to communicate with the servertaskID
- the task ID string of the task to be deleted.public static final void addSubtask(long toid, java.lang.String subtaskID, java.lang.String menu, java.lang.String menuLocation, java.lang.String contextList, java.lang.String actionsList) throws com.tivoli.twg.engine.TWGTaskCreationException
toid
- the object ID of the task to which the subtask should be addedsubtaskID
- String containing the subtask's ID.menu
- String containing the TWGTaskMenuList elements
defining this subtask's label for menus.menuLocation
- String specifying the console locations where this
subtasks menu should be displayed.contextList
- String specifying the tasks context attributes
(i.e. interactive, client, server, targeted).
TWGTaskCreationException
- When syntax errors are discovered
in the String parameters or if a subtask with the
specified subtaskID already exists for this task.public static final void addSubtask(ServiceNode sn, long toid, java.lang.String subtaskID, java.lang.String menu, java.lang.String menuLocation, java.lang.String contextList, java.lang.String actionsList) throws com.tivoli.twg.engine.TWGTaskCreationException
sn
- the service node to use to communicate with the servertoid
- the object ID of the task to which the subtask should be addedsubtaskID
- String containing the subtask's ID.menu
- String containing the TWGTaskMenuList elements
defining this subtask's label for menus.menuLocation
- String specifying the console locations where this
subtasks menu should be displayed.contextList
- String specifying the tasks context attributes
(i.e. interactive, client, server, targeted).
TWGTaskCreationException
- When syntax errors are discovered
in the String parameters or if a subtask with the
specified subtaskID already exists for this task.public static boolean removeSubtask(long toid, java.lang.String subtaskID)
toid
- the object ID of the task from which the subtask should be removedsubtaskID
- String containing the subtask's ID.
public static boolean removeSubtask(ServiceNode sn, long toid, java.lang.String subtaskID)
sn
- the service node to use to communicate with the servertoid
- the object ID of the task from which the subtask should be removedsubtaskID
- String containing the subtask's ID.
public static void activateSubtask(long localID, long toid, java.lang.String taskID, java.lang.String subtaskID, LongValueSet moid, LongValueSet foid, RemoteTaskActivatorListener listener)
localID
- a "correlator" for use by the caller to identify the
subtask activation when the listener is called backtoid
- the object ID of the task to activatesubtaskID
- the string subtask ID of the subtask to activatemoid
- a LongValueSet containing the object ID's of the
managed objects that are targets of the activation
or null if none.foid
- a LongValueSet containing the object ID's of the
filter(s) that are targets of the activation or
null if none.listener
- a RemoteTaskActivator that will be called when the
subtask activation has completed.public static void activateSubtask(long localID, long toid, java.lang.String taskID, java.lang.String subtaskID, LongValueSet moid, LongValueSet foid, RemoteTaskActivatorListener listener, byte[] taskActData)
localID
- a "correlator" for use by the caller to identify the
subtask activation when the listener is called backtoid
- the object ID of the task to activatesubtaskID
- the string subtask ID of the subtask to activatemoid
- a LongValueSet containing the object ID's of the
managed objects that are targets of the activation
or null if none.foid
- a LongValueSet containing the object ID's of the
filter(s) that are targets of the activation or
null if none.listener
- a RemoteTaskActivator that will be called when the
subtask activation has completed.taskActData
- byte[] of data to be associated with the activationpublic static void activateSubtask(ServiceNode sn, long localID, long toid, java.lang.String taskID, java.lang.String subtaskID, LongValueSet moid, LongValueSet foid, RemoteTaskActivatorListener listener)
sn
- the service node to use to communicate with the serverlocalID
- a "correlator" for use by the caller to identify the
subtask activation when the listener is called backtoid
- the object ID of the task to activatesubtaskID
- the string subtask ID of the subtask to activatemoid
- a LongValueSet containing the object ID's of the
managed objects that are targets of the activation
or null if none.foid
- a LongValueSet containing the object ID's of the
filter(s) that are targets of the activation or
null if none.listener
- a RemoteTaskActivator that will be called when the
subtask activation has completed.public static void activateSubtask(ServiceNode sn, long localID, long toid, java.lang.String taskID, java.lang.String subtaskID, LongValueSet moid, LongValueSet foid, RemoteTaskActivatorListener listener, byte[] taskActData)
sn
- the service node to use to communicate with the serverlocalID
- a "correlator" for use by the caller to identify the
subtask activation when the listener is called backtoid
- the object ID of the task to activatesubtaskID
- the string subtask ID of the subtask to activatemoid
- a LongValueSet containing the object ID's of the
managed objects that are targets of the activation
or null if none.foid
- a LongValueSet containing the object ID's of the
filter(s) that are targets of the activation or
null if none.listener
- a RemoteTaskActivator that will be called when the
subtask activation has completed.taskActData
- byte[] of data to be associated with the activationpublic static void activateSubtask(long localID, java.lang.String taskID, java.lang.String subtaskID, LongValueSet moid, LongValueSet foid, RemoteTaskActivatorListener listener)
localID
- a "correlator" for use by the caller to identify the
subtask activation when the listener is called backtaskID
- the string task ID of the task to activatesubtaskID
- the string subtask ID of the subtask to activatemoid
- a LongValueSet containing the object ID's of the
managed objects that are targets of the activation
or null if none.foid
- a LongValueSet containing the object ID's of the
filter(s) that are targets of the activation or
null if none.listener
- a RemoteTaskActivator that will be called when the
subtask activation has completed.public static void activateSubtask(long localID, java.lang.String taskID, java.lang.String subtaskID, LongValueSet moid, LongValueSet foid, RemoteTaskActivatorListener listener, byte[] taskActData)
localID
- a "correlator" for use by the caller to identify the
subtask activation when the listener is called backtaskID
- the string task ID of the task to activatesubtaskID
- the string subtask ID of the subtask to activatemoid
- a LongValueSet containing the object ID's of the
managed objects that are targets of the activation
or null if none.foid
- a LongValueSet containing the object ID's of the
filter(s) that are targets of the activation or
null if none.listener
- a RemoteTaskActivator that will be called when the
subtask activation has completed.taskActData
- byte[] of data to be associated with the activationpublic static void activateSubtask(ServiceNode sn, long localID, java.lang.String taskID, java.lang.String subtaskID, LongValueSet moid, LongValueSet foid, RemoteTaskActivatorListener listener)
sn
- the service node to use to communicate with the serverlocalID
- a "correlator" for use by the caller to identify the
subtask activation when the listener is called backtaskID
- the string task ID of the task to activatesubtaskID
- the string subtask ID of the subtask to activatemoid
- a LongValueSet containing the object ID's of the
managed objects that are targets of the activation
or null if none.foid
- a LongValueSet containing the object ID's of the
filter(s) that are targets of the activation or
null if none.listener
- a RemoteTaskActivator that will be called when the
subtask activation has completed.public static void activateSubtask(ServiceNode sn, long localID, java.lang.String taskID, java.lang.String subtaskID, LongValueSet moid, LongValueSet foid, RemoteTaskActivatorListener listener, byte[] taskActData)
sn
- the service node to use to communicate with the serverlocalID
- a "correlator" for use by the caller to identify the
subtask activation when the listener is called backtaskID
- the string task ID of the task to activatesubtaskID
- the string subtask ID of the subtask to activatemoid
- a LongValueSet containing the object ID's of the
managed objects that are targets of the activation
or null if none.foid
- a LongValueSet containing the object ID's of the
filter(s) that are targets of the activation or
null if none.listener
- a RemoteTaskActivator that will be called when the
subtask activation has completed.taskActData
- byte[] of data to be associated with the activationpublic static void deactivateSubtask(long remoteID)
remoteID
- the remoteID received via the RemoteTaskActivatorListener
when the subtask activation completed.public static void deactivateSubtask(ServiceNode sn, long remoteID)
sn
- the service node to use to communicate with the serverremoteID
- the remoteID received via the RemoteTaskActivatorListener
when the subtask activation completed.public static boolean verifyTaskForUser(long toid, long uid)
toid
- the object ID of the task to verifyuid
- the object ID of tue user to verify
public static boolean verifyTaskForUser(ServiceNode sn, long toid, long uid)
sn
- the service node to use to communicate with the servertoid
- the object ID of the task to verifyuid
- the object ID of tue user to verify
public static int getCurrentActivationCount()
public static final boolean sendCommand(Command cmd)
cmd
- the Command to send.
public static final boolean sendCommand(ServiceNode sn, Command cmd)
cmd
- the Command to send.
public static final boolean sendAsynchCommand(Command cmd)
cmd
- the Command to send.
public static final boolean sendAsynchCommand(ServiceNode sn, Command cmd)
cmd
- the Command to send.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |