Package com.attivio.sdk.server.global
Interface VersionedMasterElection
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
@Deprecated public interface VersionedMasterElection extends java.io.CloseableDeprecated.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 voidnewLocalVersion()Deprecated.Notification indicating that local version has been updated.voidregisterListener(VariableListener listener)Deprecated.Register a listener to receive notifications about changes to master version.voidregisterMaster(MasterCandidate engine)Deprecated.Checks the global variable value against the local value and acquires the lock if the values match.voidrollback(java.lang.String version)Deprecated.Rollback the global version toversionvoidsetGlobalVersion(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 AttivioExceptionDeprecated.Updates the global value for the election to be based on.- Throws:
AttivioException
-
newLocalVersion
void newLocalVersion() throws AttivioExceptionDeprecated.Notification indicating that local version has been updated.- Throws:
AttivioException
-
rollback
void rollback(java.lang.String version) throws AttivioExceptionDeprecated.Rollback the global version toversionThis method will fail if a master is currently elected.
- Throws:
AttivioException
-
-