|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.pipeline.stage.BaseStage
org.apache.commons.pipeline.stage.LogStage
public class LogStage
A do-nothing implementation of Stage that simply logs the state of processing.
and each object seen by its process(Object) method.
Useful for debugging purposes.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.pipeline.stage.BaseStage |
|---|
context |
| Constructor Summary | |
|---|---|
LogStage()
Creates a new LogStage. |
|
| Method Summary | |
|---|---|
void |
postprocess()
Logs tht point at which postprocessing runs |
void |
preprocess()
Logs the point at which preprocessing runs. |
void |
process(java.lang.Object obj)
Logs the current state of an object on the queue and passes the object unchanged to the next stage in the pipeline. |
void |
release()
Logs the point at which stage resources are released. |
void |
setLog(java.lang.Class clazz)
Sets the logger based upon the specified class. |
void |
setLog(org.apache.commons.logging.Log log)
Sets the logger. |
void |
setLog(java.lang.String logName)
Sets the logger based upon the log name. |
| Methods inherited from class org.apache.commons.pipeline.stage.BaseStage |
|---|
emit, emit, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogStage()
| Method Detail |
|---|
public void preprocess()
throws StageException
preprocess in interface Stagepreprocess in class BaseStageStageException - an Exception thrown by an overriding implementation should
be wrapped in a StageExceptionStage.preprocess()
public void process(java.lang.Object obj)
throws StageException
process in interface Stageprocess in class BaseStageobj - Object to be passed to downstream pipeline.
StageException - an Exception thrown by an overriding implementation should
be wrapped in a StageException
public void postprocess()
throws StageException
postprocess in interface Stagepostprocess in class BaseStageStageException - an Exception thrown by an overriding implementation should
be wrapped in a StageExceptionpublic void release()
release in interface Stagerelease in class BaseStageStage.release()public void setLog(org.apache.commons.logging.Log log)
public void setLog(java.lang.String logName)
public void setLog(java.lang.Class clazz)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||