public class CSVFileDataAdapter extends LookupDataAdapter
Modifier and Type | Class and Description |
---|---|
static class |
CSVFileDataAdapter.Config |
static class |
CSVFileDataAdapter.Descriptor |
static interface |
CSVFileDataAdapter.Factory |
LookupDataAdapter.Factory2<T extends LookupDataAdapter>
Constructor and Description |
---|
CSVFileDataAdapter(String id,
String name,
LookupDataAdapterConfiguration config,
com.codahale.metrics.MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
LookupResult |
doGet(Object key) |
protected void |
doRefresh(LookupCachePurge cachePurge) |
void |
doStart() |
void |
doStop() |
org.joda.time.Duration |
refreshInterval()
Returns the refresh interval for this data adapter.
|
void |
set(Object key,
Object value) |
addStringList, clearError, clearKey, get, getConfig, getEmptyResult, getError, getErrorResult, id, name, refresh, removeStringList, setError, setStringList, setValue, shutDown, startUp
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString
public static final String NAME
@Inject public CSVFileDataAdapter(String id, String name, LookupDataAdapterConfiguration config, com.codahale.metrics.MetricRegistry metricRegistry)
public void doStart() throws Exception
doStart
in class LookupDataAdapter
Exception
public org.joda.time.Duration refreshInterval()
LookupDataAdapter
Duration.ZERO
if refresh should be disabled.refreshInterval
in class LookupDataAdapter
protected void doRefresh(LookupCachePurge cachePurge) throws Exception
doRefresh
in class LookupDataAdapter
Exception
public void doStop() throws Exception
doStop
in class LookupDataAdapter
Exception
public LookupResult doGet(Object key)
doGet
in class LookupDataAdapter
public void set(Object key, Object value)
set
in class LookupDataAdapter
Copyright © 2012–2020 Graylog, Inc.. All rights reserved.