Interface VersionedMasterElection

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable

    @Deprecated
    public interface VersionedMasterElection
    extends java.io.Closeable
    Deprecated.
    This API should no longer be used and is scheduled for removal in a future release
    Master election that only allows nodes whose local value matches the expected global value to participate in the election.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void newLocalVersion()
      Deprecated.
      Notification indicating that local version has been updated.
      void registerListener​(VariableListener listener)
      Deprecated.
      Register a listener to receive notifications about changes to master version.
      void registerMaster​(MasterCandidate engine)
      Deprecated.
      Checks the global variable value against the local value and acquires the lock if the values match.
      void rollback​(java.lang.String version)
      Deprecated.
      Rollback the global version to version
      void setGlobalVersion​(java.lang.String version)
      Deprecated.
      Updates the global value for the election to be based on.
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • registerMaster

        void registerMaster​(MasterCandidate engine)
                     throws AttivioException
        Deprecated.
        Checks the global variable value against the local value and acquires the lock if the values match.

        Does a 2nd check after acquiring the lock to ensure no changes were missed.

        Throws:
        AttivioException
      • setGlobalVersion

        void setGlobalVersion​(java.lang.String version)
                       throws AttivioException
        Deprecated.
        Updates the global value for the election to be based on.
        Throws:
        AttivioException
      • newLocalVersion

        void newLocalVersion()
                      throws AttivioException
        Deprecated.
        Notification indicating that local version has been updated.
        Throws:
        AttivioException
      • rollback

        void rollback​(java.lang.String version)
               throws AttivioException
        Deprecated.
        Rollback the global version to version

        This method will fail if a master is currently elected.

        Throws:
        AttivioException