public class NodeService extends AbstractComponent
deprecationLogger, 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 transport,
boolean http,
boolean plugin) |
void |
putAttribute(String key,
String value) |
void |
removeAttribute(String key) |
void |
setHttpServer(HttpServer httpServer) |
void |
setScriptService(ScriptService scriptService) |
NodeStats |
stats() |
NodeStats |
stats(CommonStatsFlags indices,
boolean os,
boolean process,
boolean jvm,
boolean threadPool,
boolean fs,
boolean transport,
boolean http,
boolean circuitBreaker,
boolean script) |
logDeprecatedSetting, logRemovedSetting, nodeName
@Inject public NodeService(Settings settings, ThreadPool threadPool, MonitorService monitorService, Discovery discovery, TransportService transportService, IndicesService indicesService, PluginsService pluginService, CircuitBreakerService circuitBreakerService, Version version)
@Inject(optional=true) public void setScriptService(ScriptService scriptService)
public void setHttpServer(@Nullable HttpServer httpServer)
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 transport, boolean http, boolean plugin)
public NodeStats stats() throws IOException
IOException
public NodeStats stats(CommonStatsFlags indices, boolean os, boolean process, boolean jvm, boolean threadPool, boolean fs, boolean transport, boolean http, boolean circuitBreaker, boolean script)
Copyright © 2009–2016. All rights reserved.