public class

RebalancerRef

extends Object
java.lang.Object
   ↳ org.apache.helix.controller.rebalancer.RebalancerRef

Class Overview

Reference to a class that extends HelixRebalancer. It loads the class automatically.

Summary

Public Methods
boolean equals(Object that)
static RebalancerRef from(Class<? extends HelixRebalancer> rebalancerClass)
Get a RebalancerRef from a class object
static RebalancerRef from(String rebalancerClassName)
Get a rebalancer class reference
HelixRebalancer getRebalancer()
Get an instantiated Rebalancer
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public boolean equals (Object that)

public static RebalancerRef from (Class<? extends HelixRebalancer> rebalancerClass)

Get a RebalancerRef from a class object

Parameters
rebalancerClass class that implements Rebalancer
Returns
  • RebalancerRef

public static RebalancerRef from (String rebalancerClassName)

Get a rebalancer class reference

Parameters
rebalancerClassName name of the class
Returns
  • RebalancerRef or null if name is null

public HelixRebalancer getRebalancer ()

Get an instantiated Rebalancer

Returns
  • Rebalancer or null if instantiation failed

public String toString ()