Known Direct Subclasses
AlertHistory,
AlertStatus,
Alerts,
ClusterConfiguration,
ClusterConstraints,
ControllerContextHolder,
CurrentState,
Error,
ExternalView,
HealthStat,
IdealState,
InstanceConfig,
LeaderHistory,
LiveInstance,
Message,
and
7 others.
AlertHistory |
Maintains a history of alerts that have been fired, as well as actions taken, if any. |
AlertStatus |
Get characteristics of alerts, whether they were fired, and their context. |
Alerts |
Describe alerts and corresponding metrics. |
ClusterConfiguration |
Persisted configuration properties for a cluster
|
ClusterConstraints |
All of the constraints on a given cluster and its subcomponents, both physical and logical. |
ControllerContextHolder |
Wrap a ControllerContext so that it can be persisted in the backing store
|
CurrentState |
Current states of partitions in a resource for an instance. |
Error |
Defines an error that occurs in computing a valid ideal state or external view
|
ExternalView |
External view is an aggregation (across all instances)
of current states for the partitions in a resource
|
HealthStat |
Represents a set of properties that can be queried to determine the health of instances on a
Helix-managed cluster
|
IdealState |
The ideal states of all partitions in a resource
|
InstanceConfig |
Instance configurations
|
LeaderHistory |
The history of instances that have served as the leader controller
|
LiveInstance |
Instance that connects to zookeeper (stored ephemerally)
|
Message |
Messages sent internally among nodes in the system to respond to changes in state. |
PartitionConfiguration |
Persisted configuration properties for a partition
|
PauseSignal |
Represent a pause in the cluster
|
PersistentStats |
Statistics for an instance
|
ResourceAssignment |
Represents the assignments of replicas for an entire resource, keyed on partitions of the
resource. |
ResourceConfiguration |
Persisted configuration properties for a resource
|
StateModelDefinition |
Describe the state model
|
StatusUpdate |
Wraps updates to Helix constructs, e.g. |
|
Class Overview
A wrapper class for ZNRecord. Used as a base class for IdealState, CurrentState, etc.
Summary
Nested Classes |
enum |
HelixProperty.HelixPropertyAttribute |
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Fields
Public Constructors
public
HelixProperty
(String id)
Initialize the property with an identifier
public
HelixProperty
(ZNRecord record)
Initialize the property with an existing ZNRecord
public
HelixProperty
(HelixProperty property)
Initialize the property by copying from another property
Public Methods
public
void
addNamespacedConfig
(NamespacedConfig namespacedConfig)
Add namespaced configuration properties to this property
Parameters
namespacedConfig
| namespaced properties
|
public
static
Map<String, T>
convertListToMap
(List<T> records)
Converts a list of records to a map of the record identifier to typed properties
Parameters
records
| the ZNRecords to convert |
Returns
- id --> HelixProperty subclass map
public
static
List<ZNRecord>
convertToList
(List<T> typedInstances)
Convert typed properties to a list of records
Parameters
typedInstances
| objects subclassing HelixProperty |
Returns
- a list of ZNRecord objects
public
static
T
convertToTypedInstance
(Class<T> clazz, ZNRecord record)
static method that converts ZNRecord to an instance that subclasses HelixProperty
Parameters
clazz
| subclass of HelixProperty |
record
| the ZNRecord describing the property |
Returns
- typed instance corresponding to the record, or null if conversion fails
public
static
List<T>
convertToTypedList
(Class<T> clazz, Collection<ZNRecord> records)
Convert a collection of records to typed properties
Parameters
clazz
| Subclass of HelixProperty |
records
| the ZNRecords describing the property |
Returns
- list of typed instances for which the conversion succeeded, or null if records is null
public
boolean
equals
(Object obj)
public
boolean
getBatchMessageMode
()
Get the state of batch messaging
Returns
- true if enabled, false if disabled
public
int
getBucketSize
()
Get the size of buckets defined
Returns
- the bucket size, or 0 if not defined
public
final
String
getId
()
Get the property identifier
public
final
ZNRecord
getRecord
()
Returns
- ZNRecord object associated with this property
public
boolean
isValid
()
Returns
- true if valid, false if invalid
public
void
setBatchMessageMode
(boolean enable)
Change the state of batch messaging
Parameters
enable
| true to enable, false to disable
|
public
void
setBucketSize
(int bucketSize)
Set the size of buckets defined
Parameters
bucketSize
| the bucket size (will default to 0 if negative)
|
public
final
void
setDeltaList
(List<ZNRecordDelta> deltaList)
Set the changes to the backing ZNRecord
Parameters
deltaList
| list of ZNRecord updates to be made
|