@Path(value="dpis")
public class DpisWebResource
extends org.onosproject.rest.AbstractWebResource
| Modifier and Type | Field and Description |
|---|---|
static Comparator<org.onosproject.incubator.net.dpi.FlowStatInfo> |
FLOW_STAT_INFO_COMPARATOR |
static Comparator<org.onosproject.incubator.net.dpi.ProtocolStatInfo> |
PROTOCOL_STAT_INFO_COMPARATOR |
| Constructor and Description |
|---|
DpisWebResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addDpiStatistics(InputStream stream)
Add new dpi statistics entry at the end of list.
|
javax.ws.rs.core.Response |
getDetectedProtocols(int topn)
Gets the latest detected protocol statistics only.
|
javax.ws.rs.core.Response |
getDpisLatest(int topn)
Gets the latest dpi statistics.
|
javax.ws.rs.core.Response |
getKnownFlows(int topn)
Gets the latest known flows statistics only.
|
javax.ws.rs.core.Response |
getTrafficStatistics()
Gets the latest traffic statistics only.
|
javax.ws.rs.core.Response |
getUnknownFlows(int topn)
Gets the latest unknown flows statistics only.
|
codec, encodeArray, getService, mapper, newArray, newObjectpublic static final Comparator<org.onosproject.incubator.net.dpi.ProtocolStatInfo> PROTOCOL_STAT_INFO_COMPARATOR
public static final Comparator<org.onosproject.incubator.net.dpi.FlowStatInfo> FLOW_STAT_INFO_COMPARATOR
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getDpisLatest(@QueryParam(value="topn")
int topn)
topn - max size@GET @Produces(value="application/json") @Path(value="traffic") public javax.ws.rs.core.Response getTrafficStatistics()
@GET
@Produces(value="application/json")
@Path(value="protocols")
public javax.ws.rs.core.Response getDetectedProtocols(@QueryParam(value="topn")
int topn)
topn - max size@GET
@Produces(value="application/json")
@Path(value="knownFlows")
public javax.ws.rs.core.Response getKnownFlows(@QueryParam(value="topn")
int topn)
topn - max size@GET
@Produces(value="application/json")
@Path(value="unknownFlows")
public javax.ws.rs.core.Response getUnknownFlows(@QueryParam(value="topn")
int topn)
topn - max size@POST @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response addDpiStatistics(InputStream stream)
stream - dpi statistics JSON