|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MobilityController
Manages an instance of the Mobility-RPC library and provides access to its main APIs.
Provides access toMobilitySession objects, the gateway through which the application can send objects
to remote machines.
Provides access to a ConnectionManager object, allowing the application to request the library to bind/unbind
from ports/network interfaces to listen for incoming connections and receive objects from remote machines.
| Method Summary | |
|---|---|
void |
destroy()
Destroys (closes/shuts down) the resources managed by the controller, closing connections, stopping threads, releasing all sessions etc. |
ConnectionManager |
getConnectionManager()
Returns the ConnectionManager which manages connections for this controller. |
MobilitySession |
getSession(UUID sessionId)
Returns the existing session with the specified id, or if no such session with the id exists, (re)creates a new session with the same id and adds it to the session registry. |
MobilitySession |
newSession()
Creates a new session, with a newly generated UUID, and adds it to the session registry. |
void |
releaseSession(UUID sessionId)
Releases the given session immediately, if it is registered. |
| Method Detail |
|---|
ConnectionManager getConnectionManager()
ConnectionManager which manages connections for this controller.
ConnectionManager which manages connections for this controllerMobilitySession getSession(UUID sessionId)
sessionId - The session id of the session to return
MobilitySession newSession()
void releaseSession(UUID sessionId)
MobilitySession.release(), which includes logic to gracefully release
sessions after threads which are using them have finished. This method would release sessions while they are in
use, which could cause errors for requests executing in those sessions.
sessionId - The session id to releasevoid destroy()
destroy in interface Destroyable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||