Package org.elasticsearch.test
Class ClusterServiceUtils
java.lang.Object
org.elasticsearch.test.ClusterServiceUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
awaitClusterState
(org.apache.logging.log4j.Logger logger, Predicate<ClusterState> statePredicate, ClusterService clusterService) static void
awaitNoPendingTasks
(ClusterService clusterService) static ClusterService
createClusterService
(ClusterState initialState, ThreadPool threadPool) static ClusterService
createClusterService
(ClusterState initialState, ThreadPool threadPool, ClusterSettings clusterSettings) static ClusterService
createClusterService
(ThreadPool threadPool) static ClusterService
createClusterService
(ThreadPool threadPool, DiscoveryNode localNode) static ClusterService
createClusterService
(ThreadPool threadPool, DiscoveryNode localNode, ClusterSettings clusterSettings) static ClusterService
createClusterService
(ThreadPool threadPool, ClusterSettings clusterSettings) static ClusterStatePublisher
createClusterStatePublisher
(ClusterApplier clusterApplier) static NodeConnectionsService
static void
setAllElapsedMillis
(ClusterStatePublicationEvent clusterStatePublicationEvent) static void
setState
(ClusterApplierService executor, ClusterState clusterState) static void
setState
(ClusterService clusterService, ClusterState clusterState) Sets the state on the cluster applier servicestatic void
setState
(ClusterService clusterService, ClusterState.Builder clusterStateBuilder) static void
setState
(MasterService executor, ClusterState clusterState)
-
Constructor Details
-
ClusterServiceUtils
public ClusterServiceUtils()
-
-
Method Details
-
setState
-
setState
-
createClusterService
-
createClusterService
-
createClusterService
public static ClusterService createClusterService(ThreadPool threadPool, ClusterSettings clusterSettings) -
createClusterService
public static ClusterService createClusterService(ThreadPool threadPool, DiscoveryNode localNode, ClusterSettings clusterSettings) -
createNoOpNodeConnectionsService
-
createClusterStatePublisher
-
createClusterService
-
createClusterService
public static ClusterService createClusterService(ClusterState initialState, ThreadPool threadPool, ClusterSettings clusterSettings) -
setState
public static void setState(ClusterService clusterService, ClusterState.Builder clusterStateBuilder) -
setState
Sets the state on the cluster applier service -
setAllElapsedMillis
-
awaitClusterState
public static void awaitClusterState(org.apache.logging.log4j.Logger logger, Predicate<ClusterState> statePredicate, ClusterService clusterService) throws Exception - Throws:
Exception
-
awaitNoPendingTasks
-