public interface XSiteStateTransferManager
Modifier and Type | Field and Description |
---|---|
static String |
STATUS_CANCELED |
static String |
STATUS_ERROR |
static String |
STATUS_OK |
static String |
STATUS_SENDING |
Modifier and Type | Method and Description |
---|---|
void |
becomeCoordinator(String siteName)
Makes this node the coordinator for the state transfer to the site name.
|
void |
cancelPushState(String siteName)
It cancels a running state transfer.
|
void |
cancelReceive(String siteName)
Sets the cluster to normal state.
|
void |
clearClusterStatus()
Clears the completed state transfer status in all the cluster.
|
void |
clearStatus()
Clears the completed state transfer status.
|
Map<String,String> |
getClusterStatus() |
List<String> |
getRunningStateTransfers() |
String |
getSendingSiteName() |
XSiteStateConsumer |
getStateConsumer() |
XSiteStateProvider |
getStateProvider() |
Map<String,String> |
getStatus() |
void |
notifyStatePushFinished(String siteName,
Address node,
boolean statusOk)
It receives the notifications from local site when some node finishes pushing the state to the remote site.
|
void |
startPushState(String siteName)
It notifies all nodes from local site to start transfer the state to the remote site.
|
static final String STATUS_OK
static final String STATUS_ERROR
static final String STATUS_SENDING
static final String STATUS_CANCELED
void notifyStatePushFinished(String siteName, Address node, boolean statusOk) throws Throwable
void startPushState(String siteName) throws Throwable
siteName
- the remote site nameThrowable
- If some unexpected behavior occurs.void cancelPushState(String siteName) throws Throwable
siteName
- the site name to where the state is being sent.Throwable
- if some exception occurs during the remote invocation with the local cluster or remote site.List<String> getRunningStateTransfers()
Map<String,String> getStatus()
void clearStatus()
Map<String,String> getClusterStatus() throws Exception
Exception
- if some exception during the remote invocation occurs.void clearClusterStatus() throws Exception
Exception
- if some exception occurs during the remote invocation.String getSendingSiteName()
null
if this node is not receiving state or the site name which is sending the state.void cancelReceive(String siteName) throws Exception
siteName
- the site name which is sending the state.Exception
- if some exception occurs during the remote invocation.void becomeCoordinator(String siteName)
siteName
- the site name.XSiteStateProvider getStateProvider()
XSiteStateConsumer getStateConsumer()
Copyright © 2021 JBoss by Red Hat. All rights reserved.