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 Object
dumpInternalState()
String
getDescription()
boolean
getDnsLookupsEnabled()
String
getName()
int
getThreads()
boolean
handles(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)
void
setDnsLookupsEnabled(boolean dnsLookupsEnabled)
void
setThreads(int threads)
void
start(ScheduledExecutorService executorService)
void
stop()
-
-
-
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: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 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:
getDescription
in interfaceParser
-
dumpInternalState
public Object dumpInternalState()
- Specified by:
dumpInternalState
in interfaceParser
-
start
public void start(ScheduledExecutorService executorService)
-
getThreads
public int getThreads()
-
setThreads
public void setThreads(int threads)
-
-