public class NodeSettingsService extends AbstractComponent implements ClusterStateListener
Modifier and Type | Class and Description |
---|---|
static interface |
NodeSettingsService.Listener |
deprecationLogger, logger, settings
Constructor and Description |
---|
NodeSettingsService(Settings settings) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(NodeSettingsService.Listener listener)
Only settings registered in
ClusterModule can be changed dynamically. |
void |
clusterChanged(ClusterChangedEvent event)
Called when cluster state changes.
|
static Settings |
getGlobalSettings()
Returns the global (static) settings last updated by a node.
|
void |
removeListener(NodeSettingsService.Listener listener) |
void |
setClusterService(ClusterService clusterService) |
logDeprecatedSetting, logRemovedSetting, nodeName
public static Settings getGlobalSettings()
public void setClusterService(ClusterService clusterService)
public void clusterChanged(ClusterChangedEvent event)
ClusterStateListener
clusterChanged
in interface ClusterStateListener
public void addListener(NodeSettingsService.Listener listener)
ClusterModule
can be changed dynamically.public void removeListener(NodeSettingsService.Listener listener)
Copyright © 2009–2016. All rights reserved.