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>| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOWED_PATH_ERROR
If the AllowedAuxiliaryPathChecker is enabled (one or more paths provided to the allowed_auxiliary_paths server
configuration property), then this error path will also be triggered for cases where the file does not exist.
|
static String |
NAME |
| Constructor and Description |
|---|
CSVFileDataAdapter(String id,
String name,
LookupDataAdapterConfiguration config,
com.codahale.metrics.MetricRegistry metricRegistry,
AllowedAuxiliaryPathChecker pathChecker) |
| 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, startUpaddListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toStringpublic static final String NAME
public static final String ALLOWED_PATH_ERROR
@Inject public CSVFileDataAdapter(String id, String name, LookupDataAdapterConfiguration config, com.codahale.metrics.MetricRegistry metricRegistry, AllowedAuxiliaryPathChecker pathChecker)
public void doStart()
throws Exception
doStart 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 LookupDataAdapterExceptionpublic void doStop()
throws Exception
doStop in class LookupDataAdapterExceptionpublic LookupResult doGet(Object key)
doGet in class LookupDataAdapterpublic void set(Object key, Object value)
set in class LookupDataAdapterCopyright © 2012–2021 Graylog, Inc.. All rights reserved.