|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasource.DataSource
public abstract class DataSource
The DataSource abstract class is extended by all classes that will be used as a data source.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
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 |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
DataSource(String input,
Map<String,String> inputParameters)
Constructor of the abstract class. |
|
| Method Summary | |
|---|---|
abstract URI |
getLocator()
Abstract method used to retrieve URI locator of the gRS2 |
void |
setTimeout(long timeout)
|
void |
setTimeUnit(TimeUnit timeUnit)
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, 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, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String input
DataSource
protected Map<String,String> inputParameters
DataSource
protected 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
| Constructor Detail |
|---|
public DataSource(String input,
Map<String,String> inputParameters)
throws Exception
input - input value of the DataSourceinputParameters - input parameters of the DataSource
Exception - If the initialization of the DataSource fails| Method Detail |
|---|
public abstract URI getLocator()
public void setTimeout(long timeout)
timeout - the timeout to setpublic void setTimeUnit(TimeUnit timeUnit)
timeUnit - the timeUnit to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||