Package com.attivio.sdk.server.global
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 releaseMaster 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 toversion
void
setGlobalVersion(java.lang.String version)
Deprecated.Updates the global value for the election to be based on.
-
-
-
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
-
registerListener
void registerListener(VariableListener listener) throws AttivioException
Deprecated.Register a listener to receive notifications about changes to master version.- 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 toversion
This method will fail if a master is currently elected.
- Throws:
AttivioException
-
-