public final class

RebalancerConfigHolder

extends Object
java.lang.Object
   ↳ org.apache.helix.controller.rebalancer.config.RebalancerConfigHolder

Class Overview

Configuration for a resource rebalancer. This contains a RebalancerConfig, which contains information specific to each rebalancer.

Summary

Nested Classes
enum RebalancerConfigHolder.Fields  
Public Constructors
RebalancerConfigHolder(RebalancerConfig config)
Instantiate a RebalancerConfig
RebalancerConfigHolder(ResourceConfiguration resourceConfiguration)
Instantiate from a physical ResourceConfiguration
Public Methods
static RebalancerConfigHolder from(ResourceConfiguration resourceConfiguration)
Get a RebalancerConfig from a physical resource config
static RebalancerConfigHolder from(RebalancerConfig config)
Get a RebalancerConfigHolder from a RebalancerConfig
<T extends RebalancerConfig> T getRebalancerConfig(Class<T> configClass)
Get the instantiated RebalancerConfig
String getSerializedConfig()
Get the rebalancer config serialized as a string
NamespacedConfig toNamespacedConfig()
Convert this to a namespaced config
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RebalancerConfigHolder (RebalancerConfig config)

Instantiate a RebalancerConfig

Parameters
config rebalancer config

public RebalancerConfigHolder (ResourceConfiguration resourceConfiguration)

Instantiate from a physical ResourceConfiguration

Parameters
resourceConfiguration populated ResourceConfiguration

Public Methods

public static RebalancerConfigHolder from (ResourceConfiguration resourceConfiguration)

Get a RebalancerConfig from a physical resource config

Parameters
resourceConfiguration physical resource config
Returns
  • RebalancerConfig

public static RebalancerConfigHolder from (RebalancerConfig config)

Get a RebalancerConfigHolder from a RebalancerConfig

Parameters
config instantiated RebalancerConfig
Returns
  • RebalancerConfigHolder

public T getRebalancerConfig (Class<T> configClass)

Get the instantiated RebalancerConfig

Parameters
configClass specific class of the RebalancerConfig
Returns
  • RebalancerConfig subclass instance, or null if conversion is not possible

public String getSerializedConfig ()

Get the rebalancer config serialized as a string

Returns
  • string representing the config

public NamespacedConfig toNamespacedConfig ()

Convert this to a namespaced config

Returns
  • NamespacedConfig