public class

Controller

extends Object
java.lang.Object
   ↳ org.apache.helix.api.Controller

Class Overview

A helix controller

Summary

Public Constructors
Controller(ControllerId id, LiveInstance liveInstance, boolean isLeader)
Construct a controller
Public Methods
ControllerId getId()
Get controller id
LiveInstance getLiveInstance()
Get the running instance
boolean isLeader()
Check if the controller is leader
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Controller (ControllerId id, LiveInstance liveInstance, boolean isLeader)

Construct a controller

Public Methods

public ControllerId getId ()

Get controller id

Returns
  • controller id

public LiveInstance getLiveInstance ()

Get the running instance

Returns
  • running instance or null if not running

public boolean isLeader ()

Check if the controller is leader

Returns
  • true if leader or false otherwise