Module org.elasticsearch.server
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 TypeMethodDescriptionvoid
close()
boolean
isOpen()
void
writeFullStateAndCommit
(long currentTerm, ClusterState clusterState) Overrides and commits the given current term and cluster statevoid
writeIncrementalTermUpdateAndCommit
(long currentTerm, long lastAcceptedVersion, IndexVersion oldestIndexVersion, String clusterUUID, boolean clusterUUIDCommitted)
-
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, IndexVersion oldestIndexVersion, String clusterUUID, boolean clusterUUIDCommitted) throws IOException - Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-