org.apache.servicemix.eip.patterns
Class Pipeline

java.lang.Object
  extended by org.apache.servicemix.common.endpoints.AbstractEndpoint
      extended by org.apache.servicemix.common.endpoints.SimpleEndpoint
          extended by org.apache.servicemix.common.endpoints.ProviderEndpoint
              extended by org.apache.servicemix.eip.EIPEndpoint
                  extended by org.apache.servicemix.eip.patterns.Pipeline
All Implemented Interfaces:
Endpoint

public class Pipeline
extends EIPEndpoint

The Pipeline component is a bridge between an In-Only (or Robust-In-Only) MEP and an In-Out MEP. When the Pipeline receives an In-Only MEP, it will send the input in an In-Out MEP to the tranformer destination and forward the response in an In-Only MEP to the target destination. In addition, this component is fully asynchronous and uses an exchange store to provide full HA and recovery for clustered / persistent flows.

Version:
$Revision: 376451 $
Author:
gnodet

Field Summary
 
Fields inherited from class org.apache.servicemix.eip.EIPEndpoint
lockManager, store, storeFactory, timerManager, wsdlExchangeTarget, wsdlResource
 
Fields inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
logger
 
Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
definition, description, endpoint, interfaceName, service, serviceUnit
 
Constructor Summary
Pipeline()
           
 
Method Summary
protected  javax.wsdl.Definition getDefinitionFromWsdlExchangeTarget()
           
 ExchangeTarget getFaultsTarget()
           
 ExchangeTarget getTarget()
           
 ExchangeTarget getTransformer()
           
 boolean isCopyAttachments()
           
 boolean isCopyProperties()
           
 boolean isSendFaultsToTarget()
           
protected  void processAsync(javax.jbi.messaging.MessageExchange exchange)
           
protected  void processSync(javax.jbi.messaging.MessageExchange exchange)
           
 void setCopyAttachments(boolean copyAttachments)
          Should message attachments be copied ?
 void setCopyProperties(boolean copyProperties)
          Should message properties be copied ?
 void setFaultsTarget(ExchangeTarget faultsTarget)
          The address of the endpoint to send faults to
 void setSendFaultsToTarget(boolean sendFaultsToTarget)
          When the faultsTarget is not specified, faults may be sent to the target endpoint if this flag is set to true
 void setTarget(ExchangeTarget target)
          The address of the target endpoint
 void setTransformer(ExchangeTarget transformer)
          The adress of the in-out endpoint acting as a transformer
 void validate()
           
 
Methods inherited from class org.apache.servicemix.eip.EIPEndpoint
chooseFirstEndpointWithDescriptor, copyAttachments, copyProperties, getDefinition, getDefinitionFromDescription, getDefinitionFromWsdlResource, getDescription, getDescriptionForExchangeTarget, getEndpointsForExchangeTarget, getLockManager, getStore, getStoreFactory, getTimerManager, getWsdlExchangeTarget, getWsdlResource, process, setLockManager, setStore, setStoreFactory, setTimerManager, setWsdlExchangeTarget, setWsdlResource, start, stop
 
Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint
activate, deactivate, getRole, processInOnly, processInOut
 
Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync
 
Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pipeline

public Pipeline()
Method Detail

getTarget

public ExchangeTarget getTarget()
Returns:
Returns the target.

setTarget

public void setTarget(ExchangeTarget target)
The address of the target endpoint

Parameters:
target - The target to set.

getFaultsTarget

public ExchangeTarget getFaultsTarget()
Returns:
the faultsTarget

setFaultsTarget

public void setFaultsTarget(ExchangeTarget faultsTarget)
The address of the endpoint to send faults to

Parameters:
faultsTarget - the faultsTarget to set

isSendFaultsToTarget

public boolean isSendFaultsToTarget()
Returns:
the sendFaultsToTarget

setSendFaultsToTarget

public void setSendFaultsToTarget(boolean sendFaultsToTarget)
When the faultsTarget is not specified, faults may be sent to the target endpoint if this flag is set to true

Parameters:
sendFaultsToTarget - the sendFaultsToTarget to set

getTransformer

public ExchangeTarget getTransformer()
Returns:
Returns the transformer.

setTransformer

public void setTransformer(ExchangeTarget transformer)
The adress of the in-out endpoint acting as a transformer

Parameters:
transformer - The transformer to set.

isCopyProperties

public boolean isCopyProperties()

setCopyProperties

public void setCopyProperties(boolean copyProperties)
Should message properties be copied ?

Parameters:
copyProperties -

isCopyAttachments

public boolean isCopyAttachments()

setCopyAttachments

public void setCopyAttachments(boolean copyAttachments)
Should message attachments be copied ?

Parameters:
copyAttachments -

validate

public void validate()
              throws javax.jbi.management.DeploymentException
Specified by:
validate in interface Endpoint
Overrides:
validate in class AbstractEndpoint
Throws:
javax.jbi.management.DeploymentException

processSync

protected void processSync(javax.jbi.messaging.MessageExchange exchange)
                    throws java.lang.Exception
Specified by:
processSync in class EIPEndpoint
Throws:
java.lang.Exception

processAsync

protected void processAsync(javax.jbi.messaging.MessageExchange exchange)
                     throws java.lang.Exception
Specified by:
processAsync in class EIPEndpoint
Throws:
java.lang.Exception

getDefinitionFromWsdlExchangeTarget

protected javax.wsdl.Definition getDefinitionFromWsdlExchangeTarget()
Overrides:
getDefinitionFromWsdlExchangeTarget in class EIPEndpoint


Copyright © 2005-2011 FuseSource. All Rights Reserved.