public class

ClusterResource

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

Class Overview

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

  • GET list cluster information
  • POST activate/deactivate a cluster in distributed controller mode
  • DELETE remove a cluster

  • Summary

    Public Constructors
    ClusterResource()
    Public Methods
    Representation delete()
    Remove a cluster

    Usage: curl -X DELETE http://{host:port}/clusters/{clusterName}

    Representation get()
    List cluster information

    Usage: curl http://{host:port}/clusters/{clusterName}

    Representation post(Representation entity)
    Activate/deactivate a cluster in distributed controller mode

    Usage: curl -d 'jsonParameters= {"command":"activateCluster","grandCluster":"{controllerCluster}","enabled":"{true/false}"}' -H "Content-Type: application/json" http://{host:port}/clusters/{clusterName}}

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

    Public Constructors

    public ClusterResource ()

    Public Methods

    public Representation delete ()

    Remove a cluster

    Usage: curl -X DELETE http://{host:port}/clusters/{clusterName}

    public Representation get ()

    List cluster information

    Usage: curl http://{host:port}/clusters/{clusterName}

    public Representation post (Representation entity)

    Activate/deactivate a cluster in distributed controller mode

    Usage: curl -d 'jsonParameters= {"command":"activateCluster","grandCluster":"{controllerCluster}","enabled":"{true/false}"}' -H "Content-Type: application/json" http://{host:port}/clusters/{clusterName}}