@Path(value="cluster")
public class ClusterWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
ClusterWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
formCluster(InputStream config)
Forms cluster of ONOS instances.
|
javax.ws.rs.core.Response |
getClusterNode(String id)
Get cluster node details.
|
javax.ws.rs.core.Response |
getClusterNodes()
Get all cluster nodes.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET @Produces(value="application/json") public javax.ws.rs.core.Response getClusterNodes()
@GET
@Path(value="{id}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getClusterNode(@PathParam(value="id")
String id)
id - cluster node identifier@POST @Path(value="configuration") @Produces(value="application/json") public javax.ws.rs.core.Response formCluster(InputStream config) throws IOException
config - cluster definitionIOException - to signify bad request