public class

ResourceConfiguration

extends HelixProperty
java.lang.Object
   ↳ org.apache.helix.HelixProperty
     ↳ org.apache.helix.model.ResourceConfiguration

Class Overview

Persisted configuration properties for a resource

Summary

Nested Classes
enum ResourceConfiguration.Fields  
[Expand]
Inherited Fields
From class org.apache.helix.HelixProperty
Public Constructors
ResourceConfiguration(ResourceId id)
Instantiate for an id
ResourceConfiguration(ZNRecord record)
Instantiate from a record
Public Methods
RebalancerContext getRebalancerContext(Class<? extends RebalancerContext> clazz)
Get a RebalancerContext if available
ResourceId getResourceId()
Get the resource that is rebalanced
ResourceConfig.ResourceType getType()
Get the resource type
UserConfig getUserConfig()
Get a backward-compatible resource user config
void setType(ResourceConfig.ResourceType type)
Set the resource type
[Expand]
Inherited Methods
From class org.apache.helix.HelixProperty
From class java.lang.Object

Public Constructors

public ResourceConfiguration (ResourceId id)

Instantiate for an id

Parameters
id resource id

public ResourceConfiguration (ZNRecord record)

Instantiate from a record

Parameters
record configuration properties

Public Methods

public RebalancerContext getRebalancerContext (Class<? extends RebalancerContext> clazz)

Get a RebalancerContext if available

Returns
  • RebalancerContext, or null

public ResourceId getResourceId ()

Get the resource that is rebalanced

Returns
  • resource id

public ResourceConfig.ResourceType getType ()

Get the resource type

Returns
  • ResourceType type

public UserConfig getUserConfig ()

Get a backward-compatible resource user config

Returns
  • UserConfig

public void setType (ResourceConfig.ResourceType type)

Set the resource type

Parameters
type ResourceType type