Module org.elasticsearch.xcore
Record Class EnrichStatsAction.Response.CoordinatorStats
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.enrich.action.EnrichStatsAction.Response.CoordinatorStats
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
- Enclosing class:
EnrichStatsAction.Response
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested 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.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionCoordinatorStats(String nodeId, int queueSize, int remoteRequestsCurrent, long remoteRequestsTotal, long executedSearchesTotal) Creates an instance of aCoordinatorStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexecutedSearchesTotalrecord component.final inthashCode()Returns a hash code value for this object.nodeId()Returns the value of thenodeIdrecord component.intReturns the value of thequeueSizerecord component.intReturns the value of theremoteRequestsCurrentrecord component.longReturns the value of theremoteRequestsTotalrecord component.final StringtoString()Returns a string representation of this record class.org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
CoordinatorStats
- Throws:
IOException
-
CoordinatorStats
public CoordinatorStats(String nodeId, int queueSize, int remoteRequestsCurrent, long remoteRequestsTotal, long executedSearchesTotal) Creates an instance of aCoordinatorStatsrecord class.- Parameters:
nodeId- the value for thenodeIdrecord componentqueueSize- the value for thequeueSizerecord componentremoteRequestsCurrent- the value for theremoteRequestsCurrentrecord componentremoteRequestsTotal- the value for theremoteRequestsTotalrecord componentexecutedSearchesTotal- the value for theexecutedSearchesTotalrecord component
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
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. -
hashCode
public final 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
queueSize
public int queueSize()Returns the value of thequeueSizerecord component.- Returns:
- the value of the
queueSizerecord component
-
remoteRequestsCurrent
public int remoteRequestsCurrent()Returns the value of theremoteRequestsCurrentrecord component.- Returns:
- the value of the
remoteRequestsCurrentrecord component
-
remoteRequestsTotal
public long remoteRequestsTotal()Returns the value of theremoteRequestsTotalrecord component.- Returns:
- the value of the
remoteRequestsTotalrecord component
-
executedSearchesTotal
public long executedSearchesTotal()Returns the value of theexecutedSearchesTotalrecord component.- Returns:
- the value of the
executedSearchesTotalrecord component
-