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 HelixRebalancer
Class<? extends HelixRebalancer> getRebalancerClass()
Get the class object of this rebalancer ref
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 HelixRebalancer

Returns
  • HelixRebalancer or null if instantiation failed

public Class<? extends HelixRebalancer> getRebalancerClass ()

Get the class object of this rebalancer ref

Returns
  • Class

public String toString ()