Module org.elasticsearch.server
Record Class ActivityLoggerContext.ShardInfo
java.lang.Object
java.lang.Record
org.elasticsearch.common.logging.activity.ActivityLoggerContext.ShardInfo
- Enclosing class:
ActivityLoggerContext
public static record ActivityLoggerContext.ShardInfo(Integer successfulShards, Integer skippedShards, Integer failedShards)
extends Record
Shard stats information. All fields are nullable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailedShardsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theskippedShardsrecord component.Returns the value of thesuccessfulShardsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShardInfo
Creates an instance of aShardInforecord class.- Parameters:
successfulShards- the value for thesuccessfulShardsrecord componentskippedShards- the value for theskippedShardsrecord componentfailedShards- the value for thefailedShardsrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
successfulShards
Returns the value of thesuccessfulShardsrecord component.- Returns:
- the value of the
successfulShardsrecord component
-
skippedShards
Returns the value of theskippedShardsrecord component.- Returns:
- the value of the
skippedShardsrecord component
-
failedShards
Returns the value of thefailedShardsrecord component.- Returns:
- the value of the
failedShardsrecord component
-