public class PipelineImpl extends LinkedList<IPipe> implements IPipeline
| Modifier and Type | Field and Description |
|---|---|
protected List<IPipeListener> |
listeners
List of listeners.
|
modCount| Constructor and Description |
|---|
PipelineImpl()
Superclass constructor.
|
PipelineImpl(Collection<? extends IPipe> c)
Superclass constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPipelineListener(IPipeListener listener)
Add a listener.
|
boolean |
check(IChannel channel)
Check if a pipe must perform something on channel.
|
protected void |
fireAfterCheck(IChannel channel,
IPipe source)
Fire event on channel.
|
protected void |
fireAfterPerform(IChannel channel,
IPipe source)
Fire event on channel.
|
protected void |
fireBeforeCheck(IChannel channel,
IPipe source)
Fire event on channel.
|
protected void |
fireBeforePerform(IChannel channel,
IPipe source)
Fire event on channel.
|
IChannel |
process(IChannel channel)
Perform some transformation over the channel.
|
void |
removePipelineListener(IPipeListener listener)
Remove a listener.
|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitprotected List<IPipeListener> listeners
public PipelineImpl()
public PipelineImpl(Collection<? extends IPipe> c)
c - A set of pipes.public boolean check(IChannel channel) throws AbortException
IPipecheck in interface IPipechannel - The information channel.AbortException - If the channel is corrupted.public IChannel process(IChannel channel) throws AbortException, PipelineException
IPipeprocess in interface IPipechannel - The channel.AbortException - On processing errors.PipelineException - On processing errors.public void addPipelineListener(IPipeListener listener)
IPipelineaddPipelineListener in interface IPipelinelistener - A listener.public void removePipelineListener(IPipeListener listener)
IPipelineremovePipelineListener in interface IPipelinelistener - A listener.protected void fireBeforeCheck(IChannel channel, IPipe source)
channel - The channel.source - The source pipe.protected void fireAfterCheck(IChannel channel, IPipe source)
channel - The channel.source - The source pipe.protected void fireBeforePerform(IChannel channel, IPipe source)
channel - The channel.source - The source pipe.Copyright © 2016. All rights reserved.