PlannerFactory (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.diskbalancer.planner, class: PlannerFactory

Package org.apache.hadoop.hdfs.server.diskbalancer.planner

# Class PlannerFactory

java.lang.Object
org.apache.hadoop.hdfs.server.diskbalancer.planner.PlannerFactory

public final class PlannerFactory extends Object
Returns a planner based on the user defined tags.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `GREEDY_PLANNER`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Planner`
  `getPlanner(String plannerName, DiskBalancerDataNode node, double threshold)`
  Gets a planner object.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### GREEDY_PLANNER

    public static final String GREEDY_PLANNER
    See Also:
      - Constant Field Values

- ## Method Details

  - ### getPlanner

    public static Planner getPlanner(String plannerName, DiskBalancerDataNode node, double threshold)
    Gets a planner object.
    Parameters:
      `plannerName` - - name of the planner.
      `node` - - Datanode.
      `threshold` - - percentage
    Returns:
      Planner