Module org.elasticsearch.server
Class NodeStats
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.support.nodes.BaseNodeResponse
org.elasticsearch.action.admin.cluster.node.stats.NodeStats
- All Implemented Interfaces:
Writeable
,ChunkedToXContent
,RefCounted
Node statistics (dynamic, changes depending on when created).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTY
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED
-
Constructor Summary
ConstructorDescriptionNodeStats
(DiscoveryNode node, long timestamp, NodeIndicesStats indices, OsStats os, ProcessStats process, JvmStats jvm, ThreadPoolStats threadPool, FsInfo fs, TransportStats transport, HttpStats http, AllCircuitBreakerStats breaker, ScriptStats scriptStats, DiscoveryStats discoveryStats, IngestStats ingestStats, AdaptiveSelectionStats adaptiveSelectionStats, ScriptCacheStats scriptCacheStats, IndexingPressureStats indexingPressureStats, RepositoriesStats repositoriesStats) NodeStats
(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptiongetFs()
File system level stats.getHttp()
Indices level stats.getJvm()
JVM level statistics.getOs()
Operating System level statistics.Process level statistics.Thread Pool level statistics.long
Iterator<? extends ToXContent>
toXContentChunked
(ToXContent.Params outerParams) Create an iterator ofToXContent
chunks for a REST response.void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.nodes.BaseNodeResponse
getNode
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
isFragment, toXContentChunkedV7
Methods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
NodeStats
- Throws:
IOException
-
NodeStats
public NodeStats(DiscoveryNode node, long timestamp, @Nullable NodeIndicesStats indices, @Nullable OsStats os, @Nullable ProcessStats process, @Nullable JvmStats jvm, @Nullable ThreadPoolStats threadPool, @Nullable FsInfo fs, @Nullable TransportStats transport, @Nullable HttpStats http, @Nullable AllCircuitBreakerStats breaker, @Nullable ScriptStats scriptStats, @Nullable DiscoveryStats discoveryStats, @Nullable IngestStats ingestStats, @Nullable AdaptiveSelectionStats adaptiveSelectionStats, @Nullable ScriptCacheStats scriptCacheStats, @Nullable IndexingPressureStats indexingPressureStats, @Nullable RepositoriesStats repositoriesStats)
-
-
Method Details
-
getTimestamp
public long getTimestamp() -
getHostname
-
getIndices
Indices level stats. -
getOs
Operating System level statistics. -
getProcess
Process level statistics. -
getJvm
JVM level statistics. -
getThreadPool
Thread Pool level statistics. -
getFs
File system level stats. -
getTransport
-
getHttp
-
getBreaker
-
getScriptStats
-
getDiscoveryStats
-
getIngestStats
-
getAdaptiveSelectionStats
-
getScriptCacheStats
-
getIndexingPressureStats
-
getRepositoriesStats
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classBaseNodeResponse
- Throws:
IOException
-
toXContentChunked
Description copied from interface:ChunkedToXContent
Create an iterator ofToXContent
chunks for a REST response. Each chunk is serialized with the sameXContentBuilder
andToXContent.Params
, which is also the same as theToXContent.Params
passed as theparams
argument. For best results, all chunks should beO(1)
size. The last chunk in the iterator must always yield at least one byte of output. See alsoChunkedToXContentHelper
for some handy utilities.Note that chunked response bodies cannot send deprecation warning headers once transmission has started, so implementations must check for deprecated feature use before returning.
- Specified by:
toXContentChunked
in interfaceChunkedToXContent
- Returns:
- iterator over chunks of
ToXContent
-