Class NoOpXSiteStateProvider
java.lang.Object
org.infinispan.xsite.statetransfer.NoOpXSiteStateProvider
- All Implemented Interfaces:
XSiteStateProvider
A no-op implementation of
XSiteStateProvider
.
This class is used when cross-site replication is disabled.
- Since:
- 10.0
- Author:
- Pedro Ruivo
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelStateTransfer
(String siteName) It cancels the state transfer for the remote site.ExposesCommandsFactory
toXSiteStatePushTask
.Exposes non-blockingExecutor
toXSiteStatePushTask
.static NoOpXSiteStateProvider
ExposesIracManager
toXSiteStatePushTask
.ExposesRpcManager
toXSiteStatePushTask
.Exposes timeoutScheduledExecutorService
toXSiteStatePushTask
.getSitesMissingCoordinator
(Collection<Address> currentMembers) void
notifyStateTransferEnd
(String siteName, Address origin, boolean statusOk) NotifiesXSiteStatePushTask
has completed the send.void
startStateTransfer
(String siteName, Address requestor, int minTopologyId) It notifies this node to start sending state to the remote site.toString()
-
Method Details
-
getInstance
-
startStateTransfer
Description copied from interface:XSiteStateProvider
It notifies this node to start sending state to the remote site. Also, it should keep information about which node requested the state transfer in order to send back the notification when finishes.- Specified by:
startStateTransfer
in interfaceXSiteStateProvider
- Parameters:
siteName
- the remote site name.requestor
- the requestor.minTopologyId
- the topology id to wait before start sending the state.
-
cancelStateTransfer
Description copied from interface:XSiteStateProvider
It cancels the state transfer for the remote site. If no state transfer is available, it should do nothing.- Specified by:
cancelStateTransfer
in interfaceXSiteStateProvider
- Parameters:
siteName
- the remote site name.
-
getCurrentStateSending
- Specified by:
getCurrentStateSending
in interfaceXSiteStateProvider
- Returns:
- a site name collection with the sites in which this cache is sending state.
-
getSitesMissingCoordinator
- Specified by:
getSitesMissingCoordinator
in interfaceXSiteStateProvider
- Returns:
- a site name collection with sites in which the coordinator is not in the
currentMembers
.
-
notifyStateTransferEnd
Description copied from interface:XSiteStateProvider
NotifiesXSiteStatePushTask
has completed the send.- Specified by:
notifyStateTransferEnd
in interfaceXSiteStateProvider
- Parameters:
siteName
- The remote site name.origin
- The originatorAddress
.statusOk
-true
if completed successfully,false
if it failed.
-
getCommandsFactory
Description copied from interface:XSiteStateProvider
ExposesCommandsFactory
toXSiteStatePushTask
.- Specified by:
getCommandsFactory
in interfaceXSiteStateProvider
-
getRpcManager
Description copied from interface:XSiteStateProvider
ExposesRpcManager
toXSiteStatePushTask
.- Specified by:
getRpcManager
in interfaceXSiteStateProvider
-
getIracManager
Description copied from interface:XSiteStateProvider
ExposesIracManager
toXSiteStatePushTask
.- Specified by:
getIracManager
in interfaceXSiteStateProvider
-
getScheduledExecutorService
Description copied from interface:XSiteStateProvider
Exposes timeoutScheduledExecutorService
toXSiteStatePushTask
.- Specified by:
getScheduledExecutorService
in interfaceXSiteStateProvider
-
getExecutor
Description copied from interface:XSiteStateProvider
Exposes non-blockingExecutor
toXSiteStatePushTask
.- Specified by:
getExecutor
in interfaceXSiteStateProvider
-
toString
-