Module org.elasticsearch.server
Package org.elasticsearch.cluster
Record Class NodeUsageStatsForThreadPools
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.NodeUsageStatsForThreadPools
- Record Components:
nodeId- The node ID.threadPoolUsageStatsMap- A map of thread pool name (ThreadPool.Names) to the thread pool's usage stats (NodeUsageStatsForThreadPools.ThreadPoolUsageStats).
- All Implemented Interfaces:
Writeable
public record NodeUsageStatsForThreadPools(String nodeId, Map<String,NodeUsageStatsForThreadPools.ThreadPoolUsageStats> threadPoolUsageStatsMap)
extends Record
implements Writeable
Record of a node's thread pool usage stats (operation load). Maps thread pool stats by thread pool name.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRecord of usage stats for a thread pool.Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionNodeUsageStatsForThreadPools(String nodeId, Map<String, NodeUsageStatsForThreadPools.ThreadPoolUsageStats> threadPoolUsageStatsMap) Creates an instance of aNodeUsageStatsForThreadPoolsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.nodeId()Returns the value of thenodeIdrecord component.Returns the value of thethreadPoolUsageStatsMaprecord component.toString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
NodeUsageStatsForThreadPools
- Throws:
IOException
-
NodeUsageStatsForThreadPools
public NodeUsageStatsForThreadPools(String nodeId, Map<String, NodeUsageStatsForThreadPools.ThreadPoolUsageStats> threadPoolUsageStatsMap) Creates an instance of aNodeUsageStatsForThreadPoolsrecord class.- Parameters:
nodeId- the value for thenodeIdrecord componentthreadPoolUsageStatsMap- the value for thethreadPoolUsageStatsMaprecord component
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
threadPoolUsageStatsMap
Returns the value of thethreadPoolUsageStatsMaprecord component.- Returns:
- the value of the
threadPoolUsageStatsMaprecord component
-