|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
nl.astron.lofar.odtb.mom2otdbadapter.otdblistener.OTDBListener
public class OTDBListener
Polls if there are changes in the OTDB database.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private org.apache.commons.logging.Log |
log
|
private int |
milliseconds
|
private Queue |
queue
|
private OTDBRepository |
repository
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
OTDBListener(Queue queue,
int milliseconds,
OTDBRepository repository)
Constructor |
Method Summary | |
---|---|
protected Task |
convertToTask(LofarObservation lofarObservation)
Converts a observation to a task using the xml generation |
void |
run()
Starts the OTDBListener and retrieves changes with an interval |
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, 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 |
---|
private org.apache.commons.logging.Log log
private int milliseconds
private Queue queue
private OTDBRepository repository
Constructor Detail |
---|
public OTDBListener(Queue queue, int milliseconds, OTDBRepository repository)
queue
- Queue where this listener add the tasksmilliseconds
- interval (in milliseconds) between the retrieval of the changesrepository
- OTDBRepository where this listener retrieves the changesMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected Task convertToTask(LofarObservation lofarObservation)
lofarObservation
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |