Vordel SDK

com.vordel.circuit
Class CircuitChainProcessor

java.lang.Object
  extended by com.vordel.circuit.FilterContainer
      extended by com.vordel.circuit.MessageProcessor
          extended by com.vordel.circuit.DelegatingProcessor
              extended by com.vordel.circuit.CircuitChainProcessor
Direct Known Subclasses:
SyntheticCircuitChainProcessor

public class CircuitChainProcessor
extends DelegatingProcessor


Field Summary
protected  CircuitDelegateFilter cdf
           
 
Fields inherited from class com.vordel.circuit.MessageProcessor
logMask, logMaskType
 
Constructor Summary
CircuitChainProcessor()
           
 
Method Summary
 void attach(CircuitChainFilter filter, CircuitCache circuitCache)
           
protected  boolean callCircuit(CircuitInvocation ci, CircuitReference cr, Message m)
           
 void filterAttached(FilterConfigureContext ctx, Entity entity)
          Called on a filter's container when the filter is configured.
 boolean invoke(CircuitInvocation c, Message m)
          invoked by circuit to act on a message
 
Methods inherited from class com.vordel.circuit.DelegatingProcessor
callCircuit, callCircuit, getCDProc
 
Methods inherited from class com.vordel.circuit.MessageProcessor
filterDetached, getCategory, getLogMask, logFailure, logFatal, logMessagePayload, logSuccess, report, report, toString
 
Methods inherited from class com.vordel.circuit.FilterContainer
configureFilter, createFilterContainer, getFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cdf

protected CircuitDelegateFilter cdf
Constructor Detail

CircuitChainProcessor

public CircuitChainProcessor()
Method Detail

filterAttached

public void filterAttached(FilterConfigureContext ctx,
                           Entity entity)
                    throws EntityStoreException
Description copied from class: FilterContainer
Called on a filter's container when the filter is configured. Any domain-specific initialisation of the filter container can be done at this point. This will be called at least once when the filter attaches.

Overrides:
filterAttached in class MessageProcessor
Parameters:
ctx - configuration context for the filter attached to this container.
Throws:
EntityStoreException

attach

public void attach(CircuitChainFilter filter,
                   CircuitCache circuitCache)
            throws EntityStoreException
Throws:
EntityStoreException

invoke

public boolean invoke(CircuitInvocation c,
                      Message m)
               throws CircuitAbortException
Description copied from class: MessageProcessor
invoked by circuit to act on a message

Specified by:
invoke in class MessageProcessor
Parameters:
c - The CircuitInvocation context, including the filter's owner circuit.
m - The message
Returns:
predicate indicating success of filter execution
Throws:
CircuitAbortException

callCircuit

protected boolean callCircuit(CircuitInvocation ci,
                              CircuitReference cr,
                              Message m)
                       throws CircuitAbortException
Throws:
CircuitAbortException

Vordel SDK


This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel