|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.parc.AbstractPipeline
Abstract Pipeline class. Implements the basics. The process() method needs to be implemented by the concrete class.
Constructor Summary | |
AbstractPipeline()
Constructor. |
Method Summary | |
void |
addFilter(Filter f)
Add a new filter to the set. |
void |
addFilter(Filter f,
Channel c)
Add a new filter to the set. |
Channel |
getErrorChannel()
Return the error channel for the pipeline. |
ExceptionHandler |
getExceptionHandler()
Returns the handler. |
protected java.util.List |
getFilters()
Return the filters. |
Channel |
getInputChannel()
Return the inbound side of this pipeline. |
Channel |
getOutputChannel()
Return the outbound side of this pipeline. |
void |
init(Channel ch)
Set the default channel |
protected Logger |
log()
|
void |
setExceptionHandler(ExceptionHandler handler)
Return the error channel for the pipeline. |
protected void |
stopFilters(java.lang.ThreadGroup root)
Useful in clean shutdown when an error condition occured. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.rhi.architecture.parc.Pipeline |
flush, process |
Constructor Detail |
public AbstractPipeline()
Method Detail |
public void init(Channel ch) throws InitializationException
init
in interface Pipeline
ch
-
InitializationException
public void setExceptionHandler(ExceptionHandler handler)
setExceptionHandler
in interface Pipeline
handler
- - the exception handler to be used when reporting
exceptions asynchronously.public ExceptionHandler getExceptionHandler()
public Channel getInputChannel()
getInputChannel
in interface Pipeline
public Channel getOutputChannel()
getOutputChannel
in interface Pipeline
public Channel getErrorChannel()
getErrorChannel
in interface Pipeline
protected java.util.List getFilters()
public void addFilter(Filter f)
addFilter
in interface Pipeline
f
- the Filter to be added to collectionpublic void addFilter(Filter f, Channel c)
Channel
parameter can be provided as
the preferred Channel implementation for the outbound side of
this filter.
addFilter
in interface Pipeline
f
- The Filter to be added to collectionc
- The Channel to be used on outbound side of
this filter.protected void stopFilters(java.lang.ThreadGroup root)
root
- - ThreadGroup rootprotected Logger log()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |