Module org.elasticsearch.server
Record Class ClusterStatsResponse.RemoteClusterStats
java.lang.Object
java.lang.Record
org.elasticsearch.action.admin.cluster.stats.ClusterStatsResponse.RemoteClusterStats
- All Implemented Interfaces:
ToXContent,ToXContentFragment
- Enclosing class:
ClusterStatsResponse
public static record ClusterStatsResponse.RemoteClusterStats(String clusterUUID, String mode, boolean skipUnavailable, String transportCompress, Set<String> versions, String status, long nodesCount, long shardsCount, long indicesCount, long indicesBytes, long heapBytes, long memBytes)
extends Record
implements ToXContentFragment
Represents the information about a remote cluster.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionRemoteClusterStats(String mode, boolean skipUnavailable, String transportCompress) RemoteClusterStats(String clusterUUID, String mode, boolean skipUnavailable, String transportCompress, Set<String> versions, String status, long nodesCount, long shardsCount, long indicesCount, long indicesBytes, long heapBytes, long memBytes) Creates an instance of aRemoteClusterStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionacceptResponse(RemoteClusterStatsResponse remoteResponse) Returns the value of theclusterUUIDrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theheapBytesrecord component.longReturns the value of theindicesBytesrecord component.longReturns the value of theindicesCountrecord component.longmemBytes()Returns the value of thememBytesrecord component.mode()Returns the value of themoderecord component.longReturns the value of thenodesCountrecord component.longReturns the value of theshardsCountrecord component.booleanReturns the value of theskipUnavailablerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.toXContent(XContentBuilder builder, ToXContent.Params params) Returns the value of thetransportCompressrecord component.versions()Returns the value of theversionsrecord component.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
-
RemoteClusterStats
-
RemoteClusterStats
public RemoteClusterStats(String clusterUUID, String mode, boolean skipUnavailable, String transportCompress, Set<String> versions, String status, long nodesCount, long shardsCount, long indicesCount, long indicesBytes, long heapBytes, long memBytes) Creates an instance of aRemoteClusterStatsrecord class.- Parameters:
clusterUUID- the value for theclusterUUIDrecord componentmode- the value for themoderecord componentskipUnavailable- the value for theskipUnavailablerecord componenttransportCompress- the value for thetransportCompressrecord componentversions- the value for theversionsrecord componentstatus- the value for thestatusrecord componentnodesCount- the value for thenodesCountrecord componentshardsCount- the value for theshardsCountrecord componentindicesCount- the value for theindicesCountrecord componentindicesBytes- the value for theindicesBytesrecord componentheapBytes- the value for theheapBytesrecord componentmemBytes- the value for thememBytesrecord component
-
-
Method Details
-
acceptResponse
public ClusterStatsResponse.RemoteClusterStats acceptResponse(RemoteClusterStatsResponse remoteResponse) -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- 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 '=='. -
clusterUUID
Returns the value of theclusterUUIDrecord component.- Returns:
- the value of the
clusterUUIDrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
transportCompress
Returns the value of thetransportCompressrecord component.- Returns:
- the value of the
transportCompressrecord component
-
versions
Returns the value of theversionsrecord component.- Returns:
- the value of the
versionsrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
nodesCount
public long nodesCount()Returns the value of thenodesCountrecord component.- Returns:
- the value of the
nodesCountrecord component
-
shardsCount
public long shardsCount()Returns the value of theshardsCountrecord component.- Returns:
- the value of the
shardsCountrecord component
-
indicesCount
public long indicesCount()Returns the value of theindicesCountrecord component.- Returns:
- the value of the
indicesCountrecord component
-
indicesBytes
public long indicesBytes()Returns the value of theindicesBytesrecord component.- Returns:
- the value of the
indicesBytesrecord component
-
heapBytes
public long heapBytes()Returns the value of theheapBytesrecord component.- Returns:
- the value of the
heapBytesrecord component
-
memBytes
public long memBytes()Returns the value of thememBytesrecord component.- Returns:
- the value of the
memBytesrecord component
-