Module org.elasticsearch.server
Class NodesHotThreadsResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
org.elasticsearch.action.ActionResponse
org.elasticsearch.action.support.nodes.BaseNodesResponse<NodeHotThreads>
org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsResponse
- All Implemented Interfaces:
Writeable
,RefCounted
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.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.core.RefCounted
ALWAYS_REFERENCED
-
Constructor Summary
ConstructorsConstructorDescriptionNodesHotThreadsResponse
(ClusterName clusterName, List<NodeHotThreads> nodes, List<FailedNodeException> failures) -
Method Summary
Modifier and TypeMethodDescriptionboolean
decRef()
Note that the lifetime of an outboundTransportMessage
lasts at least until it has been fully sent over the network, and it may be closed on a network thread in a context in which there's a risk of stack overflows if on close it calls back into the network layer in a manner that might end up nesting too deeply.boolean
void
incRef()
protected List<NodeHotThreads>
Read theBaseNodesResponse.nodes
from the stream.boolean
protected void
writeNodesTo
(StreamOutput out, List<NodeHotThreads> nodes) Write theBaseNodesResponse.nodes
to the stream.Methods inherited from class org.elasticsearch.action.support.nodes.BaseNodesResponse
failures, getClusterName, getNodes, getNodesMap, hasFailures, writeTo
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.core.RefCounted
mustIncRef
-
Constructor Details
-
NodesHotThreadsResponse
public NodesHotThreadsResponse(ClusterName clusterName, List<NodeHotThreads> nodes, List<FailedNodeException> failures)
-
-
Method Details
-
getTextChunks
-
readNodesFrom
Description copied from class:BaseNodesResponse
Read theBaseNodesResponse.nodes
from the stream.- Specified by:
readNodesFrom
in classBaseNodesResponse<NodeHotThreads>
- Returns:
- Never
null
. - Throws:
IOException
-
writeNodesTo
Description copied from class:BaseNodesResponse
Write theBaseNodesResponse.nodes
to the stream.- Specified by:
writeNodesTo
in classBaseNodesResponse<NodeHotThreads>
- Throws:
IOException
-
incRef
public void incRef()- Specified by:
incRef
in interfaceRefCounted
- Overrides:
incRef
in classTransportMessage
-
tryIncRef
public boolean tryIncRef()- Specified by:
tryIncRef
in interfaceRefCounted
- Overrides:
tryIncRef
in classTransportMessage
-
decRef
public boolean decRef()Description copied from class:TransportMessage
Note that the lifetime of an outboundTransportMessage
lasts at least until it has been fully sent over the network, and it may be closed on a network thread in a context in which there's a risk of stack overflows if on close it calls back into the network layer in a manner that might end up nesting too deeply. When in doubt, dispatch any further work onto a separate thread.- Specified by:
decRef
in interfaceRefCounted
- Overrides:
decRef
in classTransportMessage
-
hasReferences
public boolean hasReferences()- Specified by:
hasReferences
in interfaceRefCounted
- Overrides:
hasReferences
in classTransportMessage
-