java.lang.Object
org.apache.hadoop.hdfs.server.namenode.sps.ItemInfo
Direct Known Subclasses:
StoragePolicySatisfier.AttemptedItemInfo

@Private @Evolving public class ItemInfo extends Object
ItemInfo is a file info object for which need to satisfy the policy.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemInfo(long startPathId, long fileId)
     
    ItemInfo(long startPathId, long fileId, int retryCount)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the file for which needs to satisfy the policy.
    int
    Get the attempted retry count of the block for satisfy the policy.
    long
    Returns the start path of the current file.
    void
    Increments the retry count.
    boolean
    Returns true if the tracking path is a directory, false otherwise.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ItemInfo

      public ItemInfo(long startPathId, long fileId)
    • ItemInfo

      public ItemInfo(long startPathId, long fileId, int retryCount)
  • Method Details

    • getStartPath

      public long getStartPath()
      Returns the start path of the current file. This indicates that SPS was invoked on this path.
    • getFile

      public long getFile()
      Returns the file for which needs to satisfy the policy.
    • isDir

      public boolean isDir()
      Returns true if the tracking path is a directory, false otherwise.
    • getRetryCount

      public int getRetryCount()
      Get the attempted retry count of the block for satisfy the policy.
    • increRetryCount

      public void increRetryCount()
      Increments the retry count.