Package org.elasticsearch.indices.store
Class TransportNodesListShardStoreMetadata.StoreFilesMetadata
org.elasticsearch.indices.store.TransportNodesListShardStoreMetadata.StoreFilesMetadata
- All Implemented Interfaces:
<StoreFileMetadata>
,Writeable
- Enclosing class:
- TransportNodesListShardStoreMetadata
public static class TransportNodesListShardStoreMetadata.StoreFilesMetadata
extends
implements <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, <RetentionLease> peerRecoveryRetentionLeases)
-
Method Summary
Modifier and TypeMethodDescriptionname)
boolean
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.
, , , , , , , , ,
Methods inherited from interface java.lang.
,
-
Constructor Details
-
StoreFilesMetadata
public StoreFilesMetadata(ShardId shardId, Store.MetadataSnapshot metadataSnapshot, <RetentionLease> peerRecoveryRetentionLeases) -
StoreFilesMetadata
- Throws:
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
shardId
-
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
in interface
<StoreFileMetadata>
-
fileExists
public boolean fileExists( name) -
file
public name) -
getPeerRecoveryRetentionLeaseRetainingSeqNo
Returns the retaining sequence number of the peer recovery retention lease for a given node if exists; otherwise, returns -1. -
peerRecoveryRetentionLeases
-
syncId
public syncId()- Returns:
- commit sync id if exists, else null
-
toString
public toString()- Overrides:
in class
-