java.lang.Object | |
↳ | org.apache.helix.controller.rebalancer.context.BasicRebalancerContext |
Known Direct Subclasses |
Known Indirect Subclasses |
Abstract RebalancerContext that functions for generic subunits. Use a subclass that more concretely defines the subunits.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BasicRebalancerContext.AbstractBuilder<T extends AbstractBuilder<T>> | Abstract builder for the base rebalancer context |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate a basic rebalancer context
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the tag, if any, that participants must have in order to serve this resource
| |||||||||||
Get a reference to the class used to rebalance this resource
| |||||||||||
Get the resource to rebalance
| |||||||||||
Get the serializer.
| |||||||||||
Get the state model definition that the resource follows
| |||||||||||
Get the state model factory of this resource
| |||||||||||
Get a specific subunit
| |||||||||||
Get the subunits of the resource (e.g.
| |||||||||||
Set a tag that participants must have in order to serve this resource
| |||||||||||
Set the reference to the class used to rebalance this resource
| |||||||||||
Set the resource to rebalance
| |||||||||||
Set the class that can serialize this context
| |||||||||||
Set the state model definition that the resource follows
| |||||||||||
Set the state model factory that the resource uses
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.helix.controller.rebalancer.context.RebalancerContext
|
Instantiate a basic rebalancer context
Get the tag, if any, that participants must have in order to serve this resource
Get a reference to the class used to rebalance this resource
Get the serializer. If none is provided, DefaultContextSerializer
is used
Get the state model definition that the resource follows
Get the state model factory of this resource
Get a specific subunit
subUnitId | the id of the subunit |
---|
Get the subunits of the resource (e.g. partitions)
Set a tag that participants must have in order to serve this resource
participantGroupTag | string group tag |
---|
Set the reference to the class used to rebalance this resource
rebalancerRef | RebalancerRef instance |
---|
Set the resource to rebalance
resourceId | resource id |
---|
Set the class that can serialize this context
serializer | serializer class that implements ContextSerializer |
---|
Set the state model definition that the resource follows
stateModelDefId | state model definition id |
---|
Set the state model factory that the resource uses
stateModelFactoryId | state model factory id |
---|