Package | Description |
---|---|
org.apache.hadoop.hdfs.server.diskbalancer.command |
Commands for disk balancer command line tool.
|
org.apache.hadoop.hdfs.server.diskbalancer.connectors |
Connectors package is a set of logical connectors that connect
to various data sources to read the hadoop cluster information.
|
org.apache.hadoop.hdfs.server.diskbalancer.datamodel |
Disk Balancer Data Model is the Data Model for the cluster that
Disk Balancer is working against.
|
org.apache.hadoop.hdfs.server.diskbalancer.planner |
Planner takes a DiskBalancerVolumeSet, threshold and
computes a series of steps that lead to an even data
distribution between volumes of this DiskBalancerVolumeSet.
|
Modifier and Type | Method and Description |
---|---|
protected List<DiskBalancerDataNode> |
Command.getNodes(String listArg)
Returns a DiskBalancer Node list from the Cluster or null if not found.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Command.populatePathNames(DiskBalancerDataNode node)
Reads the Physical path of the disks we are balancing.
|
protected void |
Command.setNodesToProcess(DiskBalancerDataNode node)
Sets the nodes to process.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Command.setNodesToProcess(List<DiskBalancerDataNode> nodes)
Sets the list of Nodes to process.
|
Modifier and Type | Method and Description |
---|---|
List<DiskBalancerDataNode> |
JsonNodeConnector.getNodes()
getNodes function connects to a cluster definition file
and returns nodes defined in that file.
|
List<DiskBalancerDataNode> |
ClusterConnector.getNodes()
getNodes function returns a list of DiskBalancerDataNodes.
|
Modifier and Type | Method and Description |
---|---|
DiskBalancerDataNode |
DiskBalancerCluster.getNodeByIPAddress(String ipAddresss)
Returns a node by IP Address.
|
DiskBalancerDataNode |
DiskBalancerCluster.getNodeByName(String hostName)
Returns a node by hostName.
|
DiskBalancerDataNode |
DiskBalancerCluster.getNodeByUUID(String uuid)
Returns a node by UUID.
|
Modifier and Type | Method and Description |
---|---|
List<DiskBalancerDataNode> |
DiskBalancerCluster.getNodes()
Gets all DataNodes in the Cluster.
|
List<DiskBalancerDataNode> |
DiskBalancerCluster.getNodesToProcess()
Returns the Nodes to Process which is the real list of nodes processed by
diskBalancer.
|
Modifier and Type | Method and Description |
---|---|
int |
DiskBalancerDataNode.compareTo(DiskBalancerDataNode that)
Compares this object with the specified object for order.
|
Modifier and Type | Method and Description |
---|---|
void |
DiskBalancerCluster.setNodes(List<DiskBalancerDataNode> clusterNodes)
Sets the list of nodes of this cluster.
|
void |
DiskBalancerCluster.setNodesToProcess(List<DiskBalancerDataNode> dnNodesToProcess)
Sets the nodes to process.
|
Modifier and Type | Method and Description |
---|---|
void |
GreedyPlanner.balanceVolumeSet(DiskBalancerDataNode node,
DiskBalancerVolumeSet vSet,
NodePlan plan)
Computes Steps to make a DiskBalancerVolumeSet Balanced.
|
static Planner |
PlannerFactory.getPlanner(String plannerName,
DiskBalancerDataNode node,
double threshold)
Gets a planner object.
|
NodePlan |
Planner.plan(DiskBalancerDataNode node) |
NodePlan |
GreedyPlanner.plan(DiskBalancerDataNode node)
Computes a node plan for the given node.
|
Constructor and Description |
---|
GreedyPlanner(double threshold,
DiskBalancerDataNode node)
Constructs a greedy planner.
|
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.