Package org.elasticsearch.indices.store
Class TransportNodesListShardStoreMetaData.StoreFilesMetaData
- java.lang.Object
-
- org.elasticsearch.indices.store.TransportNodesListShardStoreMetaData.StoreFilesMetaData
-
- All Implemented Interfaces:
Iterable<StoreFileMetaData>,Writeable
- Enclosing class:
- TransportNodesListShardStoreMetaData
public static class TransportNodesListShardStoreMetaData.StoreFilesMetaData extends Object implements 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, List<RetentionLease> peerRecoveryRetentionLeases)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StoreFileMetaDatafile(String name)booleanfileExists(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()Iterator<StoreFileMetaData>iterator()List<RetentionLease>peerRecoveryRetentionLeases()ShardIdshardId()StringsyncId()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, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
StoreFilesMetaData
public StoreFilesMetaData(ShardId shardId, Store.MetadataSnapshot metadataSnapshot, List<RetentionLease> peerRecoveryRetentionLeases)
-
StoreFilesMetaData
public StoreFilesMetaData(StreamInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
shardId
public ShardId shardId()
-
isEmpty
public boolean isEmpty()
-
iterator
public Iterator<StoreFileMetaData> iterator()
- Specified by:
iteratorin interfaceIterable<StoreFileMetaData>
-
fileExists
public boolean fileExists(String name)
-
file
public StoreFileMetaData file(String name)
-
getPeerRecoveryRetentionLeaseRetainingSeqNo
public long getPeerRecoveryRetentionLeaseRetainingSeqNo(DiscoveryNode node)
Returns the retaining sequence number of the peer recovery retention lease for a given node if exists; otherwise, returns -1.
-
peerRecoveryRetentionLeases
public List<RetentionLease> peerRecoveryRetentionLeases()
-
syncId
public String syncId()
- Returns:
- commit sync id if exists, else null
-
-