Interface XSiteStateProviderState
- All Known Implementing Classes:
AsyncProviderState,BaseXSiteStateProviderState,SyncProviderState
public interface XSiteStateProviderState
Interface to store the information about a single remote site for
XSiteStateProviderImpl.- Since:
- 12.0
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionvoidCancels any running state transfer.createPushTask(Address originator, XSiteStateProvider provider) Creates a newXSiteStatePushTaskto do state transfer to remove site.static XSiteStateProviderStateFactory forXSiteStateProviderStateinstances.booleanisOriginatorMissing(Collection<Address> members) ReturnsbooleanbooleanisSync()
-
Method Details
-
createPushTask
Creates a newXSiteStatePushTaskto do state transfer to remove site.- Parameters:
originator- The originatorAddress(node who initiated the state transfer).provider- TheXSiteStateProviderinstance to notify when theXSiteStatePushTaskfinishes.- Returns:
- The
XSiteStatePushTaskinstance. ornullif a state transfer is already in progress.
-
cancelTransfer
void cancelTransfer()Cancels any running state transfer.If no state transfer is in progress, this method is a no-op.
-
isSending
boolean isSending()- Returns:
trueif a state transfer is in progress for this site.
-
isOriginatorMissing
Returns- Parameters:
members- The current cluster members list.- Returns:
trueif a state transfer is in progress and the originator is not in thatCollection.
-
isSync
boolean isSync()- Returns:
trueif the backup is configured to synchronous cross-site replication.
-
fromBackupConfiguration
Factory forXSiteStateProviderStateinstances.- Parameters:
config- TheBackupConfiguration.- Returns:
- The
XSiteStateProviderStateinstance.
-