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, setOriginSite
canBlock, getCacheName, getOrigin, setOrigin
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParameters, setParameters
public 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 XSiteReplicateCommand
Throwable
public final void initialize(XSiteStateProvider provider, XSiteStateConsumer consumer, XSiteStateTransferManager stateTransferManager)
public Object perform(InvocationContext ctx) throws Throwable
ReplicableCommand
ctx
- invocation contextThrowable
- in the event of problems.public byte getCommandId()
ReplicableCommand
public void writeTo(ObjectOutput output) throws IOException
ReplicableCommand
ObjectOutput
.output
- the stream.IOException
- if an error occurred during the I/O.public void readFrom(ObjectInput input) throws IOException, ClassNotFoundException
ReplicableCommand
ReplicableCommand.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()
ReplicableCommand
ResponseGenerator
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 BaseRpcCommand
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.