@Private
public class DatanodeCacheManager
extends java.lang.Object
DatanodeStorageReport.
This class is instantiated by StoragePolicySatisifer. It maintains the array
of datanode storage reports. It has a configurable refresh interval and
periodically refresh the datanode cache by fetching latest
Context.getLiveDatanodeStorageReport() once it reaches refresh
interval.| Constructor | Description |
|---|---|
DatanodeCacheManager(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
StoragePolicySatisfier.DatanodeMap |
getLiveDatanodeStorageReport(Context spsContext) |
Returns the live datanodes and its storage details, which has available
space (> 0) to schedule block moves.
|
public DatanodeCacheManager(org.apache.hadoop.conf.Configuration conf)
public StoragePolicySatisfier.DatanodeMap getLiveDatanodeStorageReport(Context spsContext) throws java.io.IOException
Context.getLiveDatanodeStorageReport() once it elapsed refresh
interval.java.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.