|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.knowgate.scheduler.WorkerThread
public class WorkerThread
Scheduled Job Worker Thread
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
WorkerThread(WorkerThreadPool oThreadPool,
AtomConsumer oAtomConsumer)
Create WorkerThread |
|
| Method Summary | |
|---|---|
Atom |
activeAtom()
|
Job |
activeJob()
|
int |
getDelayMS()
|
void |
getDelayMS(int iMiliseconds)
|
java.lang.String |
getProperty(java.lang.String sKey)
Get Environment property from hipergate.cnf |
long |
getRunningTimeMS()
|
void |
halt()
Halt thread execution commiting all operations in course before stopping If a thread is dead-locked by any reason halting it will not cause any effect. |
java.lang.String |
lastError()
|
void |
registerCallback(WorkerThreadCallback oNewCallback)
Register a thread callback object |
void |
run()
Process atoms obtained throught AtomConsumer Each worker WorkerThread will enter an endless loop until the queue is empty or an interrupt signal is received. |
void |
setConsumer(AtomConsumer oAtomConsumer)
|
boolean |
unregisterCallback(java.lang.String sCallbackName)
Unregister a thread callback object |
| 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 |
| Constructor Detail |
|---|
public WorkerThread(WorkerThreadPool oThreadPool,
AtomConsumer oAtomConsumer)
oThreadPool - oAtomConsumer - | Method Detail |
|---|
public int getDelayMS()
public void getDelayMS(int iMiliseconds)
public long getRunningTimeMS()
public void setConsumer(AtomConsumer oAtomConsumer)
public java.lang.String getProperty(java.lang.String sKey)
sKey - Property Name
public Atom activeAtom()
public Job activeJob()
public java.lang.String lastError()
public void registerCallback(WorkerThreadCallback oNewCallback)
throws java.lang.IllegalArgumentException
oNewCallback - WorkerThreadCallback subclass instance
java.lang.IllegalArgumentException - If a callback with same name has oNewCallback was already registeredpublic boolean unregisterCallback(java.lang.String sCallbackName)
sCallbackName - Name of callback to be unregistered
public void run()
Process atoms obtained throught AtomConsumer
Each worker WorkerThread will enter an endless loop until the queue is empty or an interrupt signal is received.
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void halt()
Halt thread execution commiting all operations in course before stopping
If a thread is dead-locked by any reason halting it will not cause any effect.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||