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(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(InetSocketAddress remoteAddress, InetSocketAddress localAddress)LonggetFlowActiveTimeoutFallback()LonggetFlowInactiveTimeoutFallback()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(Long flowActiveTimeoutFallback)voidsetFlowInactiveTimeoutFallback(Long flowInactiveTimeoutFallback)voidsetFlowSamplingIntervalFallback(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(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 Exception
- Specified by:
parsein classUdpParserBase- Throws:
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(InetSocketAddress remoteAddress, InetSocketAddress localAddress)
- Specified by:
buildSessionKeyin classUdpParserBase
-
getFlowActiveTimeoutFallback
public Long getFlowActiveTimeoutFallback()
-
setFlowActiveTimeoutFallback
public void setFlowActiveTimeoutFallback(Long flowActiveTimeoutFallback)
-
getFlowInactiveTimeoutFallback
public Long getFlowInactiveTimeoutFallback()
-
setFlowInactiveTimeoutFallback
public void setFlowInactiveTimeoutFallback(Long flowInactiveTimeoutFallback)
-
getFlowSamplingIntervalFallback
public Long getFlowSamplingIntervalFallback()
-
setFlowSamplingIntervalFallback
public void setFlowSamplingIntervalFallback(Long flowSamplingIntervalFallback)
-
-