Interface XSiteStateConsumer
-
- All Known Implementing Classes:
XSiteStateConsumerImpl
public interface XSiteStateConsumerIt contains the logic needed to consume the state sent from other site.- Since:
- 7.0
- Author:
- Pedro Ruivo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapplyState(XSiteState[] chunk)It applies state from other site.voidendStateTransfer(String sendingSite)It notifies the end of state transfer from other site.StringgetSendingSiteName()voidstartStateTransfer(String sendingSite)It notifies the start of state transfer from other site.
-
-
-
Method Detail
-
startStateTransfer
void startStateTransfer(String sendingSite)
It notifies the start of state transfer from other site.- Parameters:
sendingSite- the site name that will send the state.- Throws:
CacheException- if this node is received state from a different site name.
-
endStateTransfer
void endStateTransfer(String sendingSite)
It notifies the end of state transfer from other site.- Parameters:
sendingSite- the site name that is sending the state.
-
applyState
void applyState(XSiteState[] chunk) throws Exception
It applies state from other site.- Parameters:
chunk- a chunk of keys- Throws:
Exception- if something go wrong while applying the state
-
getSendingSiteName
String getSendingSiteName()
- Returns:
- the site name that is sending the state.
-
-