|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.binding.soap.SoapComponentContext
public class SoapComponentContext
The SOAP component context. The context is filled by the SU listener (adding modules, service descriptions...) and used by the listeners/workers.
| Nested Class Summary | |
|---|---|
static class |
SoapComponentContext.ServiceManager<E>
|
| Constructor Summary | |
|---|---|
SoapComponentContext(javax.jbi.component.ComponentContext context,
org.ow2.petals.component.framework.jbidescriptor.generated.Component componentConfiguration,
org.ow2.petals.probes.KeyedGaugeProbe<ServiceClientKey,Integer,Integer> probeWsClientPoolClientsInUse,
org.ow2.petals.probes.KeyedCounterProbe<ServiceClientKey> probeWsClientPoolExhaustions,
org.ow2.petals.probes.KeyedCounterProbeWithExecutionStatus<ServiceClientKey> probeWsRequestsInvocationsCount,
org.ow2.petals.probes.KeyedResponseTimeProbe<ServiceClientKey> probeWsClientInvocationsResponseTime,
Logger logger)
Creates a new instance of SoapComponentContext |
|
| Method Summary | |
|---|---|
void |
addJbiDescriptor(String serviceUnitName,
org.ow2.petals.component.framework.jbidescriptor.generated.Jbi jbiDescriptor)
Add a JBIDescriptor |
void |
addServiceDescriptor(String serviceUnitName,
File serviceDescriptor)
Add a JBIDescriptor |
PetalsServiceClient |
borrowServiceClient(String address,
QName operation,
String soapAction,
URI mep,
org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions cdkExtensions,
org.ow2.petals.component.framework.jbidescriptor.generated.Provides provides,
String rampartUserName)
Get a service client associated to an axis service set with the good operation. |
void |
deleteServiceClientPools(org.ow2.petals.component.framework.jbidescriptor.generated.Provides provides)
Delete all the service client pools which used the provides instance |
org.apache.axis2.context.ConfigurationContext |
getAxis2ConfigurationContext()
|
org.ow2.petals.component.framework.jbidescriptor.generated.Component |
getComponentConfiguration()
|
SoapComponentContext.ServiceManager<org.ow2.petals.component.framework.jbidescriptor.generated.Consumes> |
getConsumersManager()
|
org.ow2.petals.component.framework.jbidescriptor.generated.Jbi |
getJbiDescriptor(String serviceUnitName)
Get the JBI descriptor for the given address. |
String |
getJmsConnectionFactoryName()
The connection factory JNDI name used by the JMS transport layer. |
String |
getJmsJndiInitialFactory()
The JNDI initial factory used by the JMS transport layer. |
String |
getJmsJndiProviderUrl()
The JNDI provider URL used by the JMS transport layer. |
org.ow2.petals.probes.KeyedResponseTimeProbe<ServiceClientKey> |
getProbeWsClientInvocationsResponseTime()
|
org.ow2.petals.probes.KeyedGaugeProbe<ServiceClientKey,Integer,Integer> |
getProbeWsClientPoolClientsInUse()
|
org.ow2.petals.probes.KeyedCounterProbe<ServiceClientKey> |
getProbeWsClientPoolExhaustions()
|
org.ow2.petals.probes.KeyedCounterProbeWithExecutionStatus<ServiceClientKey> |
getProbeWsRequestsInvocationsCount()
|
SoapComponentContext.ServiceManager<org.ow2.petals.component.framework.jbidescriptor.generated.Provides> |
getProvidersManager()
|
Map<ServiceClientKey,org.apache.commons.pool.impl.GenericObjectPool<PetalsServiceClient>> |
getServiceClientPools()
|
File |
getServiceDescriptor(String serviceUnitName)
Get the service descriptor as File of the given service unit if
available. |
protected int |
getWsClientMaxPoolSize()
|
void |
removeJbiDescriptor(String serviceUnitName)
Remove the JBIDescriptor for the given address |
void |
removeServiceDescriptor(String serviceUnitName)
Remove the JBIDescriptor for the given service unit |
void |
returnServiceClient(String address,
QName operation,
URI mep,
PetalsServiceClient petalsServiceClient,
String soapAction)
Release the service client to the pool |
void |
setAxis2ConfigurationContext(org.apache.axis2.context.ConfigurationContext axis2ConfigurationContext)
|
void |
setComponentConfiguration(org.ow2.petals.component.framework.jbidescriptor.generated.Component componentConfiguration)
|
void |
setJmsConnectionFactoryName(String jmsConnectionFactoryName)
Set the connection factory JNDI name used by the JMS transport layer. |
void |
setJmsJndiInitialFactory(String jmsJndiInitialFactory)
Set the JNDI initial factory used by the JMS transport layer. |
void |
setJmsJndiProviderUrl(String jmsJndiProviderUrl)
Set the JNDI provider URL used by the JMS transport layer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SoapComponentContext(javax.jbi.component.ComponentContext context,
org.ow2.petals.component.framework.jbidescriptor.generated.Component componentConfiguration,
org.ow2.petals.probes.KeyedGaugeProbe<ServiceClientKey,Integer,Integer> probeWsClientPoolClientsInUse,
org.ow2.petals.probes.KeyedCounterProbe<ServiceClientKey> probeWsClientPoolExhaustions,
org.ow2.petals.probes.KeyedCounterProbeWithExecutionStatus<ServiceClientKey> probeWsRequestsInvocationsCount,
org.ow2.petals.probes.KeyedResponseTimeProbe<ServiceClientKey> probeWsClientInvocationsResponseTime,
Logger logger)
context - componentConfiguration - probeWsClientPoolClientsInUse - The probe counting allocated ws-clients in the pool.probeWsClientPoolExhaustions - The probe counting the number of ws-client pool exhaustions.probeWsRequestsInvocationsCount - The probe counting external web-service invocation by
web-service, web-service operation and MEP.probeWsClientInvocationsResponseTime - The probe measuring the response time of WS client invocation
by external web-service, operation, MEP and execution status.logger - | Method Detail |
|---|
public void addJbiDescriptor(String serviceUnitName,
org.ow2.petals.component.framework.jbidescriptor.generated.Jbi jbiDescriptor)
JBIDescriptor
address - jbiDescriptor -
public void addServiceDescriptor(String serviceUnitName,
File serviceDescriptor)
JBIDescriptor
address - jbiDescriptor -
public PetalsServiceClient borrowServiceClient(String address,
QName operation,
String soapAction,
URI mep,
org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions cdkExtensions,
org.ow2.petals.component.framework.jbidescriptor.generated.Provides provides,
String rampartUserName)
throws NoSuchElementException,
javax.jbi.messaging.MessagingException
Get a service client associated to an axis service set with the good operation. It is taken from a pool object.
This service client must be returned to the pool after usage using
API:
.
#returnServiceClient(String, QName, URI, PetalsServiceClient)
address - the address of the service, mainly used as key to retrieve the
associated SU.operation - the target operation QName. Non nullmep - the message exchange pattern used. Non nullcdkExtensions - SU extensions used by the service client pool when the
creation of a service client is neededprovides - the provides block of the endpoint which is creating the
external WS callramprtUserName -
#returnServiceClient(String, QName, URI, PetalsServiceClient)
NoSuchElementException - The web-service client pool is exhausted.
javax.jbi.messaging.MessagingExceptionpublic org.apache.axis2.context.ConfigurationContext getAxis2ConfigurationContext()
public org.ow2.petals.component.framework.jbidescriptor.generated.Component getComponentConfiguration()
public SoapComponentContext.ServiceManager<org.ow2.petals.component.framework.jbidescriptor.generated.Consumes> getConsumersManager()
public org.ow2.petals.component.framework.jbidescriptor.generated.Jbi getJbiDescriptor(String serviceUnitName)
address -
JBIDescriptor if found, else return nullpublic String getJmsConnectionFactoryName()
public String getJmsJndiInitialFactory()
public String getJmsJndiProviderUrl()
public SoapComponentContext.ServiceManager<org.ow2.petals.component.framework.jbidescriptor.generated.Provides> getProvidersManager()
public File getServiceDescriptor(String serviceUnitName)
File of the given service unit if
available.
address -
public void removeJbiDescriptor(String serviceUnitName)
JBIDescriptor for the given address
address - public void removeServiceDescriptor(String serviceUnitName)
JBIDescriptor for the given service unit
address - public void deleteServiceClientPools(org.ow2.petals.component.framework.jbidescriptor.generated.Provides provides)
provides -
public void returnServiceClient(String address,
QName operation,
URI mep,
PetalsServiceClient petalsServiceClient,
String soapAction)
throws javax.jbi.messaging.MessagingException
address - operation - mep - petalsServiceClient -
javax.jbi.messaging.MessagingExceptionpublic void setAxis2ConfigurationContext(org.apache.axis2.context.ConfigurationContext axis2ConfigurationContext)
axis2ConfigurationContext - the axis2ConfigurationContext to setpublic void setComponentConfiguration(org.ow2.petals.component.framework.jbidescriptor.generated.Component componentConfiguration)
componentConfiguration - public void setJmsConnectionFactoryName(String jmsConnectionFactoryName)
jmsConnectionFactoryName - The connection factory JNDI name used by the JMS transport
layer.public void setJmsJndiInitialFactory(String jmsJndiInitialFactory)
jmsJndiInitialFactory - The JNDI initial factory used by the JMS transport layer.public void setJmsJndiProviderUrl(String jmsJndiProviderUrl)
jmsJndiProviderUrl - The JNDI provider URL used by the JMS transport layer.protected int getWsClientMaxPoolSize()
public Map<ServiceClientKey,org.apache.commons.pool.impl.GenericObjectPool<PetalsServiceClient>> getServiceClientPools()
public org.ow2.petals.probes.KeyedCounterProbeWithExecutionStatus<ServiceClientKey> getProbeWsRequestsInvocationsCount()
public final org.ow2.petals.probes.KeyedGaugeProbe<ServiceClientKey,Integer,Integer> getProbeWsClientPoolClientsInUse()
public final org.ow2.petals.probes.KeyedCounterProbe<ServiceClientKey> getProbeWsClientPoolExhaustions()
public org.ow2.petals.probes.KeyedResponseTimeProbe<ServiceClientKey> getProbeWsClientInvocationsResponseTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||