Package org.opennms.netmgt.flows.elastic
Class ElasticFlowRepository
- java.lang.Object
-
- org.opennms.netmgt.flows.elastic.ElasticFlowRepository
-
- All Implemented Interfaces:
FlowRepository
public class ElasticFlowRepository extends Object implements FlowRepository
-
-
Field Summary
Fields Modifier and Type Field Description static StringTRACER_FLOW_MODULE
-
Constructor Summary
Constructors Constructor Description ElasticFlowRepository(com.codahale.metrics.MetricRegistry metricRegistry, io.searchbox.client.JestClient jestClient, IndexStrategy indexStrategy, DocumentEnricher documentEnricher, SessionUtils sessionUtils, NodeDao nodeDao, SnmpInterfaceDao snmpInterfaceDao, Identity identity, TracerRegistry tracerRegistry, EnrichedFlowForwarder enrichedFlowForwarder, IndexSettings indexSettings)ElasticFlowRepository(com.codahale.metrics.MetricRegistry metricRegistry, io.searchbox.client.JestClient jestClient, IndexStrategy indexStrategy, DocumentEnricher documentEnricher, SessionUtils sessionUtils, NodeDao nodeDao, SnmpInterfaceDao snmpInterfaceDao, Identity identity, TracerRegistry tracerRegistry, EnrichedFlowForwarder enrichedFlowForwarder, IndexSettings indexSettings, int bulkSize, int bulkFlushMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBulkFlushMs()intgetBulkRetryCount()intgetBulkSize()IdentitygetIdentity()TracerRegistrygetTracerRegistry()booleanisEnableFlowForwarding()booleanisSkipElasticsearchPersistence()voidpersist(Collection<Flow> flows, FlowSource source)voidsetBulkFlushMs(int bulkFlushMs)voidsetBulkRetryCount(int bulkRetryCount)voidsetBulkSize(int bulkSize)voidsetEnableFlowForwarding(boolean enableFlowForwarding)voidsetSkipElasticsearchPersistence(boolean skipElasticsearchPersistence)voidstart()voidstop()
-
-
-
Field Detail
-
TRACER_FLOW_MODULE
public static final String TRACER_FLOW_MODULE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ElasticFlowRepository
public ElasticFlowRepository(com.codahale.metrics.MetricRegistry metricRegistry, io.searchbox.client.JestClient jestClient, IndexStrategy indexStrategy, DocumentEnricher documentEnricher, SessionUtils sessionUtils, NodeDao nodeDao, SnmpInterfaceDao snmpInterfaceDao, Identity identity, TracerRegistry tracerRegistry, EnrichedFlowForwarder enrichedFlowForwarder, IndexSettings indexSettings)
-
ElasticFlowRepository
public ElasticFlowRepository(com.codahale.metrics.MetricRegistry metricRegistry, io.searchbox.client.JestClient jestClient, IndexStrategy indexStrategy, DocumentEnricher documentEnricher, SessionUtils sessionUtils, NodeDao nodeDao, SnmpInterfaceDao snmpInterfaceDao, Identity identity, TracerRegistry tracerRegistry, EnrichedFlowForwarder enrichedFlowForwarder, IndexSettings indexSettings, int bulkSize, int bulkFlushMs)
-
-
Method Detail
-
persist
public void persist(Collection<Flow> flows, FlowSource source) throws FlowException
- Specified by:
persistin interfaceFlowRepository- Throws:
FlowException
-
getIdentity
public Identity getIdentity()
-
getTracerRegistry
public TracerRegistry getTracerRegistry()
-
start
public void start()
-
stop
public void stop() throws FlowException- Throws:
FlowException
-
isEnableFlowForwarding
public boolean isEnableFlowForwarding()
-
setEnableFlowForwarding
public void setEnableFlowForwarding(boolean enableFlowForwarding)
-
getBulkSize
public int getBulkSize()
-
setBulkSize
public void setBulkSize(int bulkSize)
-
getBulkRetryCount
public int getBulkRetryCount()
-
setBulkRetryCount
public void setBulkRetryCount(int bulkRetryCount)
-
getBulkFlushMs
public int getBulkFlushMs()
-
setBulkFlushMs
public void setBulkFlushMs(int bulkFlushMs)
-
isSkipElasticsearchPersistence
public boolean isSkipElasticsearchPersistence()
-
setSkipElasticsearchPersistence
public void setSkipElasticsearchPersistence(boolean skipElasticsearchPersistence)
-
-