StoragePolicySatisfier@Private
@Evolving
public interface SPSService
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAllFilesToProcess(long startPathId,
java.util.List<ItemInfo> itemInfoList,
boolean scanCompleted) |
Adds all the Item information(file etc) to processing queue.
|
void |
addFileToProcess(ItemInfo itemInfo,
boolean scanCompleted) |
Adds the Item information(file etc) to processing queue.
|
org.apache.hadoop.conf.Configuration |
getConf() |
|
void |
init(Context ctxt) |
Initializes the helper services.
|
boolean |
isRunning() |
Check whether StoragePolicySatisfier is running.
|
void |
markScanCompletedForPath(long spsPath) |
Marks the scanning of directory if finished.
|
void |
notifyStorageMovementAttemptFinishedBlk(org.apache.hadoop.hdfs.protocol.DatanodeInfo dnInfo,
org.apache.hadoop.fs.StorageType storageType,
org.apache.hadoop.hdfs.protocol.Block block) |
Given node is reporting that it received a certain movement attempt
finished block.
|
int |
processingQueueSize() |
|
void |
start(org.apache.hadoop.hdfs.protocol.HdfsConstants.StoragePolicySatisfierMode spsMode) |
Starts the SPS service.
|
void |
stop(boolean forceStop) |
Stops the SPS service.
|
void |
stopGracefully() |
Stops the SPS service gracefully.
|
void init(Context ctxt)
ctxt - - context is an helper service to provide communication channel
between NN and SPSvoid start(org.apache.hadoop.hdfs.protocol.HdfsConstants.StoragePolicySatisfierMode spsMode)
spsMode - sps service modevoid stopGracefully()
void stop(boolean forceStop)
forceStop - true represents to clear all the sps path's hint, false otherwise.boolean isRunning()
void addFileToProcess(ItemInfo itemInfo, boolean scanCompleted)
itemInfo - file info object for which need to satisfy the policyvoid addAllFilesToProcess(long startPathId,
java.util.List<ItemInfo> itemInfoList,
boolean scanCompleted)
startPathId - - directoryId/fileId, on which SPS was called.itemInfoList - - list of item infosscanCompleted - - whether the scanning of directory fully done with itemInfoListint processingQueueSize()
org.apache.hadoop.conf.Configuration getConf()
void markScanCompletedForPath(long spsPath)
spsPath - - satisfier path idvoid notifyStorageMovementAttemptFinishedBlk(org.apache.hadoop.hdfs.protocol.DatanodeInfo dnInfo,
org.apache.hadoop.fs.StorageType storageType,
org.apache.hadoop.hdfs.protocol.Block block)
dnInfo - - reported datanodestorageType - - storage typeblock - - block that is attempted to moveCopyright © 2008–2025 Apache Software Foundation. All rights reserved.