|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axis2.transport.base.AbstractTransportListener
public abstract class AbstractTransportListener
| Field Summary | |
|---|---|
protected ConfigurationContext |
cfgCtx
the axis2 configuration context |
protected TransportConfiguration |
config
Transport Configuration for the respective transports |
protected boolean |
isNonBlocking
is this transport non-blocking? |
protected org.apache.commons.logging.Log |
log
the reference to the actual commons logger to be used for log messages |
protected MetricsCollector |
metrics
Metrics collector for this transport |
protected int |
state
state of the listener |
protected boolean |
useAxis2ThreadPool
use the thread pool available in the axis2 configuration context |
protected WorkerPool |
workerPool
the thread pool to execute actual poll invocations |
| Fields inherited from interface org.apache.axis2.transport.TransportListener |
|---|
HOST_ADDRESS, PARAM_PORT |
| Constructor Summary | |
|---|---|
protected |
AbstractTransportListener()
A constructor that makes subclasses pick up the correct logger |
| Method Summary | |
|---|---|
MessageContext |
createMessageContext()
Create a new axis MessageContext for an incoming message through this transport |
void |
destroy()
|
void |
disableTransportForService(AxisService service)
|
int |
getActiveThreadCount()
Returns the number of active threads processing messages |
double |
getAvgSizeReceived()
|
double |
getAvgSizeSent()
|
long |
getBytesReceived()
|
long |
getBytesSent()
|
ConfigurationContext |
getConfigurationContext()
|
EndpointReference |
getEPRForService(java.lang.String serviceName,
java.lang.String ip)
This is a deprecated method in Axis2 and this default implementation returns the first result from the getEPRsForService() method |
protected EndpointReference[] |
getEPRsForService(java.lang.String serviceName)
|
EndpointReference[] |
getEPRsForService(java.lang.String serviceName,
java.lang.String ip)
|
long |
getFaultsReceiving()
|
long |
getFaultsSending()
|
long |
getLastResetTime()
|
long |
getMaxSizeReceived()
|
long |
getMaxSizeSent()
|
long |
getMessagesReceived()
|
long |
getMessagesSent()
|
MetricsCollector |
getMetricsCollector()
|
long |
getMetricsWindow()
|
long |
getMinSizeReceived()
|
long |
getMinSizeSent()
|
int |
getQueueSize()
Return the number of requests queued in the thread pool |
java.util.Map |
getResponseCodeTable()
|
SessionContext |
getSessionContext(MessageContext messageContext)
|
long |
getTimeoutsReceiving()
|
long |
getTimeoutsSending()
|
TransportInDescription |
getTransportInDescription()
|
java.lang.String |
getTransportName()
|
protected void |
handleException(java.lang.String msg,
java.lang.Exception e)
|
void |
handleIncomingMessage(MessageContext msgCtx,
java.util.Map trpHeaders,
java.lang.String soapAction,
java.lang.String contentType)
Process a new incoming message through the axis engine |
void |
init(ConfigurationContext cfgCtx,
TransportInDescription transportIn)
Initialize the generic transport. |
protected void |
logException(java.lang.String msg,
java.lang.Exception e)
|
void |
maintenenceShutdown(long millis)
Stop processing new messages, and wait the specified maximum time for in-flight requests to complete before a controlled shutdown for maintenence |
void |
pause()
Pause the listener - Stop accepting/processing new messages, but continues processing existing messages until they complete. |
void |
resetStatistics()
|
void |
resume()
Resume the lister - Brings the lister into active mode back from a paused state |
void |
start()
|
protected abstract void |
startListeningForService(AxisService service)
|
void |
stop()
|
protected abstract void |
stopListeningForService(AxisService service)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.commons.logging.Log log
protected ConfigurationContext cfgCtx
protected int state
protected boolean isNonBlocking
protected WorkerPool workerPool
protected boolean useAxis2ThreadPool
protected MetricsCollector metrics
protected TransportConfiguration config
| Constructor Detail |
|---|
protected AbstractTransportListener()
| Method Detail |
|---|
public void init(ConfigurationContext cfgCtx,
TransportInDescription transportIn)
throws AxisFault
init in interface TransportListenercfgCtx - the axis configuration contexttransportIn - the transport-in description
AxisFault - on errorpublic void destroy()
destroy in interface TransportListener
public void stop()
throws AxisFault
stop in interface TransportListenerAxisFault
public void start()
throws AxisFault
start in interface TransportListenerAxisFault
public EndpointReference[] getEPRsForService(java.lang.String serviceName,
java.lang.String ip)
throws AxisFault
getEPRsForService in interface TransportListenerAxisFaultprotected EndpointReference[] getEPRsForService(java.lang.String serviceName)
public void disableTransportForService(AxisService service)
protected abstract void startListeningForService(AxisService service)
throws AxisFault
AxisFaultprotected abstract void stopListeningForService(AxisService service)
public EndpointReference getEPRForService(java.lang.String serviceName,
java.lang.String ip)
throws AxisFault
getEPRForService in interface TransportListenerAxisFaultpublic SessionContext getSessionContext(MessageContext messageContext)
getSessionContext in interface TransportListenerpublic MessageContext createMessageContext()
public void handleIncomingMessage(MessageContext msgCtx,
java.util.Map trpHeaders,
java.lang.String soapAction,
java.lang.String contentType)
throws AxisFault
msgCtx - the axis MessageContexttrpHeaders - the map containing transport level message headerssoapAction - the optional soap action or nullcontentType - the optional content-type for the message
AxisFault
protected void handleException(java.lang.String msg,
java.lang.Exception e)
throws AxisFault
AxisFault
protected void logException(java.lang.String msg,
java.lang.Exception e)
public TransportInDescription getTransportInDescription()
public java.lang.String getTransportName()
public ConfigurationContext getConfigurationContext()
public MetricsCollector getMetricsCollector()
public void pause()
throws AxisFault
AxisFault - on error
public void resume()
throws AxisFault
AxisFault - on error
public void maintenenceShutdown(long millis)
throws AxisFault
millis - a number of milliseconds to wait until pending requests are allowed to complete
AxisFault - on errorpublic int getActiveThreadCount()
public int getQueueSize()
public long getMessagesReceived()
public long getFaultsReceiving()
public long getBytesReceived()
public long getMessagesSent()
public long getFaultsSending()
public long getBytesSent()
public long getTimeoutsReceiving()
public long getTimeoutsSending()
public long getMinSizeReceived()
public long getMaxSizeReceived()
public double getAvgSizeReceived()
public long getMinSizeSent()
public long getMaxSizeSent()
public double getAvgSizeSent()
public java.util.Map getResponseCodeTable()
public void resetStatistics()
public long getLastResetTime()
public long getMetricsWindow()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||