tryllian.afc.task.group
Class JoinGroupTask
java.lang.Object
tryllian.afc.task.AbstractTask
tryllian.afc.task.DefaultTask
tryllian.afc.task.group.AbstractGroupTask
tryllian.afc.task.group.JoinGroupTask
- All Implemented Interfaces:
- java.util.EventListener, MessageHandler, java.io.Serializable, Task
- public class JoinGroupTask
- extends tryllian.afc.task.group.AbstractGroupTask
Task that lets this agent join a Group.
This Task sends a request to the JNDI System Agent requesting it to join
a group:
request : join-group ( [ <parent-name>, ] <group-name> )
This request (and this Task) can only be expected to succeed if the specified
group exists.
Joining a Group is idempotent.
- See Also:
- Serialized Form
|
Constructor Summary |
JoinGroupTask(java.lang.String groupName)
Create a Task that lets the agent join a top-level Group. |
JoinGroupTask(java.lang.String parentName,
java.lang.String groupName)
Create a Task that lets the agent join a Group relative to another. |
| Methods inherited from class tryllian.afc.task.AbstractTask |
addTaskListener, fail, fail, finish, finish, finish, forceFinish, forceFinish, getAgentContext, getFinishValue, getState, getSupertask, getTimeOut, heartbeatReceived, logException, messageReceived, removeTaskListener, setAgentContext, setFinishValue, setTimeOut, succeed, succeed, taskAdded, taskEnded, taskRemoved |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JoinGroupTask
public JoinGroupTask(java.lang.String groupName)
- Create a Task that lets the agent join a top-level Group.
JoinGroupTask
public JoinGroupTask(java.lang.String parentName,
java.lang.String groupName)
- Create a Task that lets the agent join a Group relative to another.
taskStarted
protected void taskStarted()
- Implemented to create and send the request.
- Overrides:
taskStarted in class AbstractTask
handleMessage
public void handleMessage(IncomingMessage message)
- Implemented to process the request reply messages.
- Overrides:
handleMessage in class AbstractTask
getGroupName
protected tryllian.afc.task.group.GroupName getGroupName()