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 StoreFileMetadatafile(java.lang.String name)booleanfileExists(java.lang.String name)longgetPeerRecoveryRetentionLeaseRetainingSeqNo(DiscoveryNode node)Returns the retaining sequence number of the peer recovery retention lease for a given node if exists; otherwise, returns -1.booleanisEmpty()java.util.Iterator<StoreFileMetadata>iterator()java.util.List<RetentionLease>peerRecoveryRetentionLeases()ShardIdshardId()java.lang.StringsyncId()java.lang.StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:WriteableWrite this into the StreamOutput. -
shardId
-
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iteratorin 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:
toStringin classjava.lang.Object
-