Package org.apache.axis2.transport.base
Class AbstractTransportListenerEx<E extends ProtocolEndpoint>
java.lang.Object
org.apache.axis2.transport.base.AbstractTransportListener
org.apache.axis2.transport.base.AbstractTransportListenerEx<E>
- Type Parameters:
E- the type of protocol endpoint for this transport
- All Implemented Interfaces:
TransportListener
- Direct Known Subclasses:
AbstractDatagramTransportListener,AbstractPollingTransportListener
public abstract class AbstractTransportListenerEx<E extends ProtocolEndpoint>
extends AbstractTransportListener
Partial implementation of
AbstractTransportListener with a higher level
of abstraction. It maintains the mapping between services and protocol specific
endpoints.
Note: the intention is to eventually merge the code in this class into
AbstractTransportListener
-
Field Summary
Fields inherited from class org.apache.axis2.transport.base.AbstractTransportListener
cfgCtx, config, isNonBlocking, log, metrics, state, useAxis2ThreadPool, workerPoolFields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Eprotected abstract voiddoInit()Initialize the transport.final Collection<E> Get the collection of all protocol endpoints managed by this transport, including the endpoint configured at the transport level.getEPRsForService(String serviceName, String ip) final voidinit(ConfigurationContext cfgCtx, TransportInDescription transportIn) Initialize the generic transport.voidstart()protected abstract voidstartEndpoint(E endpoint) protected final voidstartListeningForService(AxisService service) voidstop()protected abstract voidstopEndpoint(E endpoint) protected final voidstopListeningForService(AxisService service) Methods inherited from class org.apache.axis2.transport.base.AbstractTransportListener
createMessageContext, destroy, disableTransportForService, getActiveThreadCount, getAvgSizeReceived, getAvgSizeSent, getBytesReceived, getBytesSent, getConfigurationContext, getEPRForService, getEPRsForService, getFaultsReceiving, getFaultsSending, getLastResetTime, getMaxSizeReceived, getMaxSizeSent, getMessagesReceived, getMessagesSent, getMetricsCollector, getMetricsWindow, getMinSizeReceived, getMinSizeSent, getQueueSize, getResponseCodeTable, getSessionContext, getTimeoutsReceiving, getTimeoutsSending, getTransportInDescription, getTransportName, handleException, handleIncomingMessage, logException, maintenenceShutdown, pause, resetStatistics, resume
-
Constructor Details
-
AbstractTransportListenerEx
public AbstractTransportListenerEx()
-
-
Method Details
-
init
public final void init(ConfigurationContext cfgCtx, TransportInDescription transportIn) throws AxisFault Description copied from class:AbstractTransportListenerInitialize the generic transport. Sets up the transport and the thread pool to be used for message processing. Also creates an AxisObserver that gets notified of service life cycle events for the transport to act on- Specified by:
initin interfaceTransportListener- Overrides:
initin classAbstractTransportListener- Parameters:
cfgCtx- the axis configuration contexttransportIn- the transport-in description- Throws:
AxisFault- on error
-
doInit
Initialize the transport. This method will be called after the initialization work inAbstractTransportListenerand before the first endpoint is created, i.e. before the first call tocreateEndpoint().- Throws:
AxisFault
-
start
- Specified by:
startin interfaceTransportListener- Overrides:
startin classAbstractTransportListener- Throws:
AxisFault
-
stop
- Specified by:
stopin interfaceTransportListener- Overrides:
stopin classAbstractTransportListener- Throws:
AxisFault
-
getEPRsForService
- Specified by:
getEPRsForServicein interfaceTransportListener- Overrides:
getEPRsForServicein classAbstractTransportListener- Throws:
AxisFault
-
getEndpoints
Get the collection of all protocol endpoints managed by this transport, including the endpoint configured at the transport level.- Returns:
- the collection of all protocol endpoints
-
createEndpoint
-
startListeningForService
- Specified by:
startListeningForServicein classAbstractTransportListener- Throws:
AxisFault
-
startEndpoint
- Throws:
AxisFault
-
stopListeningForService
- Specified by:
stopListeningForServicein classAbstractTransportListener
-
stopEndpoint
-