public class ListenerManager extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.axis2.engine.ListenerManager.ListenerManagerShutdownThread |
shutdownHookThread |
Constructor and Description |
---|
ListenerManager() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(TransportInDescription trsIn,
boolean started)
Adds the listener described in the provided
TransportInDescription . |
void |
destroy() |
ConfigurationContext |
getConfigctx()
Returns the ConfigurationContext used for the initalization of the listener manager.
|
EndpointReference |
getEPRforService(String serviceName,
String opName,
String transportName)
To get an EPR for a given service
|
void |
init(ConfigurationContext configCtx)
Initializes the listener manager and the defined transports in the
AxisConfiguration |
boolean |
isListenerRunning(String transportName) |
boolean |
isShutdownHookRequired() |
boolean |
isStopped() |
void |
setShutdownHookRequired(boolean shutdownHookRequired) |
void |
start()
To start all the transports
|
void |
startSystem(ConfigurationContext configurationContext) |
void |
stop()
Stop all the transports and notify modules of shutdown.
|
protected org.apache.axis2.engine.ListenerManager.ListenerManagerShutdownThread shutdownHookThread
public void init(ConfigurationContext configCtx)
AxisConfiguration
configCtx
- used for the initializationpublic ConfigurationContext getConfigctx()
public EndpointReference getEPRforService(String serviceName, String opName, String transportName) throws AxisFault
serviceName
- the name of the serviceopName
- the operation nametransportName
- the name of the transport, or null.AxisFault
public void start()
public void startSystem(ConfigurationContext configurationContext)
public void stop() throws AxisFault
AxisFault
public void addListener(TransportInDescription trsIn, boolean started) throws AxisFault
TransportInDescription
. Further
if the listener represented by the TransportInDescription has already been initialized and
started the boolean started
input parameter has to be provided as
true
.
It is not possible to add a listener which is already initialized but not started to the
listener manager, even though the above is a condition that has to be satisfied there is no
means of enforcing that, becuase the TransportListener
API doesn't provide a mechanism to test whether it is initialized or started.
If the caller is using an already intialized listener, then it is the responsability of
the caller to start the listener before adding it to the listener manager and pass the
started
parameter value as true
.
trsIn
- Transport in description (which contains Transport Listener) to be addedstarted
- whether the transport Listener that is being added is already started or notAxisFault
- will throw AxisFault if something goes wrongpublic boolean isListenerRunning(String transportName)
public boolean isStopped()
public boolean isShutdownHookRequired()
public void setShutdownHookRequired(boolean shutdownHookRequired)
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.