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 Detail

      • startStateTransfer

        void startStateTransfer​(java.lang.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​(java.lang.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 java.lang.Exception
        It applies state from other site.
        Parameters:
        chunk - a chunk of keys
        Throws:
        java.lang.Exception - if something go wrong while applying the state
      • getSendingSiteName

        java.lang.String getSendingSiteName()
        Returns:
        the site name that is sending the state.