|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--lima.distribution.LocalProcessor
This implements a WorkUnitProcessor in the local JVM. Use me for testing. This class can be used to test the distribution of the algorithm without neededing a distribution system. It runs the wus in a thread on the current JVM.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
LocalProcessor()
|
|
| Method Summary | |
void |
process(lima.distribution.WorkUnitSink sink,
lima.distribution.WorkUnitSource source)
Take WorkUnits from source, process them and flush them to sink. |
void |
run()
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 LocalProcessor()
| Method Detail |
public void process(lima.distribution.WorkUnitSink sink,
lima.distribution.WorkUnitSource source)
throws java.rmi.RemoteException
WorkUnitProcessor
process in interface WorkUnitProcessorsource - - Provides WorkUnitssink - - Callback to flush finished workunits.
java.rmi.RemoteExceptionWorkUnitProcessor.process(lima.distribution.WorkUnitSink, lima.distribution.WorkUnitSource)public void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||