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)
FlowRestService
getFlowCount
in interface FlowRestService
uriInfo
- JAX-RS contextpublic List<FlowNodeSummary> getFlowExporters(int limit, javax.ws.rs.core.UriInfo uriInfo)
FlowRestService
getFlowExporters
in interface FlowRestService
limit
- 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)
FlowRestService
getFlowExporter
in interface FlowRestService
nodeCriteria
- 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 FlowRestService
public FlowSeriesResponse getTopNApplicationSeries(long step, int N, boolean includeOther, javax.ws.rs.core.UriInfo uriInfo)
getTopNApplicationSeries
in interface FlowRestService
public FlowSummaryResponse getTopNConversations(int N, javax.ws.rs.core.UriInfo uriInfo)
getTopNConversations
in interface FlowRestService
public FlowSeriesResponse getTopNConversationsSeries(long step, int N, javax.ws.rs.core.UriInfo uriInfo)
getTopNConversationsSeries
in interface FlowRestService
protected static List<Filter> getFiltersFromQueryString(javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
public FlowGraphUrlInfo getFlowGraphUrlInfo(javax.ws.rs.core.UriInfo uriInfo)
getFlowGraphUrlInfo
in interface FlowRestService
public String getFlowGraphUrl()
public void setFlowGraphUrl(String flowGraphUrl)
Copyright © 2018. All rights reserved.