Class SFlowUdpParser
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.sflow.parser.SFlowUdpParser
-
- All Implemented Interfaces:
Parser
,Dispatchable
,UdpParser
public class SFlowUdpParser extends java.lang.Object implements UdpParser, Dispatchable
-
-
Constructor Summary
Constructors Constructor Description SFlowUdpParser(java.lang.String name, AsyncDispatcher<TelemetryMessage> dispatcher, DnsResolver dnsResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getDnsLookupsEnabled()
java.lang.String
getName()
int
getThreads()
boolean
handles(io.netty.buffer.ByteBuf buffer)
Returns true if the implementor can handle the incoming data, otherwise false.java.util.concurrent.CompletableFuture<?>
parse(io.netty.buffer.ByteBuf buffer, java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress)
void
setDnsLookupsEnabled(boolean dnsLookupsEnabled)
void
setThreads(int threads)
void
start(java.util.concurrent.ScheduledExecutorService executorService)
void
stop()
-
-
-
Constructor Detail
-
SFlowUdpParser
public SFlowUdpParser(java.lang.String name, AsyncDispatcher<TelemetryMessage> dispatcher, DnsResolver dnsResolver)
-
-
Method Detail
-
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.
-
parse
public java.util.concurrent.CompletableFuture<?> parse(io.netty.buffer.ByteBuf buffer, java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress) throws java.lang.Exception
-
getDnsLookupsEnabled
public boolean getDnsLookupsEnabled()
-
setDnsLookupsEnabled
public void setDnsLookupsEnabled(boolean dnsLookupsEnabled)
-
start
public void start(java.util.concurrent.ScheduledExecutorService executorService)
-
getThreads
public int getThreads()
-
setThreads
public void setThreads(int threads)
-
-