|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.core.axis2.Axis2SynapseEnvironment
public class Axis2SynapseEnvironment
This is the Axis2 implementation of the SynapseEnvironment
| Constructor Summary | |
|---|---|
Axis2SynapseEnvironment(ConfigurationContext cfgCtx,
SynapseConfiguration synapseConfig)
|
|
Axis2SynapseEnvironment(SynapseConfiguration synCfg)
|
|
| Method Summary | |
|---|---|
MessageContext |
createMessageContext()
This method will be used to create a new MessageContext in the Axis2 environment for Synapse. |
TemporaryData |
createTemporaryData()
Factory method to create the TemporaryData object as per on the parameters specified in the synapse.properties file, so that the TemporaryData parameters like threashold chunk size can be customized by using the properties file. |
ExecutorService |
getExecutorService()
This will give the access to the synapse thread pool for the advanced mediation tasks. |
StatisticsCollector |
getStatisticsCollector()
This method returns the StatisticsCollector |
void |
injectAsync(MessageContext synCtx,
SequenceMediator seq)
This method injects a new message into the Synapse engine for the mediation by the specified sequence. |
boolean |
injectMessage(MessageContext synCtx)
This method injects a new message into the Synapse engine. |
boolean |
isInitialized()
Has this environment properly initialized? |
void |
send(EndpointDefinition endpoint,
MessageContext synCtx)
This will be used for sending the message provided, to the endpoint specified by the EndpointDefinition using the axis2 environment. |
void |
setInitialized(boolean state)
Mark this environment as ready for processing |
void |
setStatisticsCollector(StatisticsCollector collector)
To set the StatisticsCollector |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Axis2SynapseEnvironment(SynapseConfiguration synCfg)
public Axis2SynapseEnvironment(ConfigurationContext cfgCtx,
SynapseConfiguration synapseConfig)
| Method Detail |
|---|
public boolean injectMessage(MessageContext synCtx)
SynapseEnvironment
injectMessage in interface SynapseEnvironmentsynCtx - - Synapse MessageContext to be injected
public void injectAsync(MessageContext synCtx,
SequenceMediator seq)
SynapseEnvironment
injectAsync in interface SynapseEnvironmentsynCtx - - Synapse message context to be injectedseq - - Sequence to be used for mediation
public void send(EndpointDefinition endpoint,
MessageContext synCtx)
send in interface SynapseEnvironmentendpoint - - EndpointDefinition to be used to find the endpoint information
and the properties of the sending processsynCtx - - Synapse MessageContext to be sentpublic MessageContext createMessageContext()
createMessageContext in interface SynapseEnvironmentpublic TemporaryData createTemporaryData()
createTemporaryData in interface SynapseEnvironmentpublic StatisticsCollector getStatisticsCollector()
getStatisticsCollector in interface SynapseEnvironmentpublic void setStatisticsCollector(StatisticsCollector collector)
setStatisticsCollector in interface SynapseEnvironmentcollector - - Statistics collector to be setpublic ExecutorService getExecutorService()
getExecutorService in interface SynapseEnvironmentpublic boolean isInitialized()
isInitialized in interface SynapseEnvironmentpublic void setInitialized(boolean state)
setInitialized in interface SynapseEnvironmentstate - true means ready for processing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||