@Private
public class BlockStorageMovementNeeded
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
BlockStorageMovementNeeded.DirPendingWorkInfo |
Info for directory recursive scan.
|
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
BlockStorageMovementNeeded(Context context) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
activate() |
|
void |
add(ItemInfo trackInfo) |
Add the candidate to tracking list for which storage movement
expected if necessary.
|
void |
add(ItemInfo itemInfo,
boolean scanCompleted) |
Add the itemInfo to tracking list for which storage movement expected if
necessary.
|
void |
addAll(long startPath,
java.util.List<ItemInfo> itemInfoList,
boolean scanCompleted) |
Add the itemInfo list to tracking list for which storage movement expected
if necessary.
|
void |
clearAll() |
|
void |
clearQueuesWithNotification() |
Clean all the movements in spsDirsToBeTraveresed/storageMovementNeeded
and notify to clean up required resources.
|
void |
close() |
|
ItemInfo |
get() |
Gets the satisfier files for which block storage movements check necessary
and make the movement if required.
|
static long |
getStatusClearanceElapsedTimeMs() |
|
void |
markScanCompletedForDir(long inode) |
|
void |
removeItemTrackInfo(ItemInfo trackInfo,
boolean isSuccess) |
Decrease the pending child count for directory once one file blocks moved
successfully.
|
static void |
setStatusClearanceElapsedTimeMs(long statusClearanceElapsedTimeMs) |
|
int |
size() |
Returns queue size.
|
public BlockStorageMovementNeeded(Context context)
public void add(ItemInfo trackInfo)
trackInfo - - track info for satisfy the policy@VisibleForTesting
public void addAll(long startPath,
java.util.List<ItemInfo> itemInfoList,
boolean scanCompleted)
startPath - - start pathitemInfoList - - List of child in the directoryscanCompleted - -Indicates whether the start id directory has no more elements to
scan.@VisibleForTesting public void add(ItemInfo itemInfo, boolean scanCompleted)
itemInfo - - child in the directoryscanCompleted - -Indicates whether the ItemInfo start id directory has no more
elements to scan.public ItemInfo get()
public int size()
public void clearAll()
public void removeItemTrackInfo(ItemInfo trackInfo, boolean isSuccess) throws java.io.IOException
java.io.IOExceptionpublic void clearQueuesWithNotification()
public void activate()
public void close()
@VisibleForTesting public static void setStatusClearanceElapsedTimeMs(long statusClearanceElapsedTimeMs)
@VisibleForTesting public static long getStatusClearanceElapsedTimeMs()
public void markScanCompletedForDir(long inode)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.