Package org.elasticsearch.gateway
Class PersistedClusterStateService.Writer
java.lang.Object
org.elasticsearch.gateway.PersistedClusterStateService.Writer
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- PersistedClusterStateService
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanisOpen()voidwriteFullStateAndCommit(long currentTerm, ClusterState clusterState) Overrides and commits the given current term and cluster statevoidwriteIncrementalTermUpdateAndCommit(long currentTerm, long lastAcceptedVersion, Version oldestIndexVersion)
-
Method Details
-
isOpen
public boolean isOpen() -
writeFullStateAndCommit
Overrides and commits the given current term and cluster state- Throws:
IOException
-
writeIncrementalTermUpdateAndCommit
public void writeIncrementalTermUpdateAndCommit(long currentTerm, long lastAcceptedVersion, Version oldestIndexVersion) throws IOException - Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-