Package org.graylog2.lookup.adapters
Class DnsLookupDataAdapter
java.lang.Object
com.google.common.util.concurrent.AbstractIdleService
org.graylog2.plugin.lookup.LookupDataAdapter
org.graylog2.lookup.adapters.DnsLookupDataAdapter
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfaceNested classes/interfaces inherited from class org.graylog2.plugin.lookup.LookupDataAdapter
LookupDataAdapter.Factory2<T extends LookupDataAdapter>Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service
com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDnsLookupDataAdapter(DataAdapterDto dto, com.codahale.metrics.MetricRegistry metricRegistry, DnsLookupAdapterConfiguration adapterConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected LookupResultprotected voiddoRefresh(LookupCachePurge cachePurge) Not needed for the DNS Lookup adaptor.protected voiddoStart()protected voiddoStop()org.joda.time.DurationNot needed for the DNS Lookup adaptor.voidMethods inherited from class org.graylog2.plugin.lookup.LookupDataAdapter
addStringList, assignTtl, clearError, clearKey, get, getConfig, getEmptyResult, getError, getErrorResult, id, name, refresh, removeStringList, setError, setStringList, setStringListWithTtl, setValue, setValueWithTtl, shutDown, startUpMethods inherited from class com.google.common.util.concurrent.AbstractIdleService
addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
DnsLookupDataAdapter
@Inject public DnsLookupDataAdapter(DataAdapterDto dto, com.codahale.metrics.MetricRegistry metricRegistry, DnsLookupAdapterConfiguration adapterConfiguration)
-
-
Method Details
-
doStart
protected void doStart()- Specified by:
doStartin classLookupDataAdapter
-
doStop
protected void doStop()- Specified by:
doStopin classLookupDataAdapter
-
refreshInterval
public org.joda.time.Duration refreshInterval()Not needed for the DNS Lookup adaptor.- Specified by:
refreshIntervalin classLookupDataAdapter- Returns:
- the refresh interval
-
doRefresh
Not needed for the DNS Lookup adaptor.- Specified by:
doRefreshin classLookupDataAdapter
-
doGet
- Specified by:
doGetin classLookupDataAdapter
-
set
- Specified by:
setin classLookupDataAdapter
-