org.apache.synapse.transport.base.datagram
Class AbstractDatagramTransportListener<E extends DatagramEndpoint>
java.lang.Object
org.apache.synapse.transport.base.AbstractTransportListener
org.apache.synapse.transport.base.datagram.AbstractDatagramTransportListener<E>
- All Implemented Interfaces:
- TransportListener
- Direct Known Subclasses:
- PipeListener, UDPListener
public abstract class AbstractDatagramTransportListener<E extends DatagramEndpoint>
- extends AbstractTransportListener
| Methods inherited from class org.apache.synapse.transport.base.AbstractTransportListener |
createMessageContext, disableTransportForService, getActiveThreadCount, getBytesReceived, getBytesSent, getEPRForService, getFaultsReceiving, getFaultsSending, getMessagesReceived, getMessagesSent, getMetricsCollector, getQueueSize, getSessionContext, getTransportName, handleException, handleIncomingMessage, logException, maintenenceShutdown, pause, resume, setTransportName, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDatagramTransportListener
public AbstractDatagramTransportListener()
init
public void init(ConfigurationContext cfgCtx,
TransportInDescription transportIn)
throws AxisFault
- Description copied from class:
AbstractTransportListener
- Initialize 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:
init in interface TransportListener- Overrides:
init in class AbstractTransportListener
- Parameters:
cfgCtx - the axis configuration contexttransportIn - the transport-in description
- Throws:
AxisFault - on error
startListeningForService
protected void startListeningForService(AxisService service)
- Specified by:
startListeningForService in class AbstractTransportListener
stopListeningForService
protected void stopListeningForService(AxisService service)
- Specified by:
stopListeningForService in class AbstractTransportListener
destroy
public void destroy()
- Specified by:
destroy in interface TransportListener- Overrides:
destroy in class AbstractTransportListener
getEPRsForService
public EndpointReference[] getEPRsForService(String serviceName,
String ip)
throws AxisFault
- Throws:
AxisFault
createDispatcher
protected abstract DatagramDispatcher<E> createDispatcher(DatagramDispatcherCallback callback)
throws IOException
- Throws:
IOException
createEndpoint
protected abstract E createEndpoint(AxisService service)
throws AxisFault
- Throws:
AxisFault
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.