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:
Streamable
,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.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
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.ToXContent
EMPTY_PARAMS
-
-
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)
-
Method Summary
Modifier and Type Method Description AdaptiveSelectionStats
getAdaptiveSelectionStats()
AllCircuitBreakerStats
getBreaker()
DiscoveryStats
getDiscoveryStats()
FsInfo
getFs()
File system level stats.java.lang.String
getHostname()
HttpStats
getHttp()
NodeIndicesStats
getIndices()
Indices level stats.IngestStats
getIngestStats()
JvmStats
getJvm()
JVM level statistics.OsStats
getOs()
Operating System level statistics.ProcessStats
getProcess()
Process level statistics.ScriptStats
getScriptStats()
ThreadPoolStats
getThreadPool()
Thread Pool level statistics.long
getTimestamp()
TransportStats
getTransport()
void
readFrom(StreamInput in)
Set this object's fields from a StreamInput.static NodeStats
readNodeStats(StreamInput in)
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.-
Methods inherited from class org.elasticsearch.action.support.nodes.BaseNodeResponse
getNode
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
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.ToXContentFragment
isFragment
-
-
-
-
Constructor Detail
-
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 Detail
-
getTimestamp
public long getTimestamp()
-
getHostname
@Nullable public java.lang.String getHostname()
-
getIndices
@Nullable public NodeIndicesStats getIndices()
Indices level stats.
-
getProcess
@Nullable public ProcessStats getProcess()
Process level statistics.
-
getThreadPool
@Nullable public ThreadPoolStats getThreadPool()
Thread Pool level statistics.
-
getTransport
@Nullable public TransportStats getTransport()
-
getBreaker
@Nullable public AllCircuitBreakerStats getBreaker()
-
getScriptStats
@Nullable public ScriptStats getScriptStats()
-
getDiscoveryStats
@Nullable public DiscoveryStats getDiscoveryStats()
-
getIngestStats
@Nullable public IngestStats getIngestStats()
-
getAdaptiveSelectionStats
@Nullable public AdaptiveSelectionStats getAdaptiveSelectionStats()
-
readNodeStats
public static NodeStats readNodeStats(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Overrides:
readFrom
in classBaseNodeResponse
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classBaseNodeResponse
- Throws:
java.io.IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
-