public class ParserBase extends Object implements Parser
Modifier and Type | Field and Description |
---|---|
static String |
CLOCK_SKEW_EVENT_UEI |
Constructor and Description |
---|
ParserBase(Protocol protocol,
String name,
AsyncDispatcher<TelemetryMessage> dispatcher,
EventForwarder eventForwarder,
Identity identity,
DnsResolver dnsResolver,
com.codahale.metrics.MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
protected void |
detectClockSkew(long packetTimestampMs,
InetAddress remoteAddress) |
long |
getClockSkewEventRate() |
boolean |
getDnsLookupsEnabled() |
long |
getMaxClockSkew() |
String |
getName() |
int |
getThreads() |
static ByteBuffer |
serialize(Protocol protocol,
Iterable<Value<?>> record) |
void |
setClockSkewEventRate(long clockSkewEventRate) |
void |
setDnsLookupsEnabled(boolean dnsLookupsEnabled) |
void |
setMaxClockSkew(long maxClockSkew) |
void |
setThreads(int threads) |
void |
start(ScheduledExecutorService executorService) |
void |
stop() |
protected CompletableFuture<?> |
transmit(RecordProvider packet,
InetSocketAddress remoteAddress) |
public static final String CLOCK_SKEW_EVENT_UEI
public ParserBase(Protocol protocol, String name, AsyncDispatcher<TelemetryMessage> dispatcher, EventForwarder eventForwarder, Identity identity, DnsResolver dnsResolver, com.codahale.metrics.MetricRegistry metricRegistry)
public void start(ScheduledExecutorService executorService)
public void setMaxClockSkew(long maxClockSkew)
public long getMaxClockSkew()
public long getClockSkewEventRate()
public void setClockSkewEventRate(long clockSkewEventRate)
public boolean getDnsLookupsEnabled()
public void setDnsLookupsEnabled(boolean dnsLookupsEnabled)
public int getThreads()
public void setThreads(int threads)
protected CompletableFuture<?> transmit(RecordProvider packet, InetSocketAddress remoteAddress)
public static ByteBuffer serialize(Protocol protocol, Iterable<Value<?>> record)
protected void detectClockSkew(long packetTimestampMs, InetAddress remoteAddress)
Copyright © 2021. All rights reserved.