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 classNetflow9UdpParser.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.SessionKeybuildSessionKey(java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress)java.lang.LonggetFlowActiveTimeoutFallback()java.lang.LonggetFlowInactiveTimeoutFallback()java.lang.LonggetFlowSamplingIntervalFallback()Netflow9MessageBuildergetMessageBuilder()booleanhandles(io.netty.buffer.ByteBuf buffer)Returns true if the implementor can handle the incoming data, otherwise false.protected RecordProviderparse(Session session, io.netty.buffer.ByteBuf buffer)voidsetFlowActiveTimeoutFallback(java.lang.Long flowActiveTimeoutFallback)voidsetFlowInactiveTimeoutFallback(java.lang.Long flowInactiveTimeoutFallback)voidsetFlowSamplingIntervalFallback(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:
getMessageBuilderin classParserBase
-
parse
protected RecordProvider parse(Session session, io.netty.buffer.ByteBuf buffer) throws java.lang.Exception
- Specified by:
parsein classUdpParserBase- Throws:
java.lang.Exception
-
handles
public boolean handles(io.netty.buffer.ByteBuf buffer)
Description copied from interface:DispatchableReturns true if the implementor can handle the incoming data, otherwise false.- Specified by:
handlesin 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:
buildSessionKeyin 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)
-
-