Interface XSiteStateConsumer

All Known Implementing Classes:
XSiteStateConsumerImpl

public interface XSiteStateConsumer
It contains the logic needed to consume the state sent from other site.
Since:
7.0
Author:
Pedro Ruivo
  • Method Details

    • 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.