public class RemoveFromBuddyGroupCommand 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 |
---|
RemoveFromBuddyGroupCommand() |
RemoveFromBuddyGroupCommand(String groupName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
String |
getGroupName() |
Object[] |
getParameters()
Used by marshallers to stream this command across a network
|
int |
hashCode() |
void |
initialize(BuddyManager buddyManager) |
Object |
perform(InvocationContext ctx)
This method calls the relevant handler on the buddy manager to deal with being removed from 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 RemoveFromBuddyGroupCommand(String groupName)
public RemoveFromBuddyGroupCommand()
public void initialize(BuddyManager buddyManager)
public Object perform(InvocationContext ctx)
perform
in interface ReplicableCommand
ctx
- invocation context, ignored.public int getCommandId()
ReplicableCommand
getCommandId
in interface ReplicableCommand
public String getGroupName()
public Object[] getParameters()
ReplicableCommand
getParameters
in interface ReplicableCommand
public void setParameters(int commandId, Object[] args)
ReplicableCommand
CommandsFactory
to create a command from raw data read off a stream.setParameters
in interface ReplicableCommand
commandId
- 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.