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
ConstructorDescriptionStoreFilesMetadata(ShardId shardId, Store.MetadataSnapshot metadataSnapshot, List<RetentionLease> peerRecoveryRetentionLeases)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
fileExists(String name)
long
Returns the retaining sequence number of the peer recovery retention lease for a given node if exists; otherwise, returns -1.boolean
isEmpty()
iterator()
shardId()
syncId()
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, List<RetentionLease> peerRecoveryRetentionLeases) -
StoreFilesMetadata
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
shardId
-
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iterator
in 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
-