Class AbstractCoordinatorTestCase.DefaultCoordinatorStrategy
java.lang.Object
org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase.DefaultCoordinatorStrategy
- All Implemented Interfaces:
Closeable
,AutoCloseable
,AbstractCoordinatorTestCase.CoordinatorStrategy
- Enclosing class:
- AbstractCoordinatorTestCase
public class AbstractCoordinatorTestCase.DefaultCoordinatorStrategy
extends Object
implements AbstractCoordinatorTestCase.CoordinatorStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFreshPersistedState
(DiscoveryNode localNode, BooleanSupplier disruptStorage, ThreadPool threadPool) createPersistedStateFromExistingState
(DiscoveryNode newLocalNode, CoordinationState.PersistedState oldState, Function<Metadata, Metadata> adaptGlobalMetadata, Function<Long, Long> adaptCurrentTerm, LongSupplier currentTimeInMillisSupplier, NamedWriteableRegistry namedWriteableRegistry, BooleanSupplier disruptStorage, ThreadPool threadPool) getCoordinationServices
(ThreadPool threadPool, Settings settings, ClusterSettings clusterSettings, CoordinationState.PersistedState persistedState, BooleanSupplier isDisruptedSupplier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase.CoordinatorStrategy
close
-
Constructor Details
-
DefaultCoordinatorStrategy
public DefaultCoordinatorStrategy() -
DefaultCoordinatorStrategy
-
-
Method Details
-
getCoordinationServices
public AbstractCoordinatorTestCase.CoordinationServices getCoordinationServices(ThreadPool threadPool, Settings settings, ClusterSettings clusterSettings, CoordinationState.PersistedState persistedState, BooleanSupplier isDisruptedSupplier) - Specified by:
getCoordinationServices
in interfaceAbstractCoordinatorTestCase.CoordinatorStrategy
-
createFreshPersistedState
public CoordinationState.PersistedState createFreshPersistedState(DiscoveryNode localNode, BooleanSupplier disruptStorage, ThreadPool threadPool) - Specified by:
createFreshPersistedState
in interfaceAbstractCoordinatorTestCase.CoordinatorStrategy
-
createPersistedStateFromExistingState
public CoordinationState.PersistedState createPersistedStateFromExistingState(DiscoveryNode newLocalNode, CoordinationState.PersistedState oldState, Function<Metadata, Metadata> adaptGlobalMetadata, Function<Long, Long> adaptCurrentTerm, LongSupplier currentTimeInMillisSupplier, NamedWriteableRegistry namedWriteableRegistry, BooleanSupplier disruptStorage, ThreadPool threadPool) - Specified by:
createPersistedStateFromExistingState
in interfaceAbstractCoordinatorTestCase.CoordinatorStrategy
-