public class

ResourceConfig

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

Class Overview

Full configuration of a Helix resource. Typically used to add or modify resources on a cluster

Summary

Nested Classes
class ResourceConfig.Builder Assembles a ResourceConfig  
class ResourceConfig.Delta Update context for a ResourceConfig  
Public Methods
ResourceId getId()
Get the resource id
IdealState getIdealState()
Get the ideal state for this resource
ProvisionerConfig getProvisionerConfig()
Get the properties configuring the provisioner
RebalancerConfig getRebalancerConfig()
Get the resource properties configuring rebalancing
SchedulerTaskConfig getSchedulerTaskConfig()
Get the properties configuring scheduler tasks
Set<? extends PartitionId> getSubUnitSet()
Get the set of subunit ids that the resource contains
UserConfig getUserConfig()
Get user-specified configuration properties of this resource
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public ResourceId getId ()

Get the resource id

Returns
  • ResourceId

public IdealState getIdealState ()

Get the ideal state for this resource

Returns
  • IdealState instance

public ProvisionerConfig getProvisionerConfig ()

Get the properties configuring the provisioner

Returns
  • ProvisionerConfig properties

public RebalancerConfig getRebalancerConfig ()

Get the resource properties configuring rebalancing

Returns
  • RebalancerConfig properties

public SchedulerTaskConfig getSchedulerTaskConfig ()

Get the properties configuring scheduler tasks

Returns
  • SchedulerTaskConfig properties

public Set<? extends PartitionId> getSubUnitSet ()

Get the set of subunit ids that the resource contains

Returns
  • subunit id set, or empty if none

public UserConfig getUserConfig ()

Get user-specified configuration properties of this resource

Returns
  • UserConfig properties

public String toString ()