@Path(value="topology")
public class TopologyWebResource
extends org.onosproject.rest.AbstractWebResource
| Constructor and Description |
|---|
TopologyWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getCluster(int clusterId)
Gets details of a specific SCC.
|
javax.ws.rs.core.Response |
getClusterDevices(int clusterId)
Gets devices in a specific SCC.
|
javax.ws.rs.core.Response |
getClusterLinks(int clusterId)
Gets links in specific SCC.
|
javax.ws.rs.core.Response |
getClusters()
Gets overview of topology SCCs.
|
javax.ws.rs.core.Response |
getConnectPointBroadcast(String connectPointString)
Tests if a connect point is in broadcast set.
|
javax.ws.rs.core.Response |
getConnectPointInfrastructure(String connectPointString)
Tests if a connect point is infrastructure or edge.
|
javax.ws.rs.core.Response |
getTopology()
Gets overview of current topology.
|
codec, encodeArray, getService, mapper, newArray, newObject@GET @Produces(value="application/json") public javax.ws.rs.core.Response getTopology()
@GET @Produces(value="application/json") @Path(value="clusters") public javax.ws.rs.core.Response getClusters()
@GET
@Produces(value="application/json")
@Path(value="clusters/{id}")
public javax.ws.rs.core.Response getCluster(@PathParam(value="id")
int clusterId)
clusterId - id of the cluster to query@GET
@Produces(value="application/json")
@Path(value="clusters/{id}/devices")
public javax.ws.rs.core.Response getClusterDevices(@PathParam(value="id")
int clusterId)
clusterId - id of the cluster to query@GET
@Produces(value="application/json")
@Path(value="clusters/{id}/links")
public javax.ws.rs.core.Response getClusterLinks(@PathParam(value="id")
int clusterId)
clusterId - id of the cluster to query@GET
@Produces(value="application/json")
@Path(value="broadcast/{connectPoint}")
public javax.ws.rs.core.Response getConnectPointBroadcast(@PathParam(value="connectPoint")
String connectPointString)
connectPointString - deviceid:portnumber@GET
@Produces(value="application/json")
@Path(value="infrastructure/{connectPoint}")
public javax.ws.rs.core.Response getConnectPointInfrastructure(@PathParam(value="connectPoint")
String connectPointString)
connectPointString - deviceid:portnumber