org.ow2.petals.binding.soap.listener.incoming.jetty
Class SoapServer

java.lang.Object
  extended by org.ow2.petals.binding.soap.listener.incoming.jetty.SoapServer

public class SoapServer
extends Object

Create a Jetty server that will be the axis2 transportlistener. This Jetty server is used to replace the SimpleHTTPServer provided by axis that have quite bad performances.

Author:
Christophe Hamerling - EBM WebSourcing

Field Summary
protected  SoapServerConfig config
          The component properties
protected  org.apache.axis2.context.ConfigurationContext configurationContext
          The axis2 configuration context (built from axis2.xml config file)
static int HEADER_BUFFER_SIZE
           
protected  Logger logger
          The logger
protected  org.mortbay.jetty.Server server
          The Jetty server
protected  ServerStats stats
          The Jetty server statistics
 
Constructor Summary
SoapServer(SoapServerConfig config, SoapComponentContext componentContext, org.ow2.petals.probes.CounterProbe probeUnknownServlet, org.ow2.petals.probes.CounterProbe probeInformationServlet, org.ow2.petals.probes.GaugeProbe<Integer,Integer> probeHttpServerThreadPoolAllocatedThreads, org.ow2.petals.probes.GaugeProbe<Integer,Integer> probeHttpServerThreadPoolIdleThreads, org.ow2.petals.probes.GaugeProbe<Integer,Integer> probeHttpServerThreadPoolQueuedRequests, org.ow2.petals.probes.KeyedCounterProbeWithExecutionStatus<IncomingServiceKey> probeHttpRequestsInvocationsCount, org.ow2.petals.probes.KeyedResponseTimeProbe<IncomingServiceKey> probeHttpRequestsInvocationsResponseTime, Logger logger)
          Creates a new instance of SoapServer
 
Method Summary
 void addRedirect(String from, String to)
          Redirect specified URI to the specified web service address
 org.mortbay.thread.BoundedThreadPool getThreadPool()
           
 void removeRedirect(String from)
           
 void shutdown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected Logger logger
The logger


configurationContext

protected org.apache.axis2.context.ConfigurationContext configurationContext
The axis2 configuration context (built from axis2.xml config file)


config

protected SoapServerConfig config
The component properties


server

protected org.mortbay.jetty.Server server
The Jetty server


stats

protected ServerStats stats
The Jetty server statistics


HEADER_BUFFER_SIZE

public static final int HEADER_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

SoapServer

public SoapServer(SoapServerConfig config,
                  SoapComponentContext componentContext,
                  org.ow2.petals.probes.CounterProbe probeUnknownServlet,
                  org.ow2.petals.probes.CounterProbe probeInformationServlet,
                  org.ow2.petals.probes.GaugeProbe<Integer,Integer> probeHttpServerThreadPoolAllocatedThreads,
                  org.ow2.petals.probes.GaugeProbe<Integer,Integer> probeHttpServerThreadPoolIdleThreads,
                  org.ow2.petals.probes.GaugeProbe<Integer,Integer> probeHttpServerThreadPoolQueuedRequests,
                  org.ow2.petals.probes.KeyedCounterProbeWithExecutionStatus<IncomingServiceKey> probeHttpRequestsInvocationsCount,
                  org.ow2.petals.probes.KeyedResponseTimeProbe<IncomingServiceKey> probeHttpRequestsInvocationsResponseTime,
                  Logger logger)
           throws org.apache.axis2.AxisFault
Creates a new instance of SoapServer

Parameters:
configContext -
config -
componentContext -
probeUnknownServlet - The probe counting unknown URLs received by the Jetty server.
probeInformationServlet - The probe counting unknown URLs received by the Jetty server.
probeHttpServerThreadPoolAllocatedThreads - The probe counting allocated threads in the thread pool of the HTTP server.
probeHttpServerThreadPoolIdleThreads - The probe counting idle threads in the thread pool of the HTTP server.
probeHttpServerThreadPoolQueuedRequests - The probe counting requests in the queue of the thread pool of the HTTP server.
probeHttpRequestsInvocationsCount - The probe counting service invocation by web-service, web-service client and execution status, received by the Jetty server.
probeHttpRequestsInvocationsResponseTime - The probe measuring the response time of service invocation by web-service, web-service client and execution status, received by the Jetty server.
logger -
Throws:
org.apache.axis2.AxisFault
Method Detail

start

public void start()
           throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

stop

public void stop()
          throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

shutdown

public void shutdown()
              throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault

addRedirect

public void addRedirect(String from,
                        String to)
Redirect specified URI to the specified web service address

Parameters:
from - The URI to redirect
to - The serviceName or address of the destination service

removeRedirect

public void removeRedirect(String from)

getThreadPool

public org.mortbay.thread.BoundedThreadPool getThreadPool()


Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.