public class AssignToBuddyGroupCommand extends Object implements ReplicableCommand
VisitableCommand and hence
not passed up the CommandInterceptor chain.
| Modifier and Type | Field and Description |
|---|---|
static int |
METHOD_ID |
| Constructor and Description |
|---|
AssignToBuddyGroupCommand() |
AssignToBuddyGroupCommand(BuddyGroup group,
Map<Fqn,byte[]> state) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
BuddyGroup |
getGroup() |
Object[] |
getParameters()
Used by marshallers to stream this command across a network
|
Map<Fqn,byte[]> |
getState() |
int |
hashCode() |
void |
initialize(BuddyManager manager) |
Object |
perform(InvocationContext ctx)
This method calls the relevant handler on the buddy manager to deal with being assigned to a buddy group
|
void |
setParameters(int commandId,
Object[] args)
Used by the
CommandsFactory to create a command from raw data read off a stream. |
String |
toString() |
public static final int METHOD_ID
public AssignToBuddyGroupCommand(BuddyGroup group, Map<Fqn,byte[]> state)
public AssignToBuddyGroupCommand()
public void initialize(BuddyManager manager)
public Object perform(InvocationContext ctx) throws Throwable
perform in interface ReplicableCommandctx - invocation context, ignored.Throwable - in the event of problemspublic int getCommandId()
ReplicableCommandgetCommandId in interface ReplicableCommandpublic BuddyGroup getGroup()
public Object[] getParameters()
ReplicableCommandgetParameters in interface ReplicableCommandpublic void setParameters(int commandId,
Object[] args)
ReplicableCommandCommandsFactory to create a command from raw data read off a stream.setParameters in interface ReplicableCommandcommandId - command id to set. This is usually unused but *could* be used in the event of a command having multiple IDs, such as PutKeyValueCommand.args - object array of argsCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.