Class BmpParser
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.bmp.parser.BmpParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opennms.netmgt.telemetry.listeners.TcpParser
TcpParser.Handler
-
-
Field Summary
Fields Modifier and Type Field Description static long
HEARTBEAT_INTERVAL
static org.slf4j.Logger
LOG
static com.swrve.ratelimitedlogger.RateLimitedLog
RATE_LIMITED_LOG
-
Constructor Summary
Constructors Constructor Description BmpParser(java.lang.String name, AsyncDispatcher<TelemetryMessage> dispatcher, DnsResolver dnsResolver, io.github.resilience4j.bulkhead.Bulkhead bulkhead, com.codahale.metrics.MetricRegistry metricRegistry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TcpParser.Handler
accept(java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress)
static Transport.IpAddress
address(java.net.InetAddress address)
java.lang.Object
dumpInternalState()
java.lang.String
getDescription()
java.lang.String
getName()
boolean
isDnsLookupsEnabled()
void
setDnsLookupsEnabled(boolean dnsLookupsEnabled)
void
start(java.util.concurrent.ScheduledExecutorService executorService)
void
stop()
-
-
-
Field Detail
-
LOG
public static final org.slf4j.Logger LOG
-
RATE_LIMITED_LOG
public static final com.swrve.ratelimitedlogger.RateLimitedLog RATE_LIMITED_LOG
-
HEARTBEAT_INTERVAL
public static final long HEARTBEAT_INTERVAL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BmpParser
public BmpParser(java.lang.String name, AsyncDispatcher<TelemetryMessage> dispatcher, DnsResolver dnsResolver, io.github.resilience4j.bulkhead.Bulkhead bulkhead, com.codahale.metrics.MetricRegistry metricRegistry)
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceParser
-
start
public void start(java.util.concurrent.ScheduledExecutorService executorService)
-
accept
public TcpParser.Handler accept(java.net.InetSocketAddress remoteAddress, java.net.InetSocketAddress localAddress)
-
dumpInternalState
public java.lang.Object dumpInternalState()
- Specified by:
dumpInternalState
in interfaceParser
-
isDnsLookupsEnabled
public boolean isDnsLookupsEnabled()
-
setDnsLookupsEnabled
public void setDnsLookupsEnabled(boolean dnsLookupsEnabled)
-
address
public static Transport.IpAddress address(java.net.InetAddress address)
-
-