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 TypeMethodDescriptionvoid
Cancels any running state transfer.createPushTask
(Address originator, XSiteStateProvider provider) Creates a newXSiteStatePushTask
to do state transfer to remove site.static XSiteStateProviderState
Factory forXSiteStateProviderState
instances.boolean
isOriginatorMissing
(Collection<Address> members) Returnsboolean
boolean
isSync()
-
Method Details
-
createPushTask
Creates a newXSiteStatePushTask
to do state transfer to remove site.- Parameters:
originator
- The originatorAddress
(node who initiated the state transfer).provider
- TheXSiteStateProvider
instance to notify when theXSiteStatePushTask
finishes.- Returns:
- The
XSiteStatePushTask
instance. ornull
if 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:
true
if a state transfer is in progress for this site.
-
isOriginatorMissing
Returns- Parameters:
members
- The current cluster members list.- Returns:
true
if a state transfer is in progress and the originator is not in thatCollection
.
-
isSync
boolean isSync()- Returns:
true
if the backup is configured to synchronous cross-site replication.
-
fromBackupConfiguration
Factory forXSiteStateProviderState
instances.- Parameters:
config
- TheBackupConfiguration
.- Returns:
- The
XSiteStateProviderState
instance.
-