Class SFlowUdpParser
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.sflow.parser.SFlowUdpParser
-
- All Implemented Interfaces:
Parser,Dispatchable,UdpParser
public class SFlowUdpParser extends Object implements UdpParser, Dispatchable
-
-
Constructor Summary
Constructors Constructor Description SFlowUdpParser(String name, AsyncDispatcher<TelemetryMessage> dispatcher, DnsResolver dnsResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdumpInternalState()StringgetDescription()booleangetDnsLookupsEnabled()StringgetName()intgetThreads()booleanhandles(io.netty.buffer.ByteBuf buffer)Returns true if the implementor can handle the incoming data, otherwise false.CompletableFuture<?>parse(io.netty.buffer.ByteBuf buffer, InetSocketAddress remoteAddress, InetSocketAddress localAddress)voidsetDnsLookupsEnabled(boolean dnsLookupsEnabled)voidsetThreads(int threads)voidstart(ScheduledExecutorService executorService)voidstop()
-
-
-
Constructor Detail
-
SFlowUdpParser
public SFlowUdpParser(String name, AsyncDispatcher<TelemetryMessage> dispatcher, DnsResolver dnsResolver)
-
-
Method Detail
-
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.
-
parse
public CompletableFuture<?> parse(io.netty.buffer.ByteBuf buffer, InetSocketAddress remoteAddress, InetSocketAddress localAddress) throws Exception
-
getDnsLookupsEnabled
public boolean getDnsLookupsEnabled()
-
setDnsLookupsEnabled
public void setDnsLookupsEnabled(boolean dnsLookupsEnabled)
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceParser
-
dumpInternalState
public Object dumpInternalState()
- Specified by:
dumpInternalStatein interfaceParser
-
start
public void start(ScheduledExecutorService executorService)
-
getThreads
public int getThreads()
-
setThreads
public void setThreads(int threads)
-
-