Package org.elasticsearch.test
Class ClusterServiceUtils
java.lang.Object
org.elasticsearch.test.ClusterServiceUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubscribableListener<Void>addTemporaryStateListener(ClusterService clusterService, Predicate<ClusterState> predicate) static voidawaitClusterState(org.apache.logging.log4j.Logger logger, Predicate<ClusterState> statePredicate, ClusterService clusterService) static voidawaitNoPendingTasks(ClusterService clusterService) static ClusterServicecreateClusterService(ClusterState initialState, ThreadPool threadPool) static ClusterServicecreateClusterService(ClusterState initialState, ThreadPool threadPool, ClusterSettings clusterSettings) static ClusterServicecreateClusterService(ThreadPool threadPool) static ClusterServicecreateClusterService(ThreadPool threadPool, DiscoveryNode localNode) static ClusterServicecreateClusterService(ThreadPool threadPool, DiscoveryNode localNode, ClusterSettings clusterSettings) static ClusterServicecreateClusterService(ThreadPool threadPool, DiscoveryNode localNode, Settings providedSettings, ClusterSettings clusterSettings) static ClusterServicecreateClusterService(ThreadPool threadPool, ClusterSettings clusterSettings) static ClusterStatePublishercreateClusterStatePublisher(ClusterApplier clusterApplier) static NodeConnectionsServicestatic voidsetAllElapsedMillis(ClusterStatePublicationEvent clusterStatePublicationEvent) static voidsetState(ClusterApplierService executor, ClusterState clusterState) static voidsetState(ClusterService clusterService, ClusterState clusterState) Sets the state on the cluster applier servicestatic voidsetState(ClusterService clusterService, ClusterState.Builder clusterStateBuilder) static voidsetState(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) -
createClusterService
public static ClusterService createClusterService(ThreadPool threadPool, DiscoveryNode localNode, Settings providedSettings, 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
-
addTemporaryStateListener
public static SubscribableListener<Void> addTemporaryStateListener(ClusterService clusterService, Predicate<ClusterState> predicate)
-