public class

ZkHelixController

extends Object
implements HelixController
java.lang.Object
   ↳ org.apache.helix.manager.zk.ZkHelixController

Summary

Public Constructors
ZkHelixController(ZkHelixConnection connection, ClusterId clusterId, ControllerId controllerId)
Public Methods
ClusterId getClusterId()
get cluster id to which this role belongs
HelixConnection getConnection()
get the underlying connection
ControllerId getControllerId()
get controller id
Id getId()
get id of this helix-role
ClusterMessagingService getMessagingService()
get the messaging-service
InstanceType getType()
helix-role type
boolean isLeader()
tell if this controller is leader of cluster
void onConnected()
called after connection is established
void onDisconnecting()
called before disconnect
void startAsync()
start helix service async
void stopAsync()
stop helix service async
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.helix.HelixConnectionStateListener
From interface org.apache.helix.HelixController
From interface org.apache.helix.HelixRole
From interface org.apache.helix.HelixService

Public Constructors

public ZkHelixController (ZkHelixConnection connection, ClusterId clusterId, ControllerId controllerId)

Public Methods

public ClusterId getClusterId ()

get cluster id to which this role belongs

Returns
  • cluster id

public HelixConnection getConnection ()

get the underlying connection

Returns
  • helix-connection

public ControllerId getControllerId ()

get controller id

Returns
  • controller id

public Id getId ()

get id of this helix-role

Returns
  • id

public ClusterMessagingService getMessagingService ()

get the messaging-service

Returns
  • messaging-service

public InstanceType getType ()

helix-role type

public boolean isLeader ()

tell if this controller is leader of cluster

public void onConnected ()

called after connection is established

public void onDisconnecting ()

called before disconnect

public void startAsync ()

start helix service async

public void stopAsync ()

stop helix service async