public interface Discovery extends LifecycleComponent<Discovery>
| 修飾子とタイプ | インタフェースと説明 |
|---|---|
static interface |
Discovery.AckListener |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addListener(InitialStateDiscoveryListener listener) |
DiscoveryNode |
localNode() |
String |
nodeDescription() |
void |
publish(ClusterChangedEvent clusterChangedEvent,
Discovery.AckListener ackListener)
Publish all the changes to the cluster from the master (can be called just by the master).
|
void |
removeListener(InitialStateDiscoveryListener listener) |
void |
setNodeService(NodeService nodeService)
Here as a hack to solve dep injection problem...
|
void |
setRoutingService(RoutingService routingService)
Another hack to solve dep injection problem..., note, this will be called before
any start is called.
|
void |
startInitialJoin()
Triggers the first join cycle
|
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stopcloseDiscoveryNode localNode()
void addListener(InitialStateDiscoveryListener listener)
void removeListener(InitialStateDiscoveryListener listener)
String nodeDescription()
void setNodeService(@Nullable NodeService nodeService)
void setRoutingService(RoutingService routingService)
void publish(ClusterChangedEvent clusterChangedEvent, Discovery.AckListener ackListener)
Discovery.AckListener allows to keep track of the ack received from nodes, and verify whether
they updated their own cluster state or not.void startInitialJoin()
Copyright © 2009–2016. All rights reserved.