public class LocalDiscovery extends AbstractLifecycleComponent<Discovery> implements Discovery
Discovery.AckListenerlifecycledeprecationLogger, logger, settings| コンストラクタと説明 |
|---|
LocalDiscovery(Settings settings,
ClusterName clusterName,
ClusterService clusterService,
DiscoverySettings discoverySettings) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addListener(InitialStateDiscoveryListener listener) |
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
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, close, lifecycleState, removeLifecycleListener, start, stoplogDeprecatedSetting, logRemovedSetting, nodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifecycleListener, lifecycleState, removeLifecycleListener, start, stopclose@Inject public LocalDiscovery(Settings settings, ClusterName clusterName, ClusterService clusterService, DiscoverySettings discoverySettings)
public void setNodeService(@Nullable NodeService nodeService)
DiscoverysetNodeService インタフェース内 Discoverypublic void setRoutingService(RoutingService routingService)
DiscoverysetRoutingService インタフェース内 Discoveryprotected void doStart()
doStart クラス内 AbstractLifecycleComponent<Discovery>public void startInitialJoin()
DiscoverystartInitialJoin インタフェース内 Discoveryprotected void doStop()
doStop クラス内 AbstractLifecycleComponent<Discovery>protected void doClose()
doClose クラス内 AbstractLifecycleComponent<Discovery>public DiscoveryNode localNode()
public void addListener(InitialStateDiscoveryListener listener)
addListener インタフェース内 Discoverypublic void removeListener(InitialStateDiscoveryListener listener)
removeListener インタフェース内 Discoverypublic String nodeDescription()
nodeDescription インタフェース内 Discoverypublic void publish(ClusterChangedEvent clusterChangedEvent, Discovery.AckListener ackListener)
DiscoveryDiscovery.AckListener allows to keep track of the ack received from nodes, and verify whether
they updated their own cluster state or not.Copyright © 2009–2016. All rights reserved.