public class XSiteStateTransferControlCommand extends XSiteReplicateCommand
| Modifier and Type | Class and Description |
|---|---|
static class |
XSiteStateTransferControlCommand.StateTransferControl |
| Modifier and Type | Field and Description |
|---|---|
static int |
COMMAND_ID |
cacheName| Constructor and Description |
|---|
XSiteStateTransferControlCommand() |
XSiteStateTransferControlCommand(String cacheName) |
XSiteStateTransferControlCommand(String cacheName,
XSiteStateTransferControlCommand.StateTransferControl control,
String siteName) |
| Modifier and Type | Method and Description |
|---|---|
XSiteStateTransferControlCommand |
copyForCache(String cacheName) |
byte |
getCommandId()
Used by marshallers to convert this command into an id for streaming.
|
String |
getSiteName() |
void |
initialize(XSiteStateProvider provider,
XSiteStateConsumer consumer,
XSiteStateTransferManager stateTransferManager) |
boolean |
isReturnValueExpected()
If true, a return value will be provided when performed remotely.
|
Object |
perform(InvocationContext ctx)
Performs the primary function of the command.
|
Object |
performInLocalSite(BackupReceiver receiver) |
void |
readFrom(ObjectInput input)
Reads this instance from the stream written by
ReplicableCommand.writeTo(ObjectOutput). |
void |
setSiteName(String siteName) |
void |
setStatusOk(boolean statusOk) |
void |
setTopologyId(int topologyId) |
String |
toString() |
void |
writeTo(ObjectOutput output)
Writes this instance to the
ObjectOutput. |
getOriginSite, setOriginSitecanBlock, getCacheName, getOrigin, setOriginclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameters, setParameterspublic static final int COMMAND_ID
public XSiteStateTransferControlCommand(String cacheName, XSiteStateTransferControlCommand.StateTransferControl control, String siteName)
public XSiteStateTransferControlCommand(String cacheName)
public XSiteStateTransferControlCommand()
public Object performInLocalSite(BackupReceiver receiver) throws Throwable
performInLocalSite in class XSiteReplicateCommandThrowablepublic final void initialize(XSiteStateProvider provider, XSiteStateConsumer consumer, XSiteStateTransferManager stateTransferManager)
public Object perform(InvocationContext ctx) throws Throwable
ReplicableCommandctx - invocation contextThrowable - in the event of problems.public byte getCommandId()
ReplicableCommandpublic void writeTo(ObjectOutput output) throws IOException
ReplicableCommandObjectOutput.output - the stream.IOException - if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommandReplicableCommand.writeTo(ObjectOutput).input - the stream to read.IOException - if an error occurred during the I/O.ClassNotFoundException - if it tries to load an undefined class.public boolean isReturnValueExpected()
ReplicableCommandResponseGenerator
may choose to simply return null to save on marshalling costs.public void setStatusOk(boolean statusOk)
public void setSiteName(String siteName)
public String getSiteName()
public void setTopologyId(int topologyId)
public XSiteStateTransferControlCommand copyForCache(String cacheName)
public String toString()
toString in class BaseRpcCommandCopyright © 2024 JBoss, a division of Red Hat. All rights reserved.