public class

CallbackHandler

extends Object
implements IZkChildListener IZkDataListener
java.lang.Object
   ↳ org.apache.helix.manager.zk.CallbackHandler

Summary

Public Constructors
CallbackHandler(HelixManager manager, ZkClient client, PropertyKey propertyKey, Object listener, EventType[] eventTypes, HelixConstants.ChangeType changeType)
Public Methods
EventType[] getEventTypes()
Object getListener()
String getPath()
void handleChildChange(String parentPath, List<String> currentChilds)
void handleDataChange(String dataPath, Object data)
void handleDataDeleted(String dataPath)
void init()
Invoke the listener so that it sets up the initial values from the zookeeper if any exists
void invoke(NotificationContext changeContext)
void reset()
Invoke the listener for the last time so that the listener could clean up resources
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.I0Itec.zkclient.IZkChildListener
From interface org.I0Itec.zkclient.IZkDataListener

Public Constructors

public CallbackHandler (HelixManager manager, ZkClient client, PropertyKey propertyKey, Object listener, EventType[] eventTypes, HelixConstants.ChangeType changeType)

Public Methods

public EventType[] getEventTypes ()

public Object getListener ()

public String getPath ()

public void handleChildChange (String parentPath, List<String> currentChilds)

public void handleDataChange (String dataPath, Object data)

public void handleDataDeleted (String dataPath)

public void init ()

Invoke the listener so that it sets up the initial values from the zookeeper if any exists

public void invoke (NotificationContext changeContext)

Throws
Exception

public void reset ()

Invoke the listener for the last time so that the listener could clean up resources