|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.transport.passthru.core.PassThroughListeningIOReactorManager
public class PassThroughListeningIOReactorManager
| Method Summary | |
|---|---|
boolean |
closeAllPTTListenerEndpoints(int port)
Close all endpoints started by PTT Listeners. |
boolean |
closeDynamicPTTEndpoint(int port)
Close external endpoints listen in shared IO Reactor |
static PassThroughListeningIOReactorManager |
getInstance()
Provide manager object for internal services |
ServerIODispatch |
getServerIODispatch(int port)
Return ServerIODispatch registered under given port |
SourceConfiguration |
getSharedPassThroughSourceConfiguration()
|
org.apache.http.nio.reactor.ListeningIOReactor |
initIOReactor(int port,
org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler,
PassThroughSharedListenerConfiguration passThroughSharedListenerConfiguration)
Create IOReactor with given configuration |
boolean |
isDynamicEndpointRunning(int port)
Check whether dynamic endpoint is running for a particular port |
void |
pauseIOReactor(int port)
Pause IO Reactor which is registered by HTTPListener running on given port |
void |
resumeIOReactor(int port)
Resume IO Reactor which is registered by HTTPListener running on given port |
void |
shutdownIOReactor(int port)
ShutdownIOReactor which is registered by HTTPListener running on given port |
void |
shutdownIOReactor(int port,
long miliSeconds)
ShutdownIOReactor which is registered by HTTPListener running on given port |
boolean |
startDynamicPTTEndpoint(InetSocketAddress inetSocketAddress,
org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler,
String endpointName)
Start Endpoint in IOReactor which is external to PTT Axis2 Listeners started at server startup |
void |
startIOReactor(org.apache.http.nio.reactor.ListeningIOReactor listeningIOReactor,
ServerIODispatch serverIODispatch,
String prefix)
StartIOReactor with given ServerIODispatch |
boolean |
startPTTEndpoint(InetSocketAddress inetSocketAddress,
org.apache.http.impl.nio.reactor.DefaultListeningIOReactor defaultListeningIOReactor,
String namePrefix)
Start PTT Endpoint which is given by axis2.xml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static PassThroughListeningIOReactorManager getInstance()
public boolean startPTTEndpoint(InetSocketAddress inetSocketAddress,
org.apache.http.impl.nio.reactor.DefaultListeningIOReactor defaultListeningIOReactor,
String namePrefix)
inetSocketAddress - Socket Address of starting endpointdefaultListeningIOReactor - IO Reactor which starts EndpointnamePrefix - name specified for endpoint
public boolean startDynamicPTTEndpoint(InetSocketAddress inetSocketAddress,
org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler,
String endpointName)
inetSocketAddress - Socket Address of starting endpointnHttpServerEventHandler - ServerHandler responsible for handle events of portendpointName - Endpoint Name
public org.apache.http.nio.reactor.ListeningIOReactor initIOReactor(int port,
org.apache.http.nio.NHttpServerEventHandler nHttpServerEventHandler,
PassThroughSharedListenerConfiguration passThroughSharedListenerConfiguration)
throws org.apache.http.nio.reactor.IOReactorException
port - Port of the Endpoint for axis2 ListenernHttpServerEventHandler - Server Handler responsible for handle events of portpassThroughSharedListenerConfiguration - configuration related to create and start IOReactor
org.apache.http.nio.reactor.IOReactorExceptionpublic boolean closeDynamicPTTEndpoint(int port)
port - Port of the endpoint need to close
public boolean closeAllPTTListenerEndpoints(int port)
port - Port of the Endpoint for PTT axis2 Listener
public ServerIODispatch getServerIODispatch(int port)
port - Port of axis2 PTT Listener
public SourceConfiguration getSharedPassThroughSourceConfiguration()
public void shutdownIOReactor(int port)
throws IOException
port - Port of axis2 PTT Listener
IOException - Exception throwing when Shutdown
public void shutdownIOReactor(int port,
long miliSeconds)
throws IOException
port - Port of axis2 PTT ListenermiliSeconds - Waiting Time before close IO Reactor
IOException - Exception throwing when Shutdown
public void pauseIOReactor(int port)
throws IOException
port - Port of axis2 PTT Listener
IOException - Exception throwing when pausing
public void resumeIOReactor(int port)
throws IOException
port - Port of axis2 PTT Listener
IOException - Exception throwing when pausing
public void startIOReactor(org.apache.http.nio.reactor.ListeningIOReactor listeningIOReactor,
ServerIODispatch serverIODispatch,
String prefix)
listeningIOReactor - Listening IO Reactor to be startserverIODispatch - underlying Event Dispatcher for Reactorprefix - HTTP/HTTPSpublic boolean isDynamicEndpointRunning(int port)
port - port
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||