public class DataRequestThread
extends java.lang.Thread
Constructor and Description |
---|
DataRequestThread()
Creates a new instance of DataRequestThread
|
Modifier and Type | Method and Description |
---|---|
void |
cancelCurrentRequest() |
void |
request(DataSetDescriptor dsd,
Datum start,
Datum end,
Datum resolution,
DataRequestor requestor,
ProgressMonitor monitor)
Begins a data reqest operation that will be executed
in a separate thread and pass the resulting DataSet to the
org.das2.event.DataRequestListener#finished(org.das2.event.DataRequestEvent)
finished() method of the
DataRequestor
specified. |
void |
requestAndWait(DataSetDescriptor dsd,
java.lang.Object params,
Datum start,
Datum end,
Datum resolution,
DataRequestor requestor,
ProgressMonitor monitor)
Begins a data reqest operation that will be executed
in a separate thread and pass the resulting DataSet to the
org.das2.event.DataRequestListener#finished(org.das2.event.DataRequestEvent)
finished() method of the
DataRequestor
specified. |
void |
run() |
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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public DataRequestThread()
public void request(DataSetDescriptor dsd, Datum start, Datum end, Datum resolution, DataRequestor requestor, ProgressMonitor monitor) throws java.lang.InterruptedException
DataRequestor
specified.dsd
- the DataSetDescriptor
used to obtain
the DataSet
start
- the start of the requested time intervalend
- the end of the requested time intervalresolution
- the requested resolution of the data setrequestor
- DataRequestor
that is notified
when the data loading operation is complete.java.lang.InterruptedException
public void requestAndWait(DataSetDescriptor dsd, java.lang.Object params, Datum start, Datum end, Datum resolution, DataRequestor requestor, ProgressMonitor monitor) throws java.lang.InterruptedException
DataRequestor
specified.
This method does not return until after the data loading is complete
or the request had been canceled.dsd
- the DataSetDescriptor
used to obtain
the DataSet
params
- extra parameters passed to the
DataSetDescriptor#getDataSet(org.das2.util.Datum,org.das2.util.Datum,org.das2.util.Datum,org.das2.util.monitor.ProgressMonitor)
getDataSet() method. (TODO: these are ignored)start
- the start of the requested time intervalend
- the end of the requested time intervalresolution
- the requested resolution of the data setrequestor
- DataRequestor
that is notified
when the data loading operation is complete.java.lang.InterruptedException
public void cancelCurrentRequest() throws java.lang.InterruptedException
java.lang.InterruptedException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread