public class AnnounceBuddyPoolNameCommand 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 |
|---|
AnnounceBuddyPoolNameCommand() |
AnnounceBuddyPoolNameCommand(org.jgroups.Address address,
String buddyPoolName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
org.jgroups.Address |
getAddress() |
String |
getBuddyPoolName() |
int |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
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 this pool broadcast.
|
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 AnnounceBuddyPoolNameCommand()
public AnnounceBuddyPoolNameCommand(org.jgroups.Address address,
String buddyPoolName)
public void initialize(BuddyManager buddyManager)
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 org.jgroups.Address getAddress()
public String getBuddyPoolName()
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.