public interface _RouterOperationsNC extends Ice._RouterOperationsNC
Router
interface.| Modifier and Type | Method and Description |
|---|---|
void |
createSession_async(AMD_Router_createSession __cb,
java.lang.String userId,
java.lang.String password)
Create a per-client session with the router.
|
void |
createSessionFromSecureConnection_async(AMD_Router_createSessionFromSecureConnection __cb)
Create a per-client session with the router.
|
void |
destroySession()
Destroy the calling client's session with this router.
|
int |
getACMTimeout()
Get the value of the ACM timeout.
|
java.lang.String |
getCategoryForClient()
This category must be used in the identities of all of the client's
callback objects.
|
long |
getSessionTimeout()
Get the value of the session timeout.
|
void |
refreshSession_async(AMD_Router_refreshSession __cb)
Keep the calling client's session with this router alive.
|
addProxies, getClientProxy, getServerProxyjava.lang.String getCategoryForClient()
void createSession_async(AMD_Router_createSession __cb, java.lang.String userId, java.lang.String password) throws CannotCreateSessionException, PermissionDeniedException
SessionManager has been installed, a proxy to a Session
object is returned to the client. Otherwise, null is returned
and only an internal session (i.e., not visible to the client)
is created.
If a session proxy is returned, it must be configured to route
through the router that created it. This will happen automatically
if the router is configured as the client's default router at the
time the session proxy is created in the client process, otherwise
the client must configure the session proxy explicitly.__cb - The callback object for the operation.userId - The user id for which to check the password.password - The password for the given user id.PermissionDeniedException - Raised if the password for
the given user id is not correct, or if the user is not allowed
access.CannotCreateSessionException - Raised if the session
cannot be created.void createSessionFromSecureConnection_async(AMD_Router_createSessionFromSecureConnection __cb) throws CannotCreateSessionException, PermissionDeniedException
SessionManager has been
installed, a proxy to a Session object is returned to the
client. Otherwise, null is returned and only an internal
session (i.e., not visible to the client) is created.
If a session proxy is returned, it must be configured to route
through the router that created it. This will happen automatically
if the router is configured as the client's default router at the
time the session proxy is created in the client process, otherwise
the client must configure the session proxy explicitly.__cb - The callback object for the operation.PermissionDeniedException - Raised if the user cannot be
authenticated or if the user is not allowed access.CannotCreateSessionException - Raised if the session
cannot be created.void refreshSession_async(AMD_Router_refreshSession __cb) throws SessionNotExistException
__cb - The callback object for the operation.SessionNotExistException - Raised if no session exists
for the calling client.void destroySession()
throws SessionNotExistException
SessionNotExistException - Raised if no session exists
for the calling client.long getSessionTimeout()
int getACMTimeout()