|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(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(Class clazz)
Sets the logger based upon the specified class. |
void |
setLog(org.apache.commons.logging.Log log)
Sets the logger. |
void |
setLog(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 Stage
preprocess
in class BaseStage
StageException
- an Exception thrown by an overriding implementation should
be wrapped in a StageException
Stage.preprocess()
public void process(Object obj) throws StageException
process
in interface Stage
process
in class BaseStage
obj
- 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 Stage
postprocess
in class BaseStage
StageException
- an Exception thrown by an overriding implementation should
be wrapped in a StageException
public void release()
release
in interface Stage
release
in class BaseStage
Stage.release()
public void setLog(org.apache.commons.logging.Log log)
public void setLog(String logName)
public void setLog(Class clazz)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |