public interface

HelixAutoController

implements HelixConnectionStateListener HelixRole HelixService
org.apache.helix.HelixAutoController
Known Indirect Subclasses

Class Overview

Autonomous controller

Summary

Public Methods
abstract void addPreConnectCallback(PreConnectCallback callback)
add pre-connect callback
abstract ControllerId getControllerId()
get controller id
abstract StateMachineEngine getStateMachineEngine()
get state machine engine
abstract boolean isLeader()
tell if this controller is leader of cluster
abstract void setLiveInstanceInfoProvider(LiveInstanceInfoProvider liveInstanceInfoProvider)
Add a LiveInstanceInfoProvider that is invoked before creating liveInstance.
[Expand]
Inherited Methods
From interface org.apache.helix.HelixConnectionStateListener
From interface org.apache.helix.HelixRole
From interface org.apache.helix.HelixService

Public Methods

public abstract void addPreConnectCallback (PreConnectCallback callback)

add pre-connect callback

public abstract ControllerId getControllerId ()

get controller id

Returns
  • controller id

public abstract StateMachineEngine getStateMachineEngine ()

get state machine engine

Returns
  • state machine engine

public abstract boolean isLeader ()

tell if this controller is leader of cluster

public abstract void setLiveInstanceInfoProvider (LiveInstanceInfoProvider liveInstanceInfoProvider)

Add a LiveInstanceInfoProvider that is invoked before creating liveInstance.
This allows applications to provide additional information that will be published to zookeeper and become available for discovery