public abstract class ParserBase extends Object implements Parser
Modifier and Type | Field and Description |
---|---|
static String |
CLOCK_SKEW_EVENT_UEI |
static String |
ILLEGAL_FLOW_EVENT_UEI |
Constructor and Description |
---|
ParserBase(Protocol protocol,
String name,
MessageBuilder messageBuilder,
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 |
getIllegalFlowEventRate() |
long |
getMaxClockSkew() |
String |
getName() |
int |
getThreads() |
void |
setClockSkewEventRate(long clockSkewEventRate) |
void |
setDnsLookupsEnabled(boolean dnsLookupsEnabled) |
void |
setIllegalFlowEventRate(long illegalFlowEventRate) |
void |
setMaxClockSkew(long maxClockSkew) |
void |
setThreads(int threads) |
void |
start(ScheduledExecutorService executorService) |
void |
stop() |
protected CompletableFuture<?> |
transmit(RecordProvider packet,
Session session,
InetSocketAddress remoteAddress) |
public static final String CLOCK_SKEW_EVENT_UEI
public static final String ILLEGAL_FLOW_EVENT_UEI
public ParserBase(Protocol protocol, String name, MessageBuilder messageBuilder, 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 void setIllegalFlowEventRate(long illegalFlowEventRate)
public long getIllegalFlowEventRate()
public boolean getDnsLookupsEnabled()
public void setDnsLookupsEnabled(boolean dnsLookupsEnabled)
public int getThreads()
public void setThreads(int threads)
protected CompletableFuture<?> transmit(RecordProvider packet, Session session, InetSocketAddress remoteAddress)
protected void detectClockSkew(long packetTimestampMs, InetAddress remoteAddress)
Copyright © 2021. All rights reserved.