- All Superinterfaces:
Object
Represents the main entry point into the IceGrid registry service. It provides operations to create sessions
with the registry.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptioncreateAdminSession
(String userId, String password, Current current) Creates an administrative session.Creates an administrative session from a secure connection.createSession
(String userId, String password, Current current) Creates a client session.createSessionFromSecureConnection
(Current current) Creates a client session from a secure connection.default CompletionStage<OutgoingResponse>
dispatch
(IncomingRequest request) Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.int
getSessionTimeout
(Current current) Gets the session timeout.static String
Gets the type ID of the associated Slice interface.
-
Method Details
-
createSession
SessionPrx createSession(String userId, String password, Current current) throws PermissionDeniedException Creates a client session.- Parameters:
userId
- The user ID.password
- The password for the given user.current
- The Current object of the incoming request.- Returns:
- A proxy to the newly created session. This proxy is never null.
- Throws:
PermissionDeniedException
- Thrown when authentication or authorization fails.
-
createAdminSession
AdminSessionPrx createAdminSession(String userId, String password, Current current) throws PermissionDeniedException Creates an administrative session.- Parameters:
userId
- The user ID.password
- The password for the given user.current
- The Current object of the incoming request.- Returns:
- A proxy to the newly created session. This proxy is never null.
- Throws:
PermissionDeniedException
- Thrown when authentication or authorization fails.
-
createSessionFromSecureConnection
Creates a client session from a secure connection.- Parameters:
current
- The Current object of the incoming request.- Returns:
- A proxy to the newly created session. This proxy is never null.
- Throws:
PermissionDeniedException
- Thrown when authentication or authorization fails.
-
createAdminSessionFromSecureConnection
AdminSessionPrx createAdminSessionFromSecureConnection(Current current) throws PermissionDeniedException Creates an administrative session from a secure connection.- Parameters:
current
- The Current object of the incoming request.- Returns:
- A proxy to the newly created session. This proxy is never null.
- Throws:
PermissionDeniedException
- Thrown when authentication or authorization fails.
-
getSessionTimeout
Gets the session timeout. An Ice 3.7 or earlier client can use this value to determine how often it needs to send heartbeats (using ACM) or callSessionPrx.keepAlive()
(resp.AdminSessionPrx.keepAlive()
) to keep a session alive in the IceGrid registry.- Parameters:
current
- The Current object of the incoming request.- Returns:
- The session timeout (in seconds).
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::IceGrid::Registry"
-
dispatch
Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.- Specified by:
dispatch
in interfaceObject
- Parameters:
request
- the incoming request- Returns:
- the outgoing response
- Throws:
UserException
- if aUserException
is thrown, Ice will marshal it as the response payload.
-