Class HttpCoreNIOSender
java.lang.Object
org.apache.axis2.handlers.AbstractHandler
org.apache.synapse.transport.nhttp.HttpCoreNIOSender
- All Implemented Interfaces:
org.apache.axis2.engine.Handler,org.apache.axis2.transport.base.ManagementSupport,org.apache.axis2.transport.TransportSender
- Direct Known Subclasses:
HttpCoreNIOSSLSender
public class HttpCoreNIOSender
extends org.apache.axis2.handlers.AbstractHandler
implements org.apache.axis2.transport.TransportSender, org.apache.axis2.transport.base.ManagementSupport
NIO transport sender for Axis2 based on HttpCore and NIO extensions
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.axis2.engine.Handler
org.apache.axis2.engine.Handler.InvocationResponse -
Field Summary
Fields inherited from class org.apache.axis2.handlers.AbstractHandler
handlerDesc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup(org.apache.axis2.context.MessageContext msgContext) intReturns the number of active threads processing messagesdoubledoublelonglonglonglonglonglonglonglonglonglonglonglongintReturns the number of requestes queued in the thread poollonglongvoidinit(org.apache.axis2.context.ConfigurationContext cfgCtx, org.apache.axis2.description.TransportOutDescription transportOut) Initialize the transport sender, and execute reactor in new separate threadprotected ClientConnFactoryBuilderinitConnFactoryBuilder(org.apache.axis2.description.TransportOutDescription transportOut, org.apache.axis2.context.ConfigurationContext configurationContext) org.apache.axis2.engine.Handler.InvocationResponseinvoke(org.apache.axis2.context.MessageContext msgContext) transport sender invocation from Axis2 corevoidmaintenenceShutdown(long millis) voidpause()voidreload(org.apache.axis2.description.TransportOutDescription transportOut) Reload SSL configurations and reset all connectionsvoidvoidresume()voidstop()Methods inherited from class org.apache.axis2.handlers.AbstractHandler
cleanup, flowComplete, getHandlerDesc, getName, getParameter, init, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.axis2.engine.Handler
cleanup, flowComplete, getHandlerDesc, getName, getParameter, initMethods inherited from interface org.apache.axis2.transport.TransportSender
onAppError
-
Constructor Details
-
HttpCoreNIOSender
public HttpCoreNIOSender()
-
-
Method Details
-
initConnFactoryBuilder
protected ClientConnFactoryBuilder initConnFactoryBuilder(org.apache.axis2.description.TransportOutDescription transportOut, org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault - Throws:
org.apache.axis2.AxisFault
-
init
public void init(org.apache.axis2.context.ConfigurationContext cfgCtx, org.apache.axis2.description.TransportOutDescription transportOut) throws org.apache.axis2.AxisFault Initialize the transport sender, and execute reactor in new separate thread- Specified by:
initin interfaceorg.apache.axis2.transport.TransportSender- Parameters:
cfgCtx- the Axis2 configuration contexttransportOut- the description of the http/s transport from Axis2 configuration- Throws:
org.apache.axis2.AxisFault- thrown on an error
-
invoke
public org.apache.axis2.engine.Handler.InvocationResponse invoke(org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault transport sender invocation from Axis2 core- Specified by:
invokein interfaceorg.apache.axis2.engine.Handler- Parameters:
msgContext- message to be sent- Returns:
- the invocation response (always InvocationResponse.CONTINUE)
- Throws:
org.apache.axis2.AxisFault- on error
-
cleanup
public void cleanup(org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault - Specified by:
cleanupin interfaceorg.apache.axis2.transport.TransportSender- Throws:
org.apache.axis2.AxisFault
-
stop
public void stop()- Specified by:
stopin interfaceorg.apache.axis2.transport.TransportSender
-
pause
public void pause() throws org.apache.axis2.AxisFault- Specified by:
pausein interfaceorg.apache.axis2.transport.base.ManagementSupport- Throws:
org.apache.axis2.AxisFault
-
resume
public void resume() throws org.apache.axis2.AxisFault- Specified by:
resumein interfaceorg.apache.axis2.transport.base.ManagementSupport- Throws:
org.apache.axis2.AxisFault
-
maintenenceShutdown
public void maintenenceShutdown(long millis) throws org.apache.axis2.AxisFault - Specified by:
maintenenceShutdownin interfaceorg.apache.axis2.transport.base.ManagementSupport- Throws:
org.apache.axis2.AxisFault
-
getActiveThreadCount
public int getActiveThreadCount()Returns the number of active threads processing messages- Specified by:
getActiveThreadCountin interfaceorg.apache.axis2.transport.base.ManagementSupport- Returns:
- number of active threads processing messages
-
getQueueSize
public int getQueueSize()Returns the number of requestes queued in the thread pool- Specified by:
getQueueSizein interfaceorg.apache.axis2.transport.base.ManagementSupport- Returns:
- queue size
-
getMessagesReceived
public long getMessagesReceived()- Specified by:
getMessagesReceivedin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getFaultsReceiving
public long getFaultsReceiving()- Specified by:
getFaultsReceivingin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getBytesReceived
public long getBytesReceived()- Specified by:
getBytesReceivedin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getMessagesSent
public long getMessagesSent()- Specified by:
getMessagesSentin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getFaultsSending
public long getFaultsSending()- Specified by:
getFaultsSendingin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getBytesSent
public long getBytesSent()- Specified by:
getBytesSentin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getTimeoutsReceiving
public long getTimeoutsReceiving()- Specified by:
getTimeoutsReceivingin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getTimeoutsSending
public long getTimeoutsSending()- Specified by:
getTimeoutsSendingin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getMinSizeReceived
public long getMinSizeReceived()- Specified by:
getMinSizeReceivedin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getMaxSizeReceived
public long getMaxSizeReceived()- Specified by:
getMaxSizeReceivedin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getAvgSizeReceived
public double getAvgSizeReceived()- Specified by:
getAvgSizeReceivedin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getMinSizeSent
public long getMinSizeSent()- Specified by:
getMinSizeSentin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getMaxSizeSent
public long getMaxSizeSent()- Specified by:
getMaxSizeSentin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getAvgSizeSent
public double getAvgSizeSent()- Specified by:
getAvgSizeSentin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getResponseCodeTable
- Specified by:
getResponseCodeTablein interfaceorg.apache.axis2.transport.base.ManagementSupport
-
resetStatistics
public void resetStatistics()- Specified by:
resetStatisticsin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getLastResetTime
public long getLastResetTime()- Specified by:
getLastResetTimein interfaceorg.apache.axis2.transport.base.ManagementSupport
-
getMetricsWindow
public long getMetricsWindow()- Specified by:
getMetricsWindowin interfaceorg.apache.axis2.transport.base.ManagementSupport
-
reload
public void reload(org.apache.axis2.description.TransportOutDescription transportOut) throws org.apache.axis2.AxisFault Reload SSL configurations and reset all connections- Parameters:
transportOut- TransportOutDescriptin of the configuration- Throws:
org.apache.axis2.AxisFault
-