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.
  • Constructor Details

    • RemoteClusterStats

      public RemoteClusterStats(String mode, boolean skipUnavailable, String transportCompress)
    • 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 a RemoteClusterStats record class.
      Parameters:
      clusterUUID - the value for the clusterUUID record component
      mode - the value for the mode record component
      skipUnavailable - the value for the skipUnavailable record component
      transportCompress - the value for the transportCompress record component
      versions - the value for the versions record component
      status - the value for the status record component
      nodesCount - the value for the nodesCount record component
      shardsCount - the value for the shardsCount record component
      indicesCount - the value for the indicesCount record component
      indicesBytes - the value for the indicesBytes record component
      heapBytes - the value for the heapBytes record component
      memBytes - the value for the memBytes record component
  • Method Details

    • acceptResponse

    • toXContent

      public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface ToXContent
      Throws:
      IOException
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • clusterUUID

      public String clusterUUID()
      Returns the value of the clusterUUID record component.
      Returns:
      the value of the clusterUUID record component
    • mode

      public String mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • skipUnavailable

      public boolean skipUnavailable()
      Returns the value of the skipUnavailable record component.
      Returns:
      the value of the skipUnavailable record component
    • transportCompress

      public String transportCompress()
      Returns the value of the transportCompress record component.
      Returns:
      the value of the transportCompress record component
    • versions

      public Set<String> versions()
      Returns the value of the versions record component.
      Returns:
      the value of the versions record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • nodesCount

      public long nodesCount()
      Returns the value of the nodesCount record component.
      Returns:
      the value of the nodesCount record component
    • shardsCount

      public long shardsCount()
      Returns the value of the shardsCount record component.
      Returns:
      the value of the shardsCount record component
    • indicesCount

      public long indicesCount()
      Returns the value of the indicesCount record component.
      Returns:
      the value of the indicesCount record component
    • indicesBytes

      public long indicesBytes()
      Returns the value of the indicesBytes record component.
      Returns:
      the value of the indicesBytes record component
    • heapBytes

      public long heapBytes()
      Returns the value of the heapBytes record component.
      Returns:
      the value of the heapBytes record component
    • memBytes

      public long memBytes()
      Returns the value of the memBytes record component.
      Returns:
      the value of the memBytes record component