MATES 3.0-rc2

org.mates.util
Class BatchProcessor.BatchProcessorThread

java.lang.Object
  extended byorg.mates.util.BatchProcessor.BatchProcessorThread
All Implemented Interfaces:
Processor, java.lang.Runnable
Enclosing class:
BatchProcessor

protected class BatchProcessor.BatchProcessorThread
extends java.lang.Object
implements java.lang.Runnable, Processor

Manages a single thread that is executing a batch process.

Author:
Evan Sultanik

Constructor Summary
BatchProcessor.BatchProcessorThread()
          Default constructor.
 
Method Summary
 void blockUntilDone()
          Blocks execution of the calling thread until this class' processing is complete.
 Bundle getResult()
          Returns the resulting bundle list from the processing.
 void process(Bundle bundle)
          Instructs the thread to start its processing.
 void run()
          The kernel of this thread, this will sleep until woken up by a call to process(Bundle) at which point the bundle will be processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchProcessor.BatchProcessorThread

public BatchProcessor.BatchProcessorThread()
Default constructor.

Method Detail

process

public void process(Bundle bundle)
Instructs the thread to start its processing.

Specified by:
process in interface Processor

run

public void run()
The kernel of this thread, this will sleep until woken up by a call to process(Bundle) at which point the bundle will be processed. Upon completion of the processing, this function will once again "hibernate."

Specified by:
run in interface java.lang.Runnable

getResult

public Bundle getResult()
Returns the resulting bundle list from the processing.


blockUntilDone

public void blockUntilDone()
Blocks execution of the calling thread until this class' processing is complete. If the processing is already complete at the time of this call the function will immediately return.


MATES 3.0-rc2

Submit a bug or request a feature
http://mates.sourceforge.net/

Copyright 2004 Evan Sultanik