|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the service through which ConnectionManagement occurs.
Field Summary | |
static String |
ROLE
|
Method Summary | |
void |
connect(String name,
ServerSocket socket,
ConnectionHandlerFactory handlerFactory)
Start managing a connection. |
void |
connect(String name,
ServerSocket socket,
ConnectionHandlerFactory handlerFactory,
org.apache.excalibur.thread.ThreadPool threadPool)
Start managing a connection. |
void |
disconnect(String name)
This shuts down all handlers and socket, waiting for each to gracefully shutdown. |
void |
disconnect(String name,
boolean tearDown)
This shuts down all handlers and socket. |
Field Detail |
public static final String ROLE
Method Detail |
public void connect(String name, ServerSocket socket, ConnectionHandlerFactory handlerFactory, org.apache.excalibur.thread.ThreadPool threadPool) throws Exception
name
- the name of connectionsocket
- the ServerSocket from which tohandlerFactory
- the factory from which to aquire handlersthreadPool
- the thread pool to use
Exception
- if an error occurspublic void connect(String name, ServerSocket socket, ConnectionHandlerFactory handlerFactory) throws Exception
name
- the name of connectionsocket
- the ServerSocket from which tohandlerFactory
- the factory from which to aquire handlers
Exception
- if an error occurspublic void disconnect(String name) throws Exception
name
- the name of connection
Exception
- if an error occurspublic void disconnect(String name, boolean tearDown) throws Exception
name
- the name of connectiontearDown
- if true will forcefully tear down all handlers
Exception
- if an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |