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
ConstructorsConstructorDescriptionStoreFilesMetadata(ShardId shardId, Store.MetadataSnapshot metadataSnapshot, List<RetentionLease> peerRecoveryRetentionLeases) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfileExists(String name)longReturns the retaining sequence number of the peer recovery retention lease for a given node if exists; otherwise, returns -1.booleanisEmpty()iterator()shardId()syncId()toString()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, List<RetentionLease> peerRecoveryRetentionLeases) -
StoreFilesMetadata
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
shardId
-
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iteratorin interfaceIterable<StoreFileMetadata>
-
fileExists
-
file
-
getPeerRecoveryRetentionLeaseRetainingSeqNo
Returns the retaining sequence number of the peer recovery retention lease for a given node if exists; otherwise, returns -1. -
peerRecoveryRetentionLeases
-
syncId
- Returns:
- commit sync id if exists, else null
-
toString
-