public class DiscoveryService extends AbstractLifecycleComponent<DiscoveryService>
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
SETTING_DISCOVERY_SEED |
static String |
SETTING_INITIAL_STATE_TIMEOUT |
lifecycledeprecationLogger, logger, settings| コンストラクタと説明 |
|---|
DiscoveryService(Settings settings,
DiscoverySettings discoverySettings,
Discovery discovery) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
static String |
generateNodeId(Settings settings) |
ClusterBlock |
getNoMasterBlock() |
void |
joinClusterAndWaitForInitialState() |
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).
|
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stoplogDeprecatedSetting, logRemovedSetting, nodeNamepublic static final String SETTING_INITIAL_STATE_TIMEOUT
@Inject public DiscoveryService(Settings settings, DiscoverySettings discoverySettings, Discovery discovery)
public ClusterBlock getNoMasterBlock()
protected void doStart()
public void joinClusterAndWaitForInitialState()
protected void doStop()
doStop クラス内 AbstractLifecycleComponent<DiscoveryService>protected void doClose()
public DiscoveryNode localNode()
public String nodeDescription()
public void publish(ClusterChangedEvent clusterChangedEvent, Discovery.AckListener ackListener)
The Discovery.AckListener allows to acknowledge the publish
event based on the response gotten from all nodes
Copyright © 2009–2016. All rights reserved.