public class NodeService extends AbstractComponent
componentSettings, logger, settings
Constructor and Description |
---|
NodeService(Settings settings,
ThreadPool threadPool,
MonitorService monitorService,
Discovery discovery,
TransportService transportService,
IndicesService indicesService,
PluginsService pluginService,
CircuitBreakerService circuitBreakerService,
Version version) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<String,String> |
attributes()
Attributes different services in the node can add to be reported as part of the node info (for example).
|
NodeInfo |
info() |
NodeInfo |
info(boolean settings,
boolean os,
boolean process,
boolean jvm,
boolean threadPool,
boolean network,
boolean transport,
boolean http,
boolean plugin) |
void |
putAttribute(String key,
String value) |
void |
putNodeAttribute(String key,
String value)
Deprecated.
|
void |
removeAttribute(String key) |
void |
removeNodeAttribute(String key)
Deprecated.
|
void |
setHttpServer(HttpServer httpServer) |
NodeStats |
stats() |
NodeStats |
stats(CommonStatsFlags indices,
boolean os,
boolean process,
boolean jvm,
boolean threadPool,
boolean network,
boolean fs,
boolean transport,
boolean http,
boolean circuitBreaker) |
nodeName
@Inject public NodeService(Settings settings, ThreadPool threadPool, MonitorService monitorService, Discovery discovery, TransportService transportService, IndicesService indicesService, PluginsService pluginService, CircuitBreakerService circuitBreakerService, Version version)
public void setHttpServer(@Nullable HttpServer httpServer)
@Deprecated public void putNodeAttribute(String key, String value)
@Deprecated public void removeNodeAttribute(String key)
public void removeAttribute(String key)
public com.google.common.collect.ImmutableMap<String,String> attributes()
public NodeInfo info()
public NodeInfo info(boolean settings, boolean os, boolean process, boolean jvm, boolean threadPool, boolean network, boolean transport, boolean http, boolean plugin)
public NodeStats stats()
public NodeStats stats(CommonStatsFlags indices, boolean os, boolean process, boolean jvm, boolean threadPool, boolean network, boolean fs, boolean transport, boolean http, boolean circuitBreaker)
Copyright © 2009–2015. All rights reserved.