gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasink
Class DataSink

java.lang.Object
  extended by java.lang.Thread
      extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.datasink.DataSink
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
FTPDataSink, JDBCDataSink, PathDataSink

public abstract class DataSink
extends Thread

The DataSink abstract class is extended by all classes that will be used as a data sink.

Author:
john.gerbesiotis - DI NKUA

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.RecordDefinition[] fieldDefs
          The field definition of the reader
protected  URI inLocator
          The locator of the input
protected  String output
          Output value of the DataSink
protected  Map<String,String> outputParameters
          Output parameters of the DataSink
protected  gr.uoa.di.madgik.searchlibrary.operatorlibrary.stats.StatsContainer stats
          Statistics
protected  long timeout
           
protected  TimeUnit timeUnit
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DataSink(URI inLocator, String output, Map<String,String> outputParameters, gr.uoa.di.madgik.searchlibrary.operatorlibrary.stats.StatsContainer stats)
          Constructor of the abstract class.
 
Method Summary
abstract  String getOutput()
          Abstract method used to retrieve output
 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

output

protected String output
Output value of the DataSink


outputParameters

protected Map<String,String> outputParameters
Output parameters of the DataSink


inLocator

protected URI inLocator
The locator of the input


fieldDefs

protected gr.uoa.di.madgik.grs.record.RecordDefinition[] fieldDefs
The field definition of the reader


timeout

protected long timeout

timeUnit

protected TimeUnit timeUnit

stats

protected gr.uoa.di.madgik.searchlibrary.operatorlibrary.stats.StatsContainer stats
Statistics

Constructor Detail

DataSink

public DataSink(URI inLocator,
                String output,
                Map<String,String> outputParameters,
                gr.uoa.di.madgik.searchlibrary.operatorlibrary.stats.StatsContainer stats)
         throws Exception
Constructor of the abstract class. Used for initialization.

Parameters:
inLocator - input locator of the consuming result set
output - output value of the DataSink
outputParameters - output parameters of the DataSink
stats - statistics container
Throws:
Exception - If the initialization of the DataSink fails
Method Detail

getOutput

public abstract String getOutput()
Abstract method used to retrieve output

Returns:
An output description

setTimeout

public void setTimeout(long timeout)
Parameters:
timeout - the timeout to set

setTimeUnit

public void setTimeUnit(TimeUnit timeUnit)
Parameters:
timeUnit - the timeUnit to set


Copyright © 2013. All Rights Reserved.