|
||||||||||
| 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(ConfigurationContext cfgCtx,
SynapseConfiguration synapseConfig,
ServerContextInformation contextInformation)
|
|
Axis2SynapseEnvironment(SynapseConfiguration synCfg)
|
|
| Method Summary | |
|---|---|
MessageContext |
createMessageContext()
This method will be used to create a new MessageContext in the Axis2 environment for Synapse. |
OverflowBlob |
createOverflowBlob()
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. |
ConfigurationContext |
getAxis2ConfigurationContext()
Retrieves the ConfigurationContext associated with this axis2SynapseEnv |
ExecutorService |
getExecutorService()
This will give the access to the synapse thread pool for the advanced mediation tasks. |
ServerContextInformation |
getServerContextInformation()
Retrieve the ServerContextInformation from the environment. |
StatisticsCollector |
getStatisticsCollector()
This method returns the StatisticsCollector responsible for
collecting stats for this synapse instance. |
SynapseConfiguration |
getSynapseConfiguration()
Retrieves the SynapseConfiguration from the environment |
SynapseTaskManager |
getTaskManager()
Retrive the SynapseTaskManager from the
envioronment. |
Map<QName,SynapseXpathFunctionContextProvider> |
getXpathFunctionExtensions()
Returns all declared xpath Function Extensions |
Map<QName,SynapseXpathVariableResolver> |
getXpathVariableExtensions()
Returns all declared xpath Variable Extensions |
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)
Deprecated. |
void |
setXpathFunctionExtensions(SynapseXpathFunctionContextProvider functionExt)
|
void |
setXpathVariableExtensions(SynapseXpathVariableResolver variableExt)
|
| 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)
public Axis2SynapseEnvironment(ConfigurationContext cfgCtx,
SynapseConfiguration synapseConfig,
ServerContextInformation contextInformation)
| 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 OverflowBlob createOverflowBlob()
createOverflowBlob in interface SynapseEnvironmentpublic StatisticsCollector getStatisticsCollector()
StatisticsCollector responsible for
collecting stats for this synapse instance.
getStatisticsCollector in interface SynapseEnvironmentStatisticsCollector@Deprecated public 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 processingpublic SynapseConfiguration getSynapseConfiguration()
SynapseConfiguration from the environment
getSynapseConfiguration in interface SynapseEnvironmentpublic SynapseTaskManager getTaskManager()
SynapseTaskManager from the
envioronment.
getTaskManager in interface SynapseEnvironmentpublic ServerContextInformation getServerContextInformation()
ServerContextInformation from the environment.
- Specified by:
getServerContextInformation in interface SynapseEnvironment
- Returns:
- ServerContextInformation of the environment
public ConfigurationContext getAxis2ConfigurationContext()
ConfigurationContext associated with this axis2SynapseEnv
public Map<QName,SynapseXpathFunctionContextProvider> getXpathFunctionExtensions()
getXpathFunctionExtensions in interface SynapseEnvironmentpublic Map<QName,SynapseXpathVariableResolver> getXpathVariableExtensions()
getXpathVariableExtensions in interface SynapseEnvironmentpublic void setXpathFunctionExtensions(SynapseXpathFunctionContextProvider functionExt)
public void setXpathVariableExtensions(SynapseXpathVariableResolver variableExt)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||