Class GreyNoiseQuickIPDataAdapter
java.lang.Object
com.google.common.util.concurrent.AbstractIdleService
org.graylog2.plugin.lookup.LookupDataAdapter
org.graylog.integrations.dataadapters.GreyNoiseQuickIPDataAdapter
- 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
ConstructorsConstructorDescriptionGreyNoiseQuickIPDataAdapter(String id, String name, LookupDataAdapterConfiguration config, com.codahale.metrics.MetricRegistry metricRegistry, EncryptedValueService encryptedValueService, okhttp3.OkHttpClient okHttpClient) -
Method Summary
Modifier and TypeMethodDescriptionprotected LookupResultprotected voiddoRefresh(LookupCachePurge cachePurge) voiddoStart()voiddoStop()org.joda.time.DurationReturns the refresh interval for this data adapter.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
-
GreyNoiseQuickIPDataAdapter
@Inject public GreyNoiseQuickIPDataAdapter(String id, String name, LookupDataAdapterConfiguration config, com.codahale.metrics.MetricRegistry metricRegistry, EncryptedValueService encryptedValueService, okhttp3.OkHttpClient okHttpClient)
-
-
Method Details
-
doStart
- Specified by:
doStartin classLookupDataAdapter- Throws:
Exception
-
doStop
- Specified by:
doStopin classLookupDataAdapter- Throws:
Exception
-
refreshInterval
public org.joda.time.Duration refreshInterval()Description copied from class:LookupDataAdapterReturns the refresh interval for this data adapter. UseDuration.ZEROif refresh should be disabled.- Specified by:
refreshIntervalin classLookupDataAdapter- Returns:
- the refresh interval
-
doRefresh
- Specified by:
doRefreshin classLookupDataAdapter- Throws:
Exception
-
doGet
- Specified by:
doGetin classLookupDataAdapter
-
set
- Specified by:
setin classLookupDataAdapter
-