public abstract class AbstractTransportSender
extends org.apache.axis2.handlers.AbstractHandler
implements org.apache.axis2.transport.TransportSender
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.axis2.context.ConfigurationContext |
cfgCtx
the axis2 configuration context
|
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 the sender
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTransportSender()
A constructor that makes subclasses pick up the correct logger
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(org.apache.axis2.context.MessageContext msgContext) |
org.apache.axis2.context.MessageContext |
createResponseMessageContext(org.apache.axis2.context.MessageContext outMsgCtx)
Create a new axis MessageContext for an incoming response message
through this transport, for the given outgoing message
|
int |
getActiveThreadCount()
Returns the number of active threads processing messages
|
double |
getAvgSizeReceived() |
double |
getAvgSizeSent() |
long |
getBytesReceived() |
long |
getBytesSent() |
long |
getFaultsReceiving() |
long |
getFaultsSending() |
long |
getLastResetTime() |
long |
getMaxSizeReceived() |
long |
getMaxSizeSent() |
long |
getMessagesReceived() |
long |
getMessagesSent() |
long |
getMetricsWindow() |
long |
getMinSizeReceived() |
long |
getMinSizeSent() |
int |
getQueueSize()
Return the number of requests queued in the thread pool
|
Map |
getResponseCodeTable() |
long |
getTimeoutsReceiving() |
long |
getTimeoutsSending() |
String |
getTransportName() |
protected void |
handleException(String msg) |
protected void |
handleException(String msg,
Exception e) |
void |
handleIncomingMessage(org.apache.axis2.context.MessageContext msgCtx,
Map trpHeaders,
String soapAction,
String contentType)
Process a new incoming message (Response) through the axis engine
|
void |
init(org.apache.axis2.context.ConfigurationContext cfgCtx,
org.apache.axis2.description.TransportOutDescription transportOut)
Initialize the generic transport sender.
|
org.apache.axis2.engine.Handler.InvocationResponse |
invoke(org.apache.axis2.context.MessageContext msgContext) |
protected void |
logException(String msg,
Exception e) |
void |
maintenenceShutdown(long millis) |
void |
pause() |
void |
resetStatistics() |
void |
resume() |
abstract void |
sendMessage(org.apache.axis2.context.MessageContext msgCtx,
String targetEPR,
org.apache.axis2.transport.OutTransportInfo outTransportInfo) |
void |
stop() |
protected boolean |
waitForSynchronousResponse(org.apache.axis2.context.MessageContext msgCtx)
Should the transport sender wait for a synchronous response to be received?
|
flowComplete, getHandlerDesc, getName, getParameter, init, toStringprotected org.apache.commons.logging.Log log
protected org.apache.axis2.context.ConfigurationContext cfgCtx
protected MetricsCollector metrics
protected AbstractTransportSender()
public void init(org.apache.axis2.context.ConfigurationContext cfgCtx,
org.apache.axis2.description.TransportOutDescription transportOut)
throws org.apache.axis2.AxisFault
init in interface org.apache.axis2.transport.TransportSendercfgCtx - the axis configuration contexttransportOut - the transport-out descriptionorg.apache.axis2.AxisFault - on errorpublic void stop()
stop in interface org.apache.axis2.transport.TransportSenderpublic void cleanup(org.apache.axis2.context.MessageContext msgContext)
throws org.apache.axis2.AxisFault
cleanup in interface org.apache.axis2.transport.TransportSenderorg.apache.axis2.AxisFaultpublic abstract void sendMessage(org.apache.axis2.context.MessageContext msgCtx,
String targetEPR,
org.apache.axis2.transport.OutTransportInfo outTransportInfo)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic org.apache.axis2.engine.Handler.InvocationResponse invoke(org.apache.axis2.context.MessageContext msgContext)
throws org.apache.axis2.AxisFault
invoke in interface org.apache.axis2.engine.Handlerorg.apache.axis2.AxisFaultpublic void handleIncomingMessage(org.apache.axis2.context.MessageContext msgCtx,
Map trpHeaders,
String soapAction,
String contentType)
msgCtx - the axis MessageContexttrpHeaders - the map containing transport level message headerssoapAction - the optional soap action or nullcontentType - the optional content-type for the messagepublic org.apache.axis2.context.MessageContext createResponseMessageContext(org.apache.axis2.context.MessageContext outMsgCtx)
outMsgCtx - the outgoing messageprotected boolean waitForSynchronousResponse(org.apache.axis2.context.MessageContext msgCtx)
msgCtx - the outgoing message contextpublic String getTransportName()
protected void handleException(String msg, Exception e) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultprotected void handleException(String msg) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic void pause()
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic void resume()
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic void maintenenceShutdown(long millis)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic 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 Map getResponseCodeTable()
public void resetStatistics()
public long getLastResetTime()
public long getMetricsWindow()
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.