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(Integer nodeId)
Retrieved detailed information about a specific node.
|
List<FlowNodeSummary> |
getFlowExporters()
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()
FlowRestService
getFlowExporters
in interface FlowRestService
public FlowNodeDetails getFlowExporter(Integer nodeId)
FlowRestService
getFlowExporter
in interface FlowRestService
nodeId
- node idpublic 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 © 2019. All rights reserved.