public class FlowRestServiceImpl extends Object implements FlowRestService
DEFAULT_LIMIT, DEFAULT_STEP_MS, DEFAULT_TOP_N| Constructor and Description |
|---|
FlowRestServiceImpl(FlowRepository flowRepository,
NodeDao nodeDao,
SnmpInterfaceDao snmpInterfaceDao,
org.springframework.transaction.support.TransactionOperations transactionOperations) |
| Modifier and Type | Method and Description |
|---|---|
protected static List<Filter> |
getFiltersFromQueryString(javax.ws.rs.core.MultivaluedMap<String,String> queryParams) |
Long |
getFlowCount(javax.ws.rs.core.UriInfo uriInfo)
Retrieves the number of flows persisted in the repository.
|
FlowNodeDetails |
getFlowExporter(String nodeCriteria,
int limit,
javax.ws.rs.core.UriInfo uriInfo)
Retrieved detailed information about a specific node.
|
List<FlowNodeSummary> |
getFlowExporters(int limit,
javax.ws.rs.core.UriInfo uriInfo)
Retrieves a summary of the nodes that have exported flows.
|
String |
getFlowGraphUrl() |
FlowGraphUrlInfo |
getFlowGraphUrlInfo(javax.ws.rs.core.UriInfo uriInfo) |
FlowSummaryResponse |
getTopNApplications(int N,
boolean includeOther,
javax.ws.rs.core.UriInfo uriInfo) |
FlowSeriesResponse |
getTopNApplicationSeries(long step,
int N,
boolean includeOther,
javax.ws.rs.core.UriInfo uriInfo) |
FlowSummaryResponse |
getTopNConversations(int N,
javax.ws.rs.core.UriInfo uriInfo) |
FlowSeriesResponse |
getTopNConversationsSeries(long step,
int N,
javax.ws.rs.core.UriInfo uriInfo) |
void |
setFlowGraphUrl(String flowGraphUrl) |
public FlowRestServiceImpl(FlowRepository flowRepository, NodeDao nodeDao, SnmpInterfaceDao snmpInterfaceDao, org.springframework.transaction.support.TransactionOperations transactionOperations)
public Long getFlowCount(javax.ws.rs.core.UriInfo uriInfo)
FlowRestServicegetFlowCount in interface FlowRestServiceuriInfo - JAX-RS contextpublic List<FlowNodeSummary> getFlowExporters(int limit, javax.ws.rs.core.UriInfo uriInfo)
FlowRestServicegetFlowExporters in interface FlowRestServicelimit - maximum number of exporters to return (those with the most flows will be returned
in case the results are truncated)uriInfo - JAX-RS contextpublic FlowNodeDetails getFlowExporter(String nodeCriteria, int limit, javax.ws.rs.core.UriInfo uriInfo)
FlowRestServicegetFlowExporter in interface FlowRestServicenodeCriteria - node id or fs:fidlimit - maximum number of interfaces to return (those with the most flows will be returned
in case the results are truncated)uriInfo - JAX-RS contextpublic FlowSummaryResponse getTopNApplications(int N, boolean includeOther, javax.ws.rs.core.UriInfo uriInfo)
getTopNApplications in interface FlowRestServicepublic FlowSeriesResponse getTopNApplicationSeries(long step, int N, boolean includeOther, javax.ws.rs.core.UriInfo uriInfo)
getTopNApplicationSeries in interface FlowRestServicepublic FlowSummaryResponse getTopNConversations(int N, javax.ws.rs.core.UriInfo uriInfo)
getTopNConversations in interface FlowRestServicepublic FlowSeriesResponse getTopNConversationsSeries(long step, int N, javax.ws.rs.core.UriInfo uriInfo)
getTopNConversationsSeries in interface FlowRestServiceprotected static List<Filter> getFiltersFromQueryString(javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
public FlowGraphUrlInfo getFlowGraphUrlInfo(javax.ws.rs.core.UriInfo uriInfo)
getFlowGraphUrlInfo in interface FlowRestServicepublic String getFlowGraphUrl()
public void setFlowGraphUrl(String flowGraphUrl)
Copyright © 2018. All rights reserved.