public class BlockStorageMovementAttemptedItems
extends java.lang.Object
| Constructor | Description |
|---|---|
BlockStorageMovementAttemptedItems(SPSService service,
BlockStorageMovementNeeded unsatisfiedStorageMovementFiles,
Context context) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(long startPathId,
long fileId,
long monotonicNow,
java.util.Map<org.apache.hadoop.hdfs.protocol.Block,java.util.Set<org.apache.hadoop.hdfs.server.namenode.sps.StoragePolicySatisfier.StorageTypeNodePair>> assignedBlocks,
int retryCount) |
Add item to block storage movement attempted items map which holds the
tracking/blockCollection id versus time stamp.
|
void |
clearQueues() |
|
int |
getAttemptedItemsCount() |
|
java.util.concurrent.BlockingQueue<org.apache.hadoop.hdfs.protocol.Block> |
getMovementFinishedBlocks() |
|
int |
getMovementFinishedBlocksCount() |
|
java.util.List<StoragePolicySatisfier.AttemptedItemInfo> |
getStorageMovementAttemptedItems() |
|
void |
notifyReportedBlock(org.apache.hadoop.hdfs.protocol.DatanodeInfo reportedDn,
org.apache.hadoop.fs.StorageType type,
org.apache.hadoop.hdfs.protocol.Block reportedBlock) |
Notify the storage movement attempt finished block.
|
void |
start() |
Starts the monitor thread.
|
void |
stop() |
Sets running flag to false.
|
public BlockStorageMovementAttemptedItems(SPSService service, BlockStorageMovementNeeded unsatisfiedStorageMovementFiles, Context context)
public void add(long startPathId,
long fileId,
long monotonicNow,
java.util.Map<org.apache.hadoop.hdfs.protocol.Block,java.util.Set<org.apache.hadoop.hdfs.server.namenode.sps.StoragePolicySatisfier.StorageTypeNodePair>> assignedBlocks,
int retryCount)
startPathId - - start satisfier path identifierfileId - - file identifiermonotonicNow - - time nowassignedBlocks - - assigned blocks for block movementretryCount - - retry countpublic void notifyReportedBlock(org.apache.hadoop.hdfs.protocol.DatanodeInfo reportedDn,
org.apache.hadoop.fs.StorageType type,
org.apache.hadoop.hdfs.protocol.Block reportedBlock)
reportedDn - reported datanodetype - storage typereportedBlock - reported blockpublic void start()
public void stop()
@VisibleForTesting public int getMovementFinishedBlocksCount()
@VisibleForTesting public int getAttemptedItemsCount()
@VisibleForTesting public java.util.List<StoragePolicySatisfier.AttemptedItemInfo> getStorageMovementAttemptedItems()
@VisibleForTesting public java.util.concurrent.BlockingQueue<org.apache.hadoop.hdfs.protocol.Block> getMovementFinishedBlocks()
public void clearQueues()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.