Class CoordinationStateTestCluster
java.lang.Object
org.elasticsearch.cluster.coordination.CoordinationStateTestCluster
-
Constructor Summary
ConstructorsConstructorDescriptionCoordinationStateTestCluster
(List<org.elasticsearch.cluster.node.DiscoveryNode> nodes, org.elasticsearch.cluster.coordination.ElectionStrategy electionStrategy) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.elasticsearch.cluster.ClusterState
clusterState
(long term, long version, org.elasticsearch.cluster.node.DiscoveryNode localNode, org.elasticsearch.cluster.coordination.CoordinationMetadata.VotingConfiguration lastCommittedConfig, org.elasticsearch.cluster.coordination.CoordinationMetadata.VotingConfiguration lastAcceptedConfig, long value) static org.elasticsearch.cluster.ClusterState
clusterState
(long term, long version, org.elasticsearch.cluster.node.DiscoveryNodes discoveryNodes, org.elasticsearch.cluster.coordination.CoordinationMetadata.VotingConfiguration lastCommittedConfig, org.elasticsearch.cluster.coordination.CoordinationMetadata.VotingConfiguration lastAcceptedConfig, long value) void
static org.elasticsearch.cluster.ClusterState
setValue
(org.elasticsearch.cluster.ClusterState clusterState, long value) static long
value
(org.elasticsearch.cluster.ClusterState clusterState)
-
Constructor Details
-
CoordinationStateTestCluster
public CoordinationStateTestCluster(List<org.elasticsearch.cluster.node.DiscoveryNode> nodes, org.elasticsearch.cluster.coordination.ElectionStrategy electionStrategy)
-
-
Method Details
-
clusterState
public static org.elasticsearch.cluster.ClusterState clusterState(long term, long version, org.elasticsearch.cluster.node.DiscoveryNode localNode, org.elasticsearch.cluster.coordination.CoordinationMetadata.VotingConfiguration lastCommittedConfig, org.elasticsearch.cluster.coordination.CoordinationMetadata.VotingConfiguration lastAcceptedConfig, long value) -
clusterState
public static org.elasticsearch.cluster.ClusterState clusterState(long term, long version, org.elasticsearch.cluster.node.DiscoveryNodes discoveryNodes, org.elasticsearch.cluster.coordination.CoordinationMetadata.VotingConfiguration lastCommittedConfig, org.elasticsearch.cluster.coordination.CoordinationMetadata.VotingConfiguration lastAcceptedConfig, long value) -
setValue
public static org.elasticsearch.cluster.ClusterState setValue(org.elasticsearch.cluster.ClusterState clusterState, long value) -
value
public static long value(org.elasticsearch.cluster.ClusterState clusterState) -
runRandomly
public void runRandomly()
-