public class

ControllerResource

extends ServerResource
java.lang.Object
   ↳ org.restlet.resource.Resource
     ↳ org.restlet.resource.ServerResource
       ↳ org.apache.helix.webapp.resources.ControllerResource

Class Overview

Class for server-side resource at "/clusters/{clusterName}/Controller"

  • GET list Helix controller info
  • POST enable/disable Helix controller

  • Summary

    Public Constructors
    ControllerResource()
    Public Methods
    Representation get()
    List Helix controller info

    Usage: curl http://{host:port}/clusters/{cluster}/Controller

    Representation post(Representation entity)
    Enable/disable Helix controller

    Usage: curl -d 'jsonParameters={"command":"enableCluster","enabled":"{true/false}"}' -H "Content-Type: application/json" http://{host:port}/clusters/{cluster}/Controller

    [Expand]
    Inherited Methods
    From class org.restlet.resource.ServerResource
    From class org.restlet.resource.Resource
    From class java.lang.Object

    Public Constructors

    public ControllerResource ()

    Public Methods

    public Representation get ()

    List Helix controller info

    Usage: curl http://{host:port}/clusters/{cluster}/Controller

    public Representation post (Representation entity)

    Enable/disable Helix controller

    Usage: curl -d 'jsonParameters={"command":"enableCluster","enabled":"{true/false}"}' -H "Content-Type: application/json" http://{host:port}/clusters/{cluster}/Controller