Package org.elasticsearch.discovery
Interface Discovery
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,ClusterStatePublisher
,LifecycleComponent
,org.elasticsearch.common.lease.Releasable
- All Known Implementing Classes:
Coordinator
,ZenDiscovery
public interface Discovery extends LifecycleComponent, ClusterStatePublisher
A pluggable module allowing to implement discovery of other nodes, publishing of the cluster
state to all nodes, electing a master of the cluster that raises cluster state change
events.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.cluster.coordination.ClusterStatePublisher
ClusterStatePublisher.AckListener
-
Method Summary
Modifier and Type Method Description void
startInitialJoin()
Triggers the first join cycleDiscoveryStats
stats()
Methods inherited from interface org.elasticsearch.cluster.coordination.ClusterStatePublisher
publish
Methods inherited from interface org.elasticsearch.common.component.LifecycleComponent
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
Methods inherited from interface org.elasticsearch.common.lease.Releasable
close
-
Method Details
-
stats
DiscoveryStats stats()- Returns:
- stats about the discovery
-
startInitialJoin
void startInitialJoin()Triggers the first join cycle
-