public class HttpCoreNIOSender
extends org.apache.axis2.handlers.AbstractHandler
implements org.apache.axis2.transport.TransportSender, org.apache.axis2.transport.base.ManagementSupport
| Constructor and Description |
|---|
HttpCoreNIOSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(org.apache.axis2.context.MessageContext msgContext) |
int |
getActiveThreadCount()
Returns the number of active threads processing messages
|
double |
getAvgSizeReceived() |
double |
getAvgSizeSent() |
long |
getBytesReceived() |
long |
getBytesSent() |
protected org.apache.http.nio.reactor.IOEventDispatch |
getEventDispatch(org.apache.http.nio.NHttpClientEventHandler handler,
SSLContext sslContext,
org.apache.http.nio.reactor.ssl.SSLSetupHandler sslIOSessionHandler,
org.apache.http.config.ConnectionConfig config,
org.apache.axis2.description.TransportOutDescription trpOut)
Return the IOEventDispatch implementation to be used.
|
long |
getFaultsReceiving() |
long |
getFaultsSending() |
long |
getLastResetTime() |
long |
getMaxSizeReceived() |
long |
getMaxSizeSent() |
long |
getMessagesReceived() |
long |
getMessagesSent() |
long |
getMetricsWindow() |
long |
getMinSizeReceived() |
long |
getMinSizeSent() |
int |
getQueueSize()
Returns the number of requestes queued in the thread pool
|
Map |
getResponseCodeTable() |
protected SSLContext |
getSSLContext(org.apache.axis2.description.TransportOutDescription transportOut)
Always return null, as this implementation does not support outgoing SSL
|
protected org.apache.http.nio.reactor.ssl.SSLSetupHandler |
getSSLSetupHandler(org.apache.axis2.description.TransportOutDescription transportOut)
Create the SSL IO Session handler to be used by this listener
|
long |
getTimeoutsReceiving() |
long |
getTimeoutsSending() |
void |
init(org.apache.axis2.context.ConfigurationContext cfgCtx,
org.apache.axis2.description.TransportOutDescription transportOut)
Initialize the transport sender, and execute reactor in new separate thread
|
org.apache.axis2.engine.Handler.InvocationResponse |
invoke(org.apache.axis2.context.MessageContext msgContext)
transport sender invocation from Axis2 core
|
void |
maintenenceShutdown(long millis) |
void |
pause() |
void |
resetStatistics() |
void |
resume() |
void |
stop() |
flowComplete, getHandlerDesc, getName, getParameter, init, toStringpublic 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 Axis2 configuration contexttransportOut - the description of the http/s transport from Axis2 configurationorg.apache.axis2.AxisFault - thrown on an errorprotected org.apache.http.nio.reactor.IOEventDispatch getEventDispatch(org.apache.http.nio.NHttpClientEventHandler handler,
SSLContext sslContext,
org.apache.http.nio.reactor.ssl.SSLSetupHandler sslIOSessionHandler,
org.apache.http.config.ConnectionConfig config,
org.apache.axis2.description.TransportOutDescription trpOut)
throws org.apache.axis2.AxisFault
handler - The NHTTP client handler instancesslContext - SSL context used by the sender or nullsslIOSessionHandler - SSL session handler or nullconfig - ConnectionConfig objecttrpOut - Transport out descriptionorg.apache.axis2.AxisFault - on errorprotected SSLContext getSSLContext(org.apache.axis2.description.TransportOutDescription transportOut) throws org.apache.axis2.AxisFault
transportOut - The transport out descriptionorg.apache.axis2.AxisFault - on errorprotected org.apache.http.nio.reactor.ssl.SSLSetupHandler getSSLSetupHandler(org.apache.axis2.description.TransportOutDescription transportOut)
throws org.apache.axis2.AxisFault
transportOut - Transport out descriptionorg.apache.axis2.AxisFault - on errorpublic 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.HandlermsgContext - message to be sentorg.apache.axis2.AxisFault - on errorpublic void cleanup(org.apache.axis2.context.MessageContext msgContext)
throws org.apache.axis2.AxisFault
cleanup in interface org.apache.axis2.transport.TransportSenderorg.apache.axis2.AxisFaultpublic void stop()
stop in interface org.apache.axis2.transport.TransportSenderpublic void pause()
throws org.apache.axis2.AxisFault
pause in interface org.apache.axis2.transport.base.ManagementSupportorg.apache.axis2.AxisFaultpublic void resume()
throws org.apache.axis2.AxisFault
resume in interface org.apache.axis2.transport.base.ManagementSupportorg.apache.axis2.AxisFaultpublic void maintenenceShutdown(long millis)
throws org.apache.axis2.AxisFault
maintenenceShutdown in interface org.apache.axis2.transport.base.ManagementSupportorg.apache.axis2.AxisFaultpublic int getActiveThreadCount()
getActiveThreadCount in interface org.apache.axis2.transport.base.ManagementSupportpublic int getQueueSize()
getQueueSize in interface org.apache.axis2.transport.base.ManagementSupportpublic long getMessagesReceived()
getMessagesReceived in interface org.apache.axis2.transport.base.ManagementSupportpublic long getFaultsReceiving()
getFaultsReceiving in interface org.apache.axis2.transport.base.ManagementSupportpublic long getBytesReceived()
getBytesReceived in interface org.apache.axis2.transport.base.ManagementSupportpublic long getMessagesSent()
getMessagesSent in interface org.apache.axis2.transport.base.ManagementSupportpublic long getFaultsSending()
getFaultsSending in interface org.apache.axis2.transport.base.ManagementSupportpublic long getBytesSent()
getBytesSent in interface org.apache.axis2.transport.base.ManagementSupportpublic long getTimeoutsReceiving()
getTimeoutsReceiving in interface org.apache.axis2.transport.base.ManagementSupportpublic long getTimeoutsSending()
getTimeoutsSending in interface org.apache.axis2.transport.base.ManagementSupportpublic long getMinSizeReceived()
getMinSizeReceived in interface org.apache.axis2.transport.base.ManagementSupportpublic long getMaxSizeReceived()
getMaxSizeReceived in interface org.apache.axis2.transport.base.ManagementSupportpublic double getAvgSizeReceived()
getAvgSizeReceived in interface org.apache.axis2.transport.base.ManagementSupportpublic long getMinSizeSent()
getMinSizeSent in interface org.apache.axis2.transport.base.ManagementSupportpublic long getMaxSizeSent()
getMaxSizeSent in interface org.apache.axis2.transport.base.ManagementSupportpublic double getAvgSizeSent()
getAvgSizeSent in interface org.apache.axis2.transport.base.ManagementSupportpublic Map getResponseCodeTable()
getResponseCodeTable in interface org.apache.axis2.transport.base.ManagementSupportpublic void resetStatistics()
resetStatistics in interface org.apache.axis2.transport.base.ManagementSupportpublic long getLastResetTime()
getLastResetTime in interface org.apache.axis2.transport.base.ManagementSupportpublic long getMetricsWindow()
getMetricsWindow in interface org.apache.axis2.transport.base.ManagementSupportCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.