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 void
destroy()
String
getMetaDataNodeLookup()
void
handleMessageLog(TelemetryMessageLog messageLog)
Handle the messages.protected abstract P
parse(TelemetryMessageLogEntry message)
void
setMetaDataNodeLookup(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:Adapter
Handle the messages. IMPORTANT: Implementations of this method MUST be thread-safe.- Specified by:
handleMessageLog
in 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)
-
-