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
  • Constructor Details

    • StoreFilesMetadata

      public StoreFilesMetadata​(ShardId shardId, Store.MetadataSnapshot metadataSnapshot, java.util.List<RetentionLease> peerRecoveryRetentionLeases)
    • StoreFilesMetadata

      public StoreFilesMetadata​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • shardId

      public ShardId shardId()
    • isEmpty

      public boolean isEmpty()
    • iterator

      public java.util.Iterator<StoreFileMetadata> iterator()
      Specified by:
      iterator in interface java.lang.Iterable<StoreFileMetadata>
    • fileExists

      public boolean fileExists​(java.lang.String name)
    • file

      public StoreFileMetadata file​(java.lang.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 java.util.List<RetentionLease> peerRecoveryRetentionLeases()
    • syncId

      public java.lang.String syncId()
      Returns:
      commit sync id if exists, else null
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object