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 interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTYFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionNodeStats(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, NodeAllocationStats nodeAllocationStats) 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.longIterator<? extends ToXContent> toXContentChunked(ToXContent.Params outerParams) Create an iterator ofToXContentchunks for a REST response.withNodeAllocationStats(NodeAllocationStats nodeAllocationStats, DiskThresholdSettings masterThresholdSettings) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.nodes.BaseNodeResponse
getNodeMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
isFragment, toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Field Details
-
MULTI_PROJECT_ENABLED_XCONTENT_PARAM_KEY
- See Also:
-
-
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, @Nullable NodeAllocationStats nodeAllocationStats)
-
-
Method Details
-
withNodeAllocationStats
public NodeStats withNodeAllocationStats(@Nullable NodeAllocationStats nodeAllocationStats, @Nullable DiskThresholdSettings masterThresholdSettings) -
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
-
getNodeAllocationStats
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseNodeResponse- Throws:
IOException
-
toXContentChunked
Description copied from interface:ChunkedToXContentCreate an iterator ofToXContentchunks for a REST response. Each chunk is serialized with the sameXContentBuilderandToXContent.Params, which is also the same as theToXContent.Paramspassed as theparamsargument. 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 alsoChunkedToXContentHelperfor 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:
toXContentChunkedin interfaceChunkedToXContent- Returns:
- iterator over chunks of
ToXContent
-