public class ClusterServiceUtils
extends java.lang.Object
Constructor | Description |
---|---|
ClusterServiceUtils() |
public static MasterService createMasterService(ThreadPool threadPool, ClusterState initialClusterState)
public static MasterService createMasterService(ThreadPool threadPool, DiscoveryNode localNode)
public static void setState(ClusterApplierService executor, ClusterState clusterState)
public static void setState(MasterService executor, ClusterState clusterState)
public static ClusterService createClusterService(ThreadPool threadPool)
public static ClusterService createClusterService(ThreadPool threadPool, DiscoveryNode localNode)
public static ClusterService createClusterService(ThreadPool threadPool, DiscoveryNode localNode, ClusterSettings clusterSettings)
public static java.util.function.BiConsumer<ClusterChangedEvent,Discovery.AckListener> createClusterStatePublisher(ClusterApplier clusterApplier)
public static ClusterService createClusterService(ClusterState initialState, ThreadPool threadPool)
public static void setState(ClusterService clusterService, ClusterState.Builder clusterStateBuilder)
public static void setState(ClusterService clusterService, ClusterState clusterState)