Class ParserBase
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.netflow.parser.ParserBase
-
- All Implemented Interfaces:
Parser
- Direct Known Subclasses:
IpfixTcpParser
,UdpParserBase
public abstract class ParserBase extends java.lang.Object implements Parser
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CLOCK_SKEW_EVENT_UEI
static java.lang.String
ILLEGAL_FLOW_EVENT_UEI
-
Constructor Summary
Constructors Constructor Description ParserBase(Protocol protocol, java.lang.String name, AsyncDispatcher<TelemetryMessage> dispatcher, EventForwarder eventForwarder, Identity identity, DnsResolver dnsResolver, com.codahale.metrics.MetricRegistry metricRegistry)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
detectClockSkew(long packetTimestampMs, java.net.InetAddress remoteAddress)
long
getClockSkewEventRate()
boolean
getDnsLookupsEnabled()
long
getIllegalFlowEventRate()
long
getMaxClockSkew()
protected abstract MessageBuilder
getMessageBuilder()
java.lang.String
getName()
int
getSequenceNumberPatience()
int
getThreads()
protected SequenceNumberTracker
sequenceNumberTracker()
void
setClockSkewEventRate(long clockSkewEventRate)
void
setDnsLookupsEnabled(boolean dnsLookupsEnabled)
void
setIllegalFlowEventRate(long illegalFlowEventRate)
void
setMaxClockSkew(long maxClockSkew)
void
setSequenceNumberPatience(int sequenceNumberPatience)
void
setThreads(int threads)
void
start(java.util.concurrent.ScheduledExecutorService executorService)
void
stop()
protected java.util.concurrent.CompletableFuture<?>
transmit(RecordProvider packet, Session session, java.net.InetSocketAddress remoteAddress)
-
-
-
Field Detail
-
CLOCK_SKEW_EVENT_UEI
public static final java.lang.String CLOCK_SKEW_EVENT_UEI
- See Also:
- Constant Field Values
-
ILLEGAL_FLOW_EVENT_UEI
public static final java.lang.String ILLEGAL_FLOW_EVENT_UEI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ParserBase
public ParserBase(Protocol protocol, java.lang.String name, AsyncDispatcher<TelemetryMessage> dispatcher, EventForwarder eventForwarder, Identity identity, DnsResolver dnsResolver, com.codahale.metrics.MetricRegistry metricRegistry)
-
-
Method Detail
-
getMessageBuilder
protected abstract MessageBuilder getMessageBuilder()
-
start
public void start(java.util.concurrent.ScheduledExecutorService executorService)
-
setMaxClockSkew
public void setMaxClockSkew(long maxClockSkew)
-
getMaxClockSkew
public long getMaxClockSkew()
-
getClockSkewEventRate
public long getClockSkewEventRate()
-
setClockSkewEventRate
public void setClockSkewEventRate(long clockSkewEventRate)
-
setIllegalFlowEventRate
public void setIllegalFlowEventRate(long illegalFlowEventRate)
-
getIllegalFlowEventRate
public long getIllegalFlowEventRate()
-
getSequenceNumberPatience
public int getSequenceNumberPatience()
-
setSequenceNumberPatience
public void setSequenceNumberPatience(int sequenceNumberPatience)
-
getDnsLookupsEnabled
public boolean getDnsLookupsEnabled()
-
setDnsLookupsEnabled
public void setDnsLookupsEnabled(boolean dnsLookupsEnabled)
-
getThreads
public int getThreads()
-
setThreads
public void setThreads(int threads)
-
transmit
protected java.util.concurrent.CompletableFuture<?> transmit(RecordProvider packet, Session session, java.net.InetSocketAddress remoteAddress)
-
detectClockSkew
protected void detectClockSkew(long packetTimestampMs, java.net.InetAddress remoteAddress)
-
sequenceNumberTracker
protected SequenceNumberTracker sequenceNumberTracker()
-
-