public class HTTPJSONPathDataAdapter extends LookupDataAdapter
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTPJSONPathDataAdapter.Config |
static class |
HTTPJSONPathDataAdapter.Descriptor |
static interface |
HTTPJSONPathDataAdapter.Factory |
| Modifier | Constructor and Description |
|---|---|
protected |
HTTPJSONPathDataAdapter(LookupDataAdapterConfiguration config,
String id,
String name,
com.floreysoft.jmte.Engine templateEngine,
okhttp3.OkHttpClient httpClient,
UrlWhitelistService urlWhitelistService,
UrlWhitelistNotificationService urlWhitelistNotificationService,
com.codahale.metrics.MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected LookupResult |
doGet(Object key) |
protected void |
doRefresh(LookupCachePurge cachePurge) |
protected void |
doStart() |
protected void |
doStop() |
org.joda.time.Duration |
refreshInterval()
Returns the refresh interval for this data adapter.
|
void |
set(Object key,
Object value) |
clearError, get, getConfig, getError, id, name, refresh, setError, shutDown, startUppublic static final String NAME
@Inject protected HTTPJSONPathDataAdapter(LookupDataAdapterConfiguration config, String id, String name, com.floreysoft.jmte.Engine templateEngine, okhttp3.OkHttpClient httpClient, UrlWhitelistService urlWhitelistService, UrlWhitelistNotificationService urlWhitelistNotificationService, com.codahale.metrics.MetricRegistry metricRegistry)
protected void doStart()
throws Exception
doStart in class LookupDataAdapterExceptionprotected void doStop()
throws Exception
doStop in class LookupDataAdapterExceptionpublic org.joda.time.Duration refreshInterval()
LookupDataAdapterDuration.ZERO if refresh should be disabled.refreshInterval in class LookupDataAdapterprotected void doRefresh(LookupCachePurge cachePurge) throws Exception
doRefresh in class LookupDataAdapterExceptionprotected LookupResult doGet(Object key)
doGet in class LookupDataAdapterpublic void set(Object key, Object value)
set in class LookupDataAdapterCopyright © 2012–2020 Graylog, Inc.. All rights reserved.