org.apache.synapse.core.axis2
Class Axis2TransportHelper

java.lang.Object
  extended by org.apache.synapse.core.axis2.Axis2TransportHelper

public class Axis2TransportHelper
extends Object

Provides functionality to pause and resume listeners and transports and retrieve current thread count.


Constructor Summary
Axis2TransportHelper(ConfigurationContext configurationContext)
          Creates a new Axis2TransportHelper using the provided Axis2 configuration context.
 
Method Summary
 int getActiveConnectionsCount()
           
 int getPendingListenerThreadCount()
          Determines the total number of pending listener threads (active + queued).
 int getPendingSenderThreadCount()
          Determines the total number of pending sender threads (active + queued).
 void pauseListeners()
          Pauses all Axis2 listeners which support this operation.
 void pauseSenders()
          Pauses all Axis2 senders which support this operation.
 void resumeListeners()
          Resumes all paused Axis2 listeners.
 void resumeSenders()
          Resumes all paused Axis2 senders.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Axis2TransportHelper

public Axis2TransportHelper(ConfigurationContext configurationContext)
Creates a new Axis2TransportHelper using the provided Axis2 configuration context.

Parameters:
configurationContext - an Axis2 configuration context
Method Detail

pauseListeners

public void pauseListeners()
Pauses all Axis2 listeners which support this operation.


resumeListeners

public void resumeListeners()
Resumes all paused Axis2 listeners.


pauseSenders

public void pauseSenders()
Pauses all Axis2 senders which support this operation.


resumeSenders

public void resumeSenders()
Resumes all paused Axis2 senders.


getPendingListenerThreadCount

public int getPendingListenerThreadCount()
Determines the total number of pending listener threads (active + queued).

Returns:
the total number of pending listener threads (active + queued).

getActiveConnectionsCount

public int getActiveConnectionsCount()

getPendingSenderThreadCount

public int getPendingSenderThreadCount()
Determines the total number of pending sender threads (active + queued).

Returns:
the total number of pending sender threads (active + queued).


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.