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