Class Netflow9UdpParser
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.netflow.parser.ParserBase
-
- org.opennms.netmgt.telemetry.protocols.netflow.parser.UdpParserBase
-
- org.opennms.netmgt.telemetry.protocols.netflow.parser.Netflow9UdpParser
-
- All Implemented Interfaces:
Parser
,Dispatchable
,UdpParser
public class Netflow9UdpParser extends UdpParserBase implements UdpParser, Dispatchable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Netflow9UdpParser.SessionKey
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.telemetry.protocols.netflow.parser.UdpParserBase
HOUSEKEEPING_INTERVAL
-
Fields inherited from class org.opennms.netmgt.telemetry.protocols.netflow.parser.ParserBase
CLOCK_SKEW_EVENT_UEI, ILLEGAL_FLOW_EVENT_UEI
-
-
Constructor Summary
Constructors Constructor Description Netflow9UdpParser(java.lang.String name, AsyncDispatcher<TelemetryMessage> dispatcher, EventForwarder eventForwarder, Identity identity, DnsResolver dnsResolver, com.codahale.metrics.MetricRegistry metricRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UdpSessionManager.SessionKey
buildSessionKey(java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress)
java.lang.Long
getFlowActiveTimeoutFallback()
java.lang.Long
getFlowInactiveTimeoutFallback()
java.lang.Long
getFlowSamplingIntervalFallback()
Netflow9MessageBuilder
getMessageBuilder()
boolean
handles(io.netty.buffer.ByteBuf buffer)
Returns true if the implementor can handle the incoming data, otherwise false.protected RecordProvider
parse(Session session, io.netty.buffer.ByteBuf buffer)
void
setFlowActiveTimeoutFallback(java.lang.Long flowActiveTimeoutFallback)
void
setFlowInactiveTimeoutFallback(java.lang.Long flowInactiveTimeoutFallback)
void
setFlowSamplingIntervalFallback(java.lang.Long flowSamplingIntervalFallback)
-
Methods inherited from class org.opennms.netmgt.telemetry.protocols.netflow.parser.UdpParserBase
dumpInternalState, getTemplateTimeout, parse, setTemplateTimeout, start, stop
-
Methods inherited from class org.opennms.netmgt.telemetry.protocols.netflow.parser.ParserBase
detectClockSkew, getClockSkewEventRate, getDescription, getDnsLookupsEnabled, getIllegalFlowEventRate, getMaxClockSkew, getName, getSequenceNumberPatience, getThreads, sequenceNumberTracker, setClockSkewEventRate, setDnsLookupsEnabled, setIllegalFlowEventRate, setMaxClockSkew, setSequenceNumberPatience, setThreads, transmit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.telemetry.api.receiver.Parser
dumpInternalState, getDescription, getName, start, stop
-
-
-
-
Constructor Detail
-
Netflow9UdpParser
public Netflow9UdpParser(java.lang.String name, AsyncDispatcher<TelemetryMessage> dispatcher, EventForwarder eventForwarder, Identity identity, DnsResolver dnsResolver, com.codahale.metrics.MetricRegistry metricRegistry)
-
-
Method Detail
-
getMessageBuilder
public Netflow9MessageBuilder getMessageBuilder()
- Specified by:
getMessageBuilder
in classParserBase
-
parse
protected RecordProvider parse(Session session, io.netty.buffer.ByteBuf buffer) throws java.lang.Exception
- Specified by:
parse
in classUdpParserBase
- Throws:
java.lang.Exception
-
handles
public boolean handles(io.netty.buffer.ByteBuf buffer)
Description copied from interface:Dispatchable
Returns true if the implementor can handle the incoming data, otherwise false.- Specified by:
handles
in interfaceDispatchable
- Parameters:
buffer
- Representing the incoming data- Returns:
- true if the implementor can handle the data, otherwise false.
-
buildSessionKey
protected UdpSessionManager.SessionKey buildSessionKey(java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress)
- Specified by:
buildSessionKey
in classUdpParserBase
-
getFlowActiveTimeoutFallback
public java.lang.Long getFlowActiveTimeoutFallback()
-
setFlowActiveTimeoutFallback
public void setFlowActiveTimeoutFallback(java.lang.Long flowActiveTimeoutFallback)
-
getFlowInactiveTimeoutFallback
public java.lang.Long getFlowInactiveTimeoutFallback()
-
setFlowInactiveTimeoutFallback
public void setFlowInactiveTimeoutFallback(java.lang.Long flowInactiveTimeoutFallback)
-
getFlowSamplingIntervalFallback
public java.lang.Long getFlowSamplingIntervalFallback()
-
setFlowSamplingIntervalFallback
public void setFlowSamplingIntervalFallback(java.lang.Long flowSamplingIntervalFallback)
-
-