|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjconch.pipeline.PipeStage
public abstract class PipeStage
The base interface for a stage in the pipeline.
| Constructor Summary | |
|---|---|
protected |
PipeStage(ThreadingModel threading)
Constructor. |
| Method Summary | |
|---|---|
abstract void |
execute()
Executes one round of processing for this pipeline stage. |
ThreadingModel |
getThreadingModel()
Gets the threading model of the instance. |
abstract boolean |
isFinished()
If the pipeline is not supposed to handle any more elements, either because of an error or because a producer is exhausted. |
boolean |
isStarted()
Whether this pipline stage has been started or not. |
abstract void |
logMessage(java.lang.String msg,
java.lang.Exception e)
Called when an exception occurs in execution. |
void |
start()
Starts the pipeline within its threading model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected PipeStage(ThreadingModel threading)
threading - The threading approach.
org.apache.commons.lang.NullArgumentException - If the argument is null| Method Detail |
|---|
public void start()
start in interface PipeElementpublic boolean isStarted()
public abstract void execute()
java.lang.IllegalStateException - If there is nothing left to execute.public abstract boolean isFinished()
public abstract void logMessage(java.lang.String msg,
java.lang.Exception e)
msg - The message describing the problem (may be null)e - The exception which is the problem.public ThreadingModel getThreadingModel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||