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.
-
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
-