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,ToXContent,ToXContentFragment
public class NodeStats extends BaseNodeResponse implements ToXContentFragment
Node statistics (dynamic, changes depending on when created).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
-
Constructor Summary
Constructors Constructor Description NodeStats(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)NodeStats(StreamInput in) -
Method Summary
Modifier and Type Method Description AdaptiveSelectionStatsgetAdaptiveSelectionStats()AllCircuitBreakerStatsgetBreaker()DiscoveryStatsgetDiscoveryStats()FsInfogetFs()File system level stats.java.lang.StringgetHostname()HttpStatsgetHttp()NodeIndicesStatsgetIndices()Indices level stats.IngestStatsgetIngestStats()JvmStatsgetJvm()JVM level statistics.OsStatsgetOs()Operating System level statistics.ProcessStatsgetProcess()Process level statistics.ScriptStatsgetScriptStats()ThreadPoolStatsgetThreadPool()Thread Pool level statistics.longgetTimestamp()TransportStatsgetTransport()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Constructor Details
-
NodeStats
- Throws:
java.io.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)
-
-
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
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBaseNodeResponse- Throws:
java.io.IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-