Class AbstractFlowAdapter<P>
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.flows.AbstractFlowAdapter<P>
-
- All Implemented Interfaces:
Adapter
- Direct Known Subclasses:
NetflowAdapter,SFlowAdapter
public abstract class AbstractFlowAdapter<P> extends Object implements Adapter
-
-
Constructor Summary
Constructors Constructor Description AbstractFlowAdapter(AdapterDefinition adapterConfig, com.codahale.metrics.MetricRegistry metricRegistry, FlowRepository flowRepository, Converter<P> converter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddestroy()StringgetMetaDataNodeLookup()voidhandleMessageLog(TelemetryMessageLog messageLog)Handle the messages.protected abstract Pparse(TelemetryMessageLogEntry message)voidsetMetaDataNodeLookup(String metaDataNodeLookup)
-
-
-
Constructor Detail
-
AbstractFlowAdapter
public AbstractFlowAdapter(AdapterDefinition adapterConfig, com.codahale.metrics.MetricRegistry metricRegistry, FlowRepository flowRepository, Converter<P> converter)
-
-
Method Detail
-
handleMessageLog
public void handleMessageLog(TelemetryMessageLog messageLog)
Description copied from interface:AdapterHandle the messages. IMPORTANT: Implementations of this method MUST be thread-safe.- Specified by:
handleMessageLogin interfaceAdapter- Parameters:
messageLog- group of messages to be handled
-
parse
protected abstract P parse(TelemetryMessageLogEntry message)
-
getMetaDataNodeLookup
public String getMetaDataNodeLookup()
-
setMetaDataNodeLookup
public void setMetaDataNodeLookup(String metaDataNodeLookup)
-
-