java.lang.Object | |
↳ | org.apache.helix.model.Resource |
A resource contains a set of partitions and its replicas are managed by a state model
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate a resource by its name
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a partition to this resource
| |||||||||||
Get the batch message processing mode
| |||||||||||
Get the bucket size of this resource
| |||||||||||
Get a resource partition by name
| |||||||||||
Get the partitions of this resource
| |||||||||||
Get the resource name
| |||||||||||
Get the state model definition managing this resource
| |||||||||||
Get the state model factory for this resource
| |||||||||||
Set whether or not messages for this resource should be batch processed
| |||||||||||
Set the bucket size of this resource
| |||||||||||
Set the state model definition managing this resource
| |||||||||||
Set the state model factory for this resource
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Instantiate a resource by its name
resourceName | the name of the resource that identifies it |
---|
Add a partition to this resource
partitionName | the name of the partition |
---|
Get the batch message processing mode
Get the bucket size of this resource
Get a resource partition by name
partitionName | partition name |
---|
Get the partitions of this resource
Partition
objects
Get the resource name
Get the state model definition managing this resource
Get the state model factory for this resource
Set whether or not messages for this resource should be batch processed
mode | true to batch process, false to disable batch processing |
---|
Set the bucket size of this resource
bucketSize | the bucket size, or 0 to disable bucketizing |
---|
Set the state model definition managing this resource
stateModelDefRef | a reference to the state model definition |
---|
Set the state model factory for this resource
factoryName | the name of the state model factory |
---|