Class NoOpXSiteStateProvider
- java.lang.Object
-
- org.infinispan.xsite.statetransfer.NoOpXSiteStateProvider
-
- All Implemented Interfaces:
XSiteStateProvider
public class NoOpXSiteStateProvider extends java.lang.Object implements XSiteStateProvider
A no-op implementation ofXSiteStateProvider.This class is used when cross-site replication is disabled.
- Since:
- 10.0
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelStateTransfer(java.lang.String siteName)It cancels the state transfer for the remote site.java.util.Collection<java.lang.String>getCurrentStateSending()static NoOpXSiteStateProvidergetInstance()java.util.Collection<java.lang.String>getSitesMissingCoordinator(java.util.Collection<Address> currentMembers)voidstartStateTransfer(java.lang.String siteName, Address requestor, int minTopologyId)It notifies this node to start sending state to the remote site.java.lang.StringtoString()
-
-
-
Method Detail
-
getInstance
public static NoOpXSiteStateProvider getInstance()
-
startStateTransfer
public void startStateTransfer(java.lang.String siteName, Address requestor, int minTopologyId)Description copied from interface:XSiteStateProviderIt 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:
startStateTransferin interfaceXSiteStateProvider- Parameters:
siteName- the remote site name.requestor- the requestor.minTopologyId- the topology id to wait before start sending the state.
-
cancelStateTransfer
public void cancelStateTransfer(java.lang.String siteName)
Description copied from interface:XSiteStateProviderIt cancels the state transfer for the remote site. If no state transfer is available, it should do nothing.- Specified by:
cancelStateTransferin interfaceXSiteStateProvider- Parameters:
siteName- the remote site name.
-
getCurrentStateSending
public java.util.Collection<java.lang.String> getCurrentStateSending()
- Specified by:
getCurrentStateSendingin interfaceXSiteStateProvider- Returns:
- a site name collection with the sites in which this cache is sending state.
-
getSitesMissingCoordinator
public java.util.Collection<java.lang.String> getSitesMissingCoordinator(java.util.Collection<Address> currentMembers)
- Specified by:
getSitesMissingCoordinatorin interfaceXSiteStateProvider- Returns:
- a site name collection with sites in which the coordinator is not in the
currentMembers.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-