Package org.elasticsearch.indices.store
Class TransportNodesListShardStoreMetadata.StoreFilesMetadata
java.lang.Object
org.elasticsearch.indices.store.TransportNodesListShardStoreMetadata.StoreFilesMetadata
- All Implemented Interfaces:
java.lang.Iterable<StoreFileMetadata>
,Writeable
- Enclosing class:
- TransportNodesListShardStoreMetadata
public static class TransportNodesListShardStoreMetadata.StoreFilesMetadata extends java.lang.Object implements java.lang.Iterable<StoreFileMetadata>, Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
Constructors Constructor Description StoreFilesMetadata(StreamInput in)
StoreFilesMetadata(ShardId shardId, Store.MetadataSnapshot metadataSnapshot, java.util.List<RetentionLease> peerRecoveryRetentionLeases)
-
Method Summary
Modifier and Type Method Description StoreFileMetadata
file(java.lang.String name)
boolean
fileExists(java.lang.String name)
long
getPeerRecoveryRetentionLeaseRetainingSeqNo(DiscoveryNode node)
Returns the retaining sequence number of the peer recovery retention lease for a given node if exists; otherwise, returns -1.boolean
isEmpty()
java.util.Iterator<StoreFileMetadata>
iterator()
java.util.List<RetentionLease>
peerRecoveryRetentionLeases()
ShardId
shardId()
java.lang.String
syncId()
java.lang.String
toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
StoreFilesMetadata
public StoreFilesMetadata(ShardId shardId, Store.MetadataSnapshot metadataSnapshot, java.util.List<RetentionLease> peerRecoveryRetentionLeases) -
StoreFilesMetadata
- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
shardId
-
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iterator
in interfacejava.lang.Iterable<StoreFileMetadata>
-
fileExists
public boolean fileExists(java.lang.String name) -
file
-
getPeerRecoveryRetentionLeaseRetainingSeqNo
Returns the retaining sequence number of the peer recovery retention lease for a given node if exists; otherwise, returns -1. -
peerRecoveryRetentionLeases
-
syncId
public java.lang.String syncId()- Returns:
- commit sync id if exists, else null
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-