public class

ClustersResource

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

Class Overview

Class for server-side resource at "/clusters"

  • GET list all Helix clusters
  • POST add a new cluster

  • Summary

    Public Constructors
    ClustersResource()
    Public Methods
    Representation delete()
    Representation get()
    List all Helix clusters

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

    Representation post(Representation entity)
    Add a new Helix cluster

    Usage: curl -d 'jsonParameters={"command":"addCluster","clusterName":"{clusterName}"}' -H "Content-Type: application/json" http://{host:port}/clusters

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

    Public Constructors

    public ClustersResource ()

    Public Methods

    public Representation delete ()

    public Representation get ()

    List all Helix clusters

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

    public Representation post (Representation entity)

    Add a new Helix cluster

    Usage: curl -d 'jsonParameters={"command":"addCluster","clusterName":"{clusterName}"}' -H "Content-Type: application/json" http://{host:port}/clusters