public class

LeaderHistory

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

Class Overview

The history of instances that have served as the leader controller

Summary

[Expand]
Inherited Fields
From class org.apache.helix.HelixProperty
Public Constructors
LeaderHistory(String id)
LeaderHistory(ZNRecord record)
Public Methods
boolean isValid()
Get property validity
void updateHistory(String clusterName, String instanceName)
Save up to HISTORY_SIZE number of leaders in FIFO order
[Expand]
Inherited Methods
From class org.apache.helix.HelixProperty
From class java.lang.Object

Public Constructors

public LeaderHistory (String id)

public LeaderHistory (ZNRecord record)

Public Methods

public boolean isValid ()

Get property validity

Returns
  • true if valid, false if invalid

public void updateHistory (String clusterName, String instanceName)

Save up to HISTORY_SIZE number of leaders in FIFO order

Parameters
clusterName the cluster the instance leads
instanceName the name of the leader instance