org.ow2.petals.se.eip.patterns
Class AbstractAggregatorPattern

java.lang.Object
  extended by org.ow2.petals.se.eip.patterns.AbstractPattern
      extended by org.ow2.petals.se.eip.patterns.AbstractAggregatorPattern
All Implemented Interfaces:
Pattern
Direct Known Subclasses:
ScatterGather, Splitter

public abstract class AbstractAggregatorPattern
extends AbstractPattern

Provide a management of the source exchange response from the target exchanges received. The responses must be aggregated into a same response

Author:
Frederic Gardes

Field Summary
 
Fields inherited from class org.ow2.petals.se.eip.patterns.AbstractPattern
logger
 
Constructor Summary
AbstractAggregatorPattern()
           
 
Method Summary
 boolean processAsync(org.ow2.petals.component.framework.api.message.Exchange exchange, ExchangeContext context, CommonAsyncContext asyncContext)
          Process the async message.
 boolean validateMEP(java.net.URI mep)
          Validate the MEP for the pattern.
 
Methods inherited from class org.ow2.petals.se.eip.patterns.AbstractPattern
getNameSpace, isAttachmentMode, isExceptionRobust, isFaultRobust, isFaultToException, logSend, process, processAsyncPattern, processExpiredAsync, processPattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.petals.se.eip.patterns.Pattern
getName, init
 

Constructor Detail

AbstractAggregatorPattern

public AbstractAggregatorPattern()
Method Detail

processAsync

public boolean processAsync(org.ow2.petals.component.framework.api.message.Exchange exchange,
                            ExchangeContext context,
                            CommonAsyncContext asyncContext)
Description copied from class: AbstractPattern
Process the async message.

Specified by:
processAsync in class AbstractPattern

validateMEP

public boolean validateMEP(java.net.URI mep)
Description copied from class: AbstractPattern
Validate the MEP for the pattern. This method is called on each message exchange in order to validate that the MEP is compatible.

Specified by:
validateMEP in class AbstractPattern
Parameters:
mep - the mep of the incoming message.
Returns:
true if the mep is compatible, false otherwise.


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.