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,
SessionUtils sessionUtils) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getApplications(String matchingPrefix,
long limit,
javax.ws.rs.core.UriInfo uriInfo)
Retrieve the list of applications.
|
FlowSeriesResponse |
getApplicationSeries(long step,
Integer N,
Set<String> applications,
boolean includeOther,
javax.ws.rs.core.UriInfo uriInfo) |
FlowSummaryResponse |
getApplicationSummary(Integer N,
Set<String> applications,
boolean includeOther,
javax.ws.rs.core.UriInfo uriInfo) |
List<String> |
getConversations(String locationPattern,
String protocolPattern,
String lowerIPPattern,
String upperIPPattern,
String applicationPattern,
long limit,
javax.ws.rs.core.UriInfo uriInfo)
Retrieve the list of conversations.
|
FlowSeriesResponse |
getConversationSeries(long step,
Integer N,
Set<String> conversations,
boolean includeOther,
javax.ws.rs.core.UriInfo uriInfo) |
FlowSummaryResponse |
getConversationSummary(Integer N,
Set<String> conversations,
boolean includeOther,
javax.ws.rs.core.UriInfo uriInfo) |
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) |
List<String> |
getHosts(String regex,
long limit,
javax.ws.rs.core.UriInfo uriInfo)
Retrieve the list of hosts.
|
FlowSeriesResponse |
getHostSeries(long step,
Integer N,
Set<String> hosts,
boolean includeOther,
javax.ws.rs.core.UriInfo uriInfo) |
FlowSummaryResponse |
getHostSummary(Integer N,
Set<String> hosts,
boolean includeOther,
javax.ws.rs.core.UriInfo uriInfo) |
void |
setFlowGraphUrl(String flowGraphUrl) |
public FlowRestServiceImpl(FlowRepository flowRepository, NodeDao nodeDao, SnmpInterfaceDao snmpInterfaceDao, SessionUtils sessionUtils)
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 List<String> getApplications(String matchingPrefix, long limit, javax.ws.rs.core.UriInfo uriInfo)
FlowRestService
getApplications
in interface FlowRestService
matchingPrefix
- a string prefix that can be used to further filter the resultslimit
- the maximum number of applications to returnpublic FlowSummaryResponse getApplicationSummary(Integer N, Set<String> applications, boolean includeOther, javax.ws.rs.core.UriInfo uriInfo)
getApplicationSummary
in interface FlowRestService
public FlowSeriesResponse getApplicationSeries(long step, Integer N, Set<String> applications, boolean includeOther, javax.ws.rs.core.UriInfo uriInfo)
getApplicationSeries
in interface FlowRestService
public List<String> getHosts(String regex, long limit, javax.ws.rs.core.UriInfo uriInfo)
FlowRestService
getHosts
in interface FlowRestService
limit
- the maximum number of hosts to returnpublic FlowSummaryResponse getHostSummary(Integer N, Set<String> hosts, boolean includeOther, javax.ws.rs.core.UriInfo uriInfo)
getHostSummary
in interface FlowRestService
public FlowSeriesResponse getHostSeries(long step, Integer N, Set<String> hosts, boolean includeOther, javax.ws.rs.core.UriInfo uriInfo)
getHostSeries
in interface FlowRestService
public List<String> getConversations(String locationPattern, String protocolPattern, String lowerIPPattern, String upperIPPattern, String applicationPattern, long limit, javax.ws.rs.core.UriInfo uriInfo)
FlowRestService
getConversations
in interface FlowRestService
locationPattern
- the regex pattern for the location fieldprotocolPattern
- the regex pattern for the protocol fieldlowerIPPattern
- the regex pattern for the lower IP fieldupperIPPattern
- the regex pattern for the upper IP fieldapplicationPattern
- the regex pattern for the application fieldlimit
- limit for how many conversations to returnpublic FlowSummaryResponse getConversationSummary(Integer N, Set<String> conversations, boolean includeOther, javax.ws.rs.core.UriInfo uriInfo)
getConversationSummary
in interface FlowRestService
public FlowSeriesResponse getConversationSeries(long step, Integer N, Set<String> conversations, boolean includeOther, javax.ws.rs.core.UriInfo uriInfo)
getConversationSeries
in interface FlowRestService
public FlowGraphUrlInfo getFlowGraphUrlInfo(javax.ws.rs.core.UriInfo uriInfo)
getFlowGraphUrlInfo
in interface FlowRestService
public String getFlowGraphUrl()
public void setFlowGraphUrl(String flowGraphUrl)
Copyright © 2021. All rights reserved.