public class DiscoveryService extends AbstractLifecycleComponent<DiscoveryService>
| Modifier and Type | Field and Description |
|---|---|
static String |
SETTING_DISCOVERY_SEED |
static String |
SETTING_INITIAL_STATE_TIMEOUT |
lifecycledeprecationLogger, logger, settings| Constructor and Description |
|---|
DiscoveryService(Settings settings,
DiscoverySettings discoverySettings,
Discovery discovery) |
| Modifier and Type | Method and Description |
|---|---|
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
public static final String SETTING_DISCOVERY_SEED
@Inject public DiscoveryService(Settings settings, DiscoverySettings discoverySettings, Discovery discovery)
public ClusterBlock getNoMasterBlock()
protected void doStart()
doStart in class AbstractLifecycleComponent<DiscoveryService>public void joinClusterAndWaitForInitialState()
protected void doStop()
doStop in class AbstractLifecycleComponent<DiscoveryService>protected void doClose()
doClose in class AbstractLifecycleComponent<DiscoveryService>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–2017. All rights reserved.