|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mulesoft.adapter.module.AbstractPIModule
public abstract class AbstractPIModule
Base PIModule implementation relying on DynamicModule.
Each interface type (aka root tag name of the xml payload) is used as
discriminant to dispatch to a dedicated OperationHandler.
| Field Summary | |
|---|---|
protected static com.sap.tc.logging.Location |
LOCATION
|
| Constructor Summary | |
|---|---|
AbstractPIModule(com.sap.aii.af.service.cpa.Channel channel)
|
|
| Method Summary | |
|---|---|
protected org.mule.tools.module.invocation.DynamicModule |
createConfiguredDynamicModule(com.sap.aii.af.service.cpa.Channel channel)
|
protected org.mule.tools.module.invocation.DynamicModule |
createDefaultDynamicModule(org.mule.tools.module.model.Module module,
Map<String,Object> parameters,
org.mule.retry.policies.AbstractPolicyTemplate retryPolicyTemplate)
|
protected org.mule.tools.module.invocation.DynamicModule |
createDynamicModule(org.mule.tools.module.model.Module module,
Map<String,Object> parameters,
org.mule.retry.policies.AbstractPolicyTemplate retryPolicyTemplate)
|
protected abstract org.mule.tools.module.model.Module |
createModule(com.sap.aii.af.service.cpa.Channel channel)
|
protected javax.resource.cci.Record |
createOutput(com.sap.engine.interfaces.messaging.api.Message message,
byte[] payload,
IPILogger logger)
|
protected Map<String,Object> |
createParameters(com.sap.aii.af.service.cpa.Channel channel)
|
protected Map<String,Object> |
createParametersDefault(com.sap.aii.af.service.cpa.Channel channel)
Extract mandatory parameters from Channel by relying on Module.getParameters(). |
protected org.mule.retry.policies.AbstractPolicyTemplate |
createRetryPolicyTemplate()
|
protected byte[] |
dispatch(com.sap.engine.interfaces.messaging.api.Message message,
IPILogger logger)
Dispatch execution to the correct OperationHandler. |
void |
dispose()
Dispose this module. |
protected void |
disposeDefault()
Dispose underlying DynamicModule. |
javax.resource.cci.Record |
execute(javax.resource.cci.InteractionSpec spec,
XIMessageRecordImpl input,
IPILogger logger)
|
protected com.sap.aii.af.service.cpa.Channel |
getChannel()
|
protected org.mule.tools.module.invocation.DynamicModule |
getModule()
|
protected OperationHandler |
getOperationHandler(com.sap.engine.interfaces.messaging.api.Message message)
|
protected void |
register(OperationHandler handler)
Register an OperationHandler with this PIModule. |
boolean |
retryOn(Throwable cause)
perform retry of delivery |
protected void |
subscribe(String sourceName,
Map<String,Object> overridenParameters,
XIMessageFactoryImpl messageFactory)
Subscribe to a named Module.Source associated to specified
Channel. |
protected void |
unsubscribe(String sourceName)
Unsubscribe from a named Module.Source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final com.sap.tc.logging.Location LOCATION
| Constructor Detail |
|---|
public AbstractPIModule(com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
javax.resource.ResourceException| Method Detail |
|---|
protected final com.sap.aii.af.service.cpa.Channel getChannel()
protected final org.mule.tools.module.invocation.DynamicModule getModule()
protected final org.mule.tools.module.invocation.DynamicModule createConfiguredDynamicModule(com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
channel -
DynamicModule configured using Channel
details
javax.resource.ResourceException
protected org.mule.tools.module.invocation.DynamicModule createDynamicModule(org.mule.tools.module.model.Module module,
Map<String,Object> parameters,
org.mule.retry.policies.AbstractPolicyTemplate retryPolicyTemplate)
throws javax.resource.ResourceException
module - parameters - retryPolicyTemplate -
javax.resource.ResourceException
protected final org.mule.tools.module.invocation.DynamicModule createDefaultDynamicModule(org.mule.tools.module.model.Module module,
Map<String,Object> parameters,
org.mule.retry.policies.AbstractPolicyTemplate retryPolicyTemplate)
throws javax.resource.ResourceException
module - parameters - retryPolicyTemplate -
javax.resource.ResourceException
protected abstract org.mule.tools.module.model.Module createModule(com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
channel -
Module configured using Channel details
javax.resource.ResourceException
protected Map<String,Object> createParameters(com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
channel -
Module
javax.resource.ResourceExceptionprotected Map<String,Object> createParametersDefault(com.sap.aii.af.service.cpa.Channel channel)
Module.getParameters().
channel -
protected org.mule.retry.policies.AbstractPolicyTemplate createRetryPolicyTemplate()
AbstractPolicyTemplate used by
AbstractPIModule#createDynamicModule(com.sap.aii.af.service.cpa.Channel)http://www.mulesoft.org/common-retry-policies,
Reconnection+Strategies
protected final OperationHandler getOperationHandler(com.sap.engine.interfaces.messaging.api.Message message)
throws javax.resource.ResourceException
message -
Message
javax.resource.ResourceException
public final javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec spec,
XIMessageRecordImpl input,
IPILogger logger)
throws javax.resource.ResourceException
execute in interface PIModulejavax.resource.ResourceExceptionpublic boolean retryOn(Throwable cause)
PIModule
retryOn in interface PIModulecause - exeption that occured
protected final void register(OperationHandler handler)
OperationHandler with this PIModule. Will be
considered during
PIModule#execute(javax.resource.cci.InteractionSpec, javax.resource.cci.Record)
.
handler -
protected final javax.resource.cci.Record createOutput(com.sap.engine.interfaces.messaging.api.Message message,
byte[] payload,
IPILogger logger)
throws javax.resource.ResourceException,
IOException,
com.sap.engine.interfaces.messaging.api.exception.InvalidParamException,
com.sap.engine.interfaces.messaging.api.exception.PayloadFormatException
message - payload - logger -
Record encapsulating specified `payload`. Useful as an
PI output.
javax.resource.ResourceException
IOException
com.sap.engine.interfaces.messaging.api.exception.InvalidParamException
com.sap.engine.interfaces.messaging.api.exception.PayloadFormatException#execute(javax.resource.cci.InteractionSpec,
javax.resource.cci.Record)
protected byte[] dispatch(com.sap.engine.interfaces.messaging.api.Message message,
IPILogger logger)
throws javax.resource.ResourceException,
org.mule.api.MuleException,
IOException,
com.sap.engine.interfaces.messaging.api.exception.InvalidParamException,
com.sap.engine.interfaces.messaging.api.exception.PayloadFormatException,
ParserConfigurationException,
SAXException
OperationHandler.
message -
javax.resource.ResourceException
org.mule.api.lifecycle.InitialisationException
org.mule.api.MuleException
IOException
com.sap.engine.interfaces.messaging.api.exception.InvalidParamException
com.sap.engine.interfaces.messaging.api.exception.PayloadFormatException
ParserConfigurationException
SAXException#extractPayload(javax.resource.cci.Record),
#extractOperation(javax.resource.cci.Record)
protected final void subscribe(String sourceName,
Map<String,Object> overridenParameters,
XIMessageFactoryImpl messageFactory)
throws org.mule.api.MuleException,
com.sap.aii.af.lib.mp.processor.ModuleProcessorException
Module.Source associated to specified
Channel.
sourceName - overridenParameters - channel - messageFactory -
org.mule.api.lifecycle.InitialisationException
org.mule.api.MuleException
com.sap.aii.af.lib.mp.processor.ModuleProcessorException
protected final void unsubscribe(String sourceName)
throws org.mule.api.MuleException
Module.Source.
sourceName -
org.mule.api.MuleExceptionpublic void dispose()
PIModule
dispose in interface PIModuleprotected final void disposeDefault()
DynamicModule.
DynamicModule.dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||