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)
FlowRestServicegetFlowCount in interface FlowRestServiceuriInfo - JAX-RS contextpublic List<FlowNodeSummary> getFlowExporters()
FlowRestServicegetFlowExporters in interface FlowRestServicepublic FlowNodeDetails getFlowExporter(Integer nodeId)
FlowRestServicegetFlowExporter in interface FlowRestServicenodeId - node idpublic List<String> getApplications(String matchingPrefix, long limit, javax.ws.rs.core.UriInfo uriInfo)
FlowRestServicegetApplications in interface FlowRestServicematchingPrefix - 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 FlowRestServicepublic FlowSeriesResponse getApplicationSeries(long step, Integer N, Set<String> applications, boolean includeOther, javax.ws.rs.core.UriInfo uriInfo)
getApplicationSeries in interface FlowRestServicepublic List<String> getHosts(String regex, long limit, javax.ws.rs.core.UriInfo uriInfo)
FlowRestServicegetHosts in interface FlowRestServicelimit - 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 FlowRestServicepublic FlowSeriesResponse getHostSeries(long step, Integer N, Set<String> hosts, boolean includeOther, javax.ws.rs.core.UriInfo uriInfo)
getHostSeries in interface FlowRestServicepublic List<String> getConversations(String locationPattern, String protocolPattern, String lowerIPPattern, String upperIPPattern, String applicationPattern, long limit, javax.ws.rs.core.UriInfo uriInfo)
FlowRestServicegetConversations in interface FlowRestServicelocationPattern - 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 FlowRestServicepublic FlowSeriesResponse getConversationSeries(long step, Integer N, Set<String> conversations, boolean includeOther, javax.ws.rs.core.UriInfo uriInfo)
getConversationSeries in interface FlowRestServicepublic FlowGraphUrlInfo getFlowGraphUrlInfo(javax.ws.rs.core.UriInfo uriInfo)
getFlowGraphUrlInfo in interface FlowRestServicepublic String getFlowGraphUrl()
public void setFlowGraphUrl(String flowGraphUrl)
Copyright © 2021. All rights reserved.