public final class

ProvisionerConfigHolder

extends Object
java.lang.Object
   ↳ org.apache.helix.model.ProvisionerConfigHolder

Class Overview

Configuration for a resource provisioner. This contains a ProvisionerConfig, which contains information specific to each provisioner.

Summary

Public Constructors
ProvisionerConfigHolder(ProvisionerConfig config)
Instantiate a ProvisionerConfigHolder
ProvisionerConfigHolder(ResourceConfiguration resourceConfiguration)
Instantiate from a physical ResourceConfiguration
Public Methods
static ProvisionerConfigHolder from(ResourceConfiguration resourceConfiguration)
Get a ProvisionerConfig from a physical resource config
static ProvisionerConfigHolder from(ProvisionerConfig config)
Get a ProvisionerConfigHolder from a ProvisionerConfig
Provisioner getProvisioner()
Get a provisioner class instance
<T extends ProvisionerConfig> T getProvisionerConfig(Class<T> configClass)
Get the instantiated ProvisionerConfig
String getSerializedConfig()
Get the provisioner config serialized as a string
NamespacedConfig toNamespacedConfig()
Convert this to a namespaced config
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProvisionerConfigHolder (ProvisionerConfig config)

Instantiate a ProvisionerConfigHolder

Parameters
config provisioner config

public ProvisionerConfigHolder (ResourceConfiguration resourceConfiguration)

Instantiate from a physical ResourceConfiguration

Parameters
resourceConfiguration populated ResourceConfiguration

Public Methods

public static ProvisionerConfigHolder from (ResourceConfiguration resourceConfiguration)

Get a ProvisionerConfig from a physical resource config

Parameters
resourceConfiguration physical resource config
Returns
  • ProvisionerConfig

public static ProvisionerConfigHolder from (ProvisionerConfig config)

Get a ProvisionerConfigHolder from a ProvisionerConfig

Parameters
config instantiated ProvisionerConfig
Returns
  • ProvisionerConfigHolder

public Provisioner getProvisioner ()

Get a provisioner class instance

Returns
  • Provisioner

public T getProvisionerConfig (Class<T> configClass)

Get the instantiated ProvisionerConfig

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

public String getSerializedConfig ()

Get the provisioner config serialized as a string

Returns
  • string representing the config

public NamespacedConfig toNamespacedConfig ()

Convert this to a namespaced config

Returns
  • NamespacedConfig