Package org.graylog2.lookup.adapters
Class HTTPJSONPathDataAdapter
java.lang.Object
com.google.common.util.concurrent.AbstractIdleService
org.graylog2.plugin.lookup.LookupDataAdapter
org.graylog2.lookup.adapters.HTTPJSONPathDataAdapter
- All Implemented Interfaces:
com.google.common.util.concurrent.Service
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
Nested 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
-
Constructor Summary
ModifierConstructorDescriptionprotected
HTTPJSONPathDataAdapter
(DataAdapterDto dto, com.floreysoft.jmte.Engine templateEngine, okhttp3.OkHttpClient httpClient, UrlWhitelistService urlWhitelistService, UrlWhitelistNotificationService urlWhitelistNotificationService, com.codahale.metrics.MetricRegistry metricRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected LookupResult
protected void
doRefresh
(LookupCachePurge cachePurge) protected void
doStart()
protected void
doStop()
org.joda.time.Duration
Returns the refresh interval for this data adapter.void
Methods inherited from class org.graylog2.plugin.lookup.LookupDataAdapter
addStringList, clearError, clearKey, get, getConfig, getEmptyResult, getError, getErrorResult, id, name, refresh, removeStringList, setError, setStringList, setValue, shutDown, startUp
Methods 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
-
HTTPJSONPathDataAdapter
@Inject protected HTTPJSONPathDataAdapter(DataAdapterDto dto, com.floreysoft.jmte.Engine templateEngine, okhttp3.OkHttpClient httpClient, UrlWhitelistService urlWhitelistService, UrlWhitelistNotificationService urlWhitelistNotificationService, com.codahale.metrics.MetricRegistry metricRegistry)
-
-
Method Details
-
doStart
- Specified by:
doStart
in classLookupDataAdapter
- Throws:
Exception
-
doStop
- Specified by:
doStop
in classLookupDataAdapter
- Throws:
Exception
-
refreshInterval
public org.joda.time.Duration refreshInterval()Description copied from class:LookupDataAdapter
Returns the refresh interval for this data adapter. UseDuration.ZERO
if refresh should be disabled.- Specified by:
refreshInterval
in classLookupDataAdapter
- Returns:
- the refresh interval
-
doRefresh
- Specified by:
doRefresh
in classLookupDataAdapter
- Throws:
Exception
-
doGet
- Specified by:
doGet
in classLookupDataAdapter
-
set
- Specified by:
set
in classLookupDataAdapter
-