public static class

ResourceConfig.Builder

extends Object
java.lang.Object
   ↳ org.apache.helix.api.config.ResourceConfig.Builder

Class Overview

Assembles a ResourceConfig

Summary

Public Constructors
ResourceConfig.Builder(ResourceId id)
Build a Resource with an id
Public Methods
ResourceConfig build()
Create a Resource object
ResourceConfig.Builder idealState(IdealState idealState)
Set the ideal state
ResourceConfig.Builder provisionerConfig(ProvisionerConfig provisionerConfig)
ResourceConfig.Builder rebalancerConfig(RebalancerConfig rebalancerConfig)
Set the rebalancer configuration
ResourceConfig.Builder schedulerTaskConfig(SchedulerTaskConfig schedulerTaskConfig)
ResourceConfig.Builder userConfig(UserConfig userConfig)
Set the user configuration
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ResourceConfig.Builder (ResourceId id)

Build a Resource with an id

Parameters
id resource id

Public Methods

public ResourceConfig build ()

Create a Resource object

Returns
  • instantiated Resource

public ResourceConfig.Builder idealState (IdealState idealState)

Set the ideal state

Parameters
idealState a description of a resource
Returns
  • Builder

public ResourceConfig.Builder provisionerConfig (ProvisionerConfig provisionerConfig)

public ResourceConfig.Builder rebalancerConfig (RebalancerConfig rebalancerConfig)

Set the rebalancer configuration

Parameters
rebalancerConfig properties of interest for rebalancing
Returns
  • Builder

public ResourceConfig.Builder schedulerTaskConfig (SchedulerTaskConfig schedulerTaskConfig)

public ResourceConfig.Builder userConfig (UserConfig userConfig)

Set the user configuration

Parameters
userConfig user-specified properties
Returns
  • Builder