Class XSiteStateConsumerImpl
- java.lang.Object
-
- org.infinispan.xsite.statetransfer.XSiteStateConsumerImpl
-
- All Implemented Interfaces:
XSiteStateConsumer
public class XSiteStateConsumerImpl extends java.lang.Object implements XSiteStateConsumer
It contains the logic needed to consume the state sent from other site.- Since:
- 7.0
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description XSiteStateConsumerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyState(XSiteState[] chunk)It applies state from other site.voidendStateTransfer(java.lang.String sendingSite)It notifies the end of state transfer from other site.java.lang.StringgetSendingSiteName()voidstartStateTransfer(java.lang.String sendingSite)It notifies the start of state transfer from other site.
-
-
-
Method Detail
-
startStateTransfer
public void startStateTransfer(java.lang.String sendingSite)
Description copied from interface:XSiteStateConsumerIt notifies the start of state transfer from other site.- Specified by:
startStateTransferin interfaceXSiteStateConsumer- Parameters:
sendingSite- the site name that will send the state.
-
endStateTransfer
public void endStateTransfer(java.lang.String sendingSite)
Description copied from interface:XSiteStateConsumerIt notifies the end of state transfer from other site.- Specified by:
endStateTransferin interfaceXSiteStateConsumer- Parameters:
sendingSite- the site name that is sending the state.
-
applyState
public void applyState(XSiteState[] chunk) throws java.lang.Exception
Description copied from interface:XSiteStateConsumerIt applies state from other site.- Specified by:
applyStatein interfaceXSiteStateConsumer- Parameters:
chunk- a chunk of keys- Throws:
java.lang.Exception- if something go wrong while applying the state
-
getSendingSiteName
public java.lang.String getSendingSiteName()
- Specified by:
getSendingSiteNamein interfaceXSiteStateConsumer- Returns:
- the site name that is sending the state.
-
-