Package org.elasticsearch.test.discovery
Class TestZenDiscovery
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractLifecycleComponent
-
- org.elasticsearch.discovery.zen.ZenDiscovery
-
- org.elasticsearch.test.discovery.TestZenDiscovery
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,LifecycleComponent,Releasable,Discovery,PingContextProvider,PublishClusterStateAction.IncomingClusterStateListener
public class TestZenDiscovery extends ZenDiscovery
A alternative zen discovery which allows using mocks for things like pings, as well as giving access to internals.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestZenDiscovery.TestPluginA plugin which installs mock discovery and configures it to be used.-
Nested classes/interfaces inherited from class org.elasticsearch.discovery.zen.ZenDiscovery
ZenDiscovery.NodeRemovalClusterStateTaskExecutor, ZenDiscovery.RejoinClusterRequest
-
Nested classes/interfaces inherited from interface org.elasticsearch.discovery.Discovery
Discovery.AckListener, Discovery.FailedToCommitClusterStateException
-
-
Field Summary
Fields Modifier and Type Field Description static Setting<java.lang.Boolean>USE_MOCK_PINGS-
Fields inherited from class org.elasticsearch.discovery.zen.ZenDiscovery
DISCOVERY_REJOIN_ACTION_NAME, JOIN_RETRY_ATTEMPTS_SETTING, JOIN_RETRY_DELAY_SETTING, JOIN_TIMEOUT_SETTING, MASTER_ELECTION_IGNORE_NON_MASTER_PINGS_SETTING, MASTER_ELECTION_WAIT_FOR_JOINS_TIMEOUT_SETTING, MAX_PENDING_CLUSTER_STATES_SETTING, MAX_PINGS_FROM_ANOTHER_MASTER_SETTING, PING_TIMEOUT_SETTING, SEND_LEAVE_REQUEST_SETTING, zenPing
-
Fields inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
lifecycle
-
-
Method Summary
Modifier and Type Method Description ZenPinggetZenPing()protected ZenPingnewZenPing(Settings settings, ThreadPool threadPool, TransportService transportService, UnicastHostsProvider hostsProvider)-
Methods inherited from class org.elasticsearch.discovery.zen.ZenDiscovery
clusterState, doClose, doStart, doStop, getDiscoverySettings, getOnJoinValidators, joiningCluster, onClusterStateCommitted, onIncomingClusterState, pendingClusterStates, publish, rejoin, shouldIgnoreOrRejectNewClusterState, startInitialJoin, stats, validateStateIsFromCurrentMaster
-
Methods inherited from class org.elasticsearch.common.component.AbstractLifecycleComponent
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
-
Methods inherited from interface org.elasticsearch.common.lease.Releasable
close
-
-
-
-
Field Detail
-
USE_MOCK_PINGS
public static final Setting<java.lang.Boolean> USE_MOCK_PINGS
-
-
Method Detail
-
newZenPing
protected ZenPing newZenPing(Settings settings, ThreadPool threadPool, TransportService transportService, UnicastHostsProvider hostsProvider)
- Overrides:
newZenPingin classZenDiscovery
-
getZenPing
public ZenPing getZenPing()
-
-