Package org.graylog2.indexer.indices
Record Class ShardsInfo
java.lang.Object
java.lang.Record
org.graylog2.indexer.indices.ShardsInfo
public record ShardsInfo(String index, int shard, ShardsInfo.ShardType shardType, ShardsInfo.State state, long docs, String store, String ip, String node)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionShardsInfo(String index, int shard, ShardsInfo.ShardType shardType, ShardsInfo.State state, long docs, String store, String ip, String node) Creates an instance of aShardsInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ShardsInfocreate(com.fasterxml.jackson.databind.JsonNode jsonNode) longdocs()Returns the value of thedocsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.index()Returns the value of theindexrecord component.ip()Returns the value of theiprecord component.static booleanisStartedPrimaryShard(ShardsInfo shardsInfo) node()Returns the value of thenoderecord component.intshard()Returns the value of theshardrecord component.Returns the value of theshardTyperecord component.state()Returns the value of thestaterecord component.store()Returns the value of thestorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShardsInfo
public ShardsInfo(String index, int shard, ShardsInfo.ShardType shardType, ShardsInfo.State state, long docs, String store, String ip, String node) Creates an instance of aShardsInforecord class.- Parameters:
index- the value for theindexrecord componentshard- the value for theshardrecord componentshardType- the value for theshardTyperecord componentstate- the value for thestaterecord componentdocs- the value for thedocsrecord componentstore- the value for thestorerecord componentip- the value for theiprecord componentnode- the value for thenoderecord component
-
-
Method Details
-
isStartedPrimaryShard
-
create
-
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 '=='. -
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
shard
public int shard()Returns the value of theshardrecord component.- Returns:
- the value of the
shardrecord component
-
shardType
Returns the value of theshardTyperecord component.- Returns:
- the value of the
shardTyperecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
docs
public long docs()Returns the value of thedocsrecord component.- Returns:
- the value of the
docsrecord component
-
store
Returns the value of thestorerecord component.- Returns:
- the value of the
storerecord component
-
ip
Returns the value of theiprecord component.- Returns:
- the value of the
iprecord component
-
node
Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-