Class ItemInfo
java.lang.Object
org.apache.hadoop.hdfs.server.namenode.sps.ItemInfo
- Direct Known Subclasses:
StoragePolicySatisfier.AttemptedItemInfo
ItemInfo is a file info object for which need to satisfy the policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetFile()Returns the file for which needs to satisfy the policy.intGet the attempted retry count of the block for satisfy the policy.longReturns the start path of the current file.voidIncrements the retry count.booleanisDir()Returns true if the tracking path is a directory, false otherwise.
-
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.
-