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