org.apache.axis2.transport.base.datagram
Class AbstractDatagramTransportListener<E extends DatagramEndpoint>

java.lang.Object
  extended by org.apache.axis2.transport.base.AbstractTransportListener
      extended by org.apache.axis2.transport.base.AbstractTransportListenerEx<E>
          extended by org.apache.axis2.transport.base.datagram.AbstractDatagramTransportListener<E>
All Implemented Interfaces:
TransportListener

public abstract class AbstractDatagramTransportListener<E extends DatagramEndpoint>
extends AbstractTransportListenerEx<E>


Field Summary
 
Fields inherited from class org.apache.axis2.transport.base.AbstractTransportListener
cfgCtx, config, isNonBlocking, log, metrics, state, useAxis2ThreadPool, workerPool
 
Fields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
AbstractDatagramTransportListener()
           
 
Method Summary
protected abstract  DatagramDispatcher<E> createDispatcher(DatagramDispatcherCallback callback)
           
protected  E createEndpoint()
           
 void destroy()
           
protected abstract  E doCreateEndpoint()
           
protected  void doInit()
          Initialize the transport.
protected  void startEndpoint(E endpoint)
           
protected  void stopEndpoint(E endpoint)
           
 
Methods inherited from class org.apache.axis2.transport.base.AbstractTransportListenerEx
getEndpoints, getEPRsForService, init, start, startListeningForService, stop, stopListeningForService
 
Methods inherited from class org.apache.axis2.transport.base.AbstractTransportListener
createMessageContext, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDatagramTransportListener

public AbstractDatagramTransportListener()
Method Detail

doInit

protected void doInit()
               throws AxisFault
Description copied from class: AbstractTransportListenerEx
Initialize the transport. This method will be called after the initialization work in AbstractTransportListener and before the first endpoint is created, i.e. before the first call to AbstractTransportListenerEx.createEndpoint().

Specified by:
doInit in class AbstractTransportListenerEx<E extends DatagramEndpoint>
Throws:
AxisFault

createEndpoint

protected final E createEndpoint()
Specified by:
createEndpoint in class AbstractTransportListenerEx<E extends DatagramEndpoint>

doCreateEndpoint

protected abstract E doCreateEndpoint()

startEndpoint

protected void startEndpoint(E endpoint)
                      throws AxisFault
Specified by:
startEndpoint in class AbstractTransportListenerEx<E extends DatagramEndpoint>
Throws:
AxisFault

stopEndpoint

protected void stopEndpoint(E endpoint)
Specified by:
stopEndpoint in class AbstractTransportListenerEx<E extends DatagramEndpoint>

destroy

public void destroy()
Specified by:
destroy in interface TransportListener
Overrides:
destroy in class AbstractTransportListener

createDispatcher

protected abstract DatagramDispatcher<E> createDispatcher(DatagramDispatcherCallback callback)
                                                                            throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.