public static class DiskBalancerWorkStatus.DiskBalancerWorkEntry extends Object
| Constructor and Description | 
|---|
| DiskBalancerWorkEntry()Constructor needed for json serialization. | 
| DiskBalancerWorkEntry(String workItem) | 
| DiskBalancerWorkEntry(String sourcePath,
                     String destPath,
                     org.apache.hadoop.hdfs.server.datanode.DiskBalancerWorkItem workItem)Constructs a Work Entry class. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDestPath()Gets the Destination path. | 
| String | getSourcePath()Returns the source path. | 
| org.apache.hadoop.hdfs.server.datanode.DiskBalancerWorkItem | getWorkItem()Gets the current status of work for these volumes. | 
| void | setDestPath(String destPath)Sets the destination path. | 
| void | setSourcePath(String sourcePath)Sets the Source Path. | 
| void | setWorkItem(org.apache.hadoop.hdfs.server.datanode.DiskBalancerWorkItem workItem)Sets the work item. | 
public DiskBalancerWorkEntry()
public DiskBalancerWorkEntry(String workItem) throws IOException
IOExceptionpublic DiskBalancerWorkEntry(String sourcePath, String destPath, org.apache.hadoop.hdfs.server.datanode.DiskBalancerWorkItem workItem)
sourcePath - - Source Path where we are moving data from.destPath - - Destination path to where we are moving data to.workItem - - Current work status of this move.public String getSourcePath()
public void setSourcePath(String sourcePath)
sourcePath - - Volume Path.public String getDestPath()
public void setDestPath(String destPath)
destPath - - Pathpublic org.apache.hadoop.hdfs.server.datanode.DiskBalancerWorkItem getWorkItem()
public void setWorkItem(org.apache.hadoop.hdfs.server.datanode.DiskBalancerWorkItem workItem)
workItem - - sets the work item informationCopyright © 2008–2023 Apache Software Foundation. All rights reserved.