Class FlowRestServiceImpl

    • Method Detail

      • getFlowCount

        public java.lang.Long getFlowCount​(javax.ws.rs.core.UriInfo uriInfo)
        Description copied from interface: FlowRestService
        Retrieves the number of flows persisted in the repository. Supports filtering.
        Specified by:
        getFlowCount in interface FlowRestService
        Parameters:
        uriInfo - JAX-RS context
        Returns:
        number of flows that match the given query
      • getFlowExporter

        public FlowNodeDetails getFlowExporter​(java.lang.Integer nodeId)
        Description copied from interface: FlowRestService
        Retrieved detailed information about a specific node. Supports filtering.
        Specified by:
        getFlowExporter in interface FlowRestService
        Parameters:
        nodeId - node id
        Returns:
        node details
      • getDscpValues

        public java.util.List<java.lang.Integer> getDscpValues​(javax.ws.rs.core.UriInfo uriInfo)
        Specified by:
        getDscpValues in interface FlowRestService
      • getApplications

        public java.util.List<java.lang.String> getApplications​(java.lang.String matchingPrefix,
                                                                long limit,
                                                                javax.ws.rs.core.UriInfo uriInfo)
        Description copied from interface: FlowRestService
        Retrieve the list of applications. Supports filtering.
        Specified by:
        getApplications in interface FlowRestService
        Parameters:
        matchingPrefix - a string prefix that can be used to further filter the results
        limit - the maximum number of applications to return
        Returns:
        the list of applications
      • getApplicationSeries

        public FlowSeriesResponse getApplicationSeries​(long step,
                                                       java.lang.Integer N,
                                                       java.util.Set<java.lang.String> applications,
                                                       boolean includeOther,
                                                       javax.ws.rs.core.UriInfo uriInfo)
        Specified by:
        getApplicationSeries in interface FlowRestService
      • getHosts

        public java.util.List<java.lang.String> getHosts​(java.lang.String regex,
                                                         long limit,
                                                         javax.ws.rs.core.UriInfo uriInfo)
        Description copied from interface: FlowRestService
        Retrieve the list of hosts. Supports filtering.
        Specified by:
        getHosts in interface FlowRestService
        limit - the maximum number of hosts to return
        Returns:
        the list of hosts
      • getHostSummary

        public FlowSummaryResponse getHostSummary​(java.lang.Integer N,
                                                  java.util.Set<java.lang.String> hosts,
                                                  boolean includeOther,
                                                  javax.ws.rs.core.UriInfo uriInfo)
        Specified by:
        getHostSummary in interface FlowRestService
      • getHostSeries

        public FlowSeriesResponse getHostSeries​(long step,
                                                java.lang.Integer N,
                                                java.util.Set<java.lang.String> hosts,
                                                boolean includeOther,
                                                javax.ws.rs.core.UriInfo uriInfo)
        Specified by:
        getHostSeries in interface FlowRestService
      • getConversations

        public java.util.List<java.lang.String> getConversations​(java.lang.String locationPattern,
                                                                 java.lang.String protocolPattern,
                                                                 java.lang.String lowerIPPattern,
                                                                 java.lang.String upperIPPattern,
                                                                 java.lang.String applicationPattern,
                                                                 long limit,
                                                                 javax.ws.rs.core.UriInfo uriInfo)
        Description copied from interface: FlowRestService
        Retrieve the list of conversations. Supports filtering.
        Specified by:
        getConversations in interface FlowRestService
        Parameters:
        locationPattern - the regex pattern for the location field
        protocolPattern - the regex pattern for the protocol field
        lowerIPPattern - the regex pattern for the lower IP field
        upperIPPattern - the regex pattern for the upper IP field
        applicationPattern - the regex pattern for the application field
        limit - limit for how many conversations to return
        Returns:
        the list of conversations
      • getConversationSeries

        public FlowSeriesResponse getConversationSeries​(long step,
                                                        java.lang.Integer N,
                                                        java.util.Set<java.lang.String> conversations,
                                                        boolean includeOther,
                                                        javax.ws.rs.core.UriInfo uriInfo)
        Specified by:
        getConversationSeries in interface FlowRestService
      • getFlowGraphUrl

        public java.lang.String getFlowGraphUrl()
      • setFlowGraphUrl

        public void setFlowGraphUrl​(java.lang.String flowGraphUrl)
      • getFiltersFromQueryString

        protected static java.util.List<Filter> getFiltersFromQueryString​(javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> queryParams)