public class ElasticFlowRepository extends Object implements FlowRepository
| Modifier and Type | Field and Description |
|---|---|
static String |
OTHER_NAME |
static String |
TRACER_FLOW_MODULE |
static String |
UNKNOWN_APPLICATION_NAME |
| Constructor and Description |
|---|
ElasticFlowRepository(com.codahale.metrics.MetricRegistry metricRegistry,
io.searchbox.client.JestClient jestClient,
IndexStrategy indexStrategy,
DocumentEnricher documentEnricher,
ClassificationEngine classificationEngine,
SessionUtils sessionUtils,
NodeDao nodeDao,
SnmpInterfaceDao snmpInterfaceDao,
Identity identity,
TracerRegistry tracerRegistry,
IndexSettings indexSettings,
int bulkRetryCount,
long maxFlowDurationMs) |
public static final String OTHER_NAME
public static final String UNKNOWN_APPLICATION_NAME
public static final String TRACER_FLOW_MODULE
public ElasticFlowRepository(com.codahale.metrics.MetricRegistry metricRegistry,
io.searchbox.client.JestClient jestClient,
IndexStrategy indexStrategy,
DocumentEnricher documentEnricher,
ClassificationEngine classificationEngine,
SessionUtils sessionUtils,
NodeDao nodeDao,
SnmpInterfaceDao snmpInterfaceDao,
Identity identity,
TracerRegistry tracerRegistry,
IndexSettings indexSettings,
int bulkRetryCount,
long maxFlowDurationMs)
public void persist(Collection<Flow> flows, FlowSource source) throws FlowException
persist in interface FlowRepositoryFlowExceptionpublic CompletableFuture<Long> getFlowCount(List<Filter> filters)
getFlowCount in interface FlowRepositorypublic CompletableFuture<List<String>> getApplications(String matchingPrefix, long limit, List<Filter> filters)
getApplications in interface FlowRepositorypublic CompletableFuture<List<TrafficSummary<String>>> getTopNApplicationSummaries(int N, boolean includeOther, List<Filter> filters)
getTopNApplicationSummaries in interface FlowRepositorypublic CompletableFuture<List<TrafficSummary<String>>> getApplicationSummaries(Set<String> applications, boolean includeOther, List<Filter> filters)
getApplicationSummaries in interface FlowRepositorypublic CompletableFuture<com.google.common.collect.Table<Directional<String>,Long,Double>> getApplicationSeries(Set<String> applications, long step, boolean includeOther, List<Filter> filters)
getApplicationSeries in interface FlowRepositorypublic CompletableFuture<com.google.common.collect.Table<Directional<String>,Long,Double>> getTopNApplicationSeries(int N, long step, boolean includeOther, List<Filter> filters)
getTopNApplicationSeries in interface FlowRepositorypublic CompletableFuture<List<String>> getConversations(String locationPattern, String protocolPattern, String lowerIPPattern, String upperIPPattern, String applicationPattern, long limit, List<Filter> filters)
getConversations in interface FlowRepositorypublic CompletableFuture<List<TrafficSummary<Conversation>>> getTopNConversationSummaries(int N, boolean includeOther, List<Filter> filters)
getTopNConversationSummaries in interface FlowRepositorypublic CompletableFuture<List<TrafficSummary<Conversation>>> getConversationSummaries(Set<String> conversations, boolean includeOther, List<Filter> filters)
getConversationSummaries in interface FlowRepositorypublic CompletableFuture<com.google.common.collect.Table<Directional<Conversation>,Long,Double>> getConversationSeries(Set<String> conversations, long step, boolean includeOther, List<Filter> filters)
getConversationSeries in interface FlowRepositorypublic CompletableFuture<com.google.common.collect.Table<Directional<Conversation>,Long,Double>> getTopNConversationSeries(int N, long step, boolean includeOther, List<Filter> filters)
getTopNConversationSeries in interface FlowRepositorypublic CompletableFuture<Conversation> resolveHostnameForConversation(String convoKey, List<Filter> filters)
public CompletableFuture<List<String>> getHosts(String regex, long limit, List<Filter> filters)
getHosts in interface FlowRepositorypublic CompletableFuture<List<TrafficSummary<Host>>> getTopNHostSummaries(int N, boolean includeOther, List<Filter> filters)
getTopNHostSummaries in interface FlowRepositorypublic CompletableFuture<List<TrafficSummary<Host>>> getHostSummaries(Set<String> hosts, boolean includeOther, List<Filter> filters)
getHostSummaries in interface FlowRepositorypublic CompletableFuture<com.google.common.collect.Table<Directional<Host>,Long,Double>> getHostSeries(Set<String> hosts, long step, boolean includeOther, List<Filter> filters)
getHostSeries in interface FlowRepositorypublic CompletableFuture<com.google.common.collect.Table<Directional<Host>,Long,Double>> getTopNHostSeries(int N, long step, boolean includeOther, List<Filter> filters)
getTopNHostSeries in interface FlowRepositorypublic CompletableFuture<Host> resolveHostnameForHost(String host, List<Filter> filters)
public Identity getIdentity()
public TracerRegistry getTracerRegistry()
public void start()
Copyright © 2021. All rights reserved.