public abstract class DataSource extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected gr.uoa.di.madgik.grs.record.field.FieldDefinition[] |
fieldDefs
The field definition of the writer
|
protected String |
filterMask
The filter mask that will be applied.
|
protected String |
input
Input value of the
DataSource |
protected Map<String,String> |
inputParameters
Input parameters of the
DataSource |
protected long |
timeout |
protected static long |
TimeoutDef
The default timeout used by the
IRecordWriter. |
protected TimeUnit |
timeUnit |
protected static TimeUnit |
TimeUnitDef
The default timeout unit used by the
RecordWriter. |
protected gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> |
writer
The writer to use
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
DataSource(String input,
Map<String,String> inputParameters)
Constructor of the abstract class.
|
| Modifier and Type | Method and Description |
|---|---|
abstract URI |
getLocator()
Abstract method used to retrieve URI locator of the gRS2
|
void |
setTimeout(long timeout) |
void |
setTimeUnit(TimeUnit timeUnit) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected String input
DataSourceprotected Map<String,String> inputParameters
DataSourceprotected gr.uoa.di.madgik.grs.writer.IRecordWriter<gr.uoa.di.madgik.grs.record.Record> writer
protected gr.uoa.di.madgik.grs.record.field.FieldDefinition[] fieldDefs
protected String filterMask
protected static final long TimeoutDef
IRecordWriter. Currently set to
60.protected static final TimeUnit TimeUnitDef
RecordWriter. The current
default unit is seconds.protected long timeout
protected TimeUnit timeUnit
public DataSource(String input, Map<String,String> inputParameters) throws Exception
input - input value of the DataSourceinputParameters - input parameters of the DataSourceException - If the initialization of the DataSource failspublic abstract URI getLocator()
public void setTimeout(long timeout)
timeout - the timeout to setpublic void setTimeUnit(TimeUnit timeUnit)
timeUnit - the timeUnit to setCopyright © 2015. All Rights Reserved.