- All Superinterfaces:
Object
Represents the main entry point into the IceGrid registry service. It provides operations to create sessions
with the registry.
Remarks:
The Slice compiler generated this skeleton interface from Slice interface ::IceGrid::Registry.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult -
Method Summary
Modifier and TypeMethodDescriptioncreateAdminSessionAsync(String userId, String password, Current current) Creates an administrative session.Creates an administrative session from a secure connection.createSessionAsync(String userId, String password, Current current) Creates a client session.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.getSessionTimeoutAsync(Current current) Gets the session timeout.static StringGets the type ID of the associated Slice interface.
-
Method Details
-
createSessionAsync
CompletionStage<SessionPrx> createSessionAsync(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.
-
createAdminSessionAsync
CompletionStage<AdminSessionPrx> createAdminSessionAsync(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.
-
createSessionFromSecureConnectionAsync
CompletionStage<SessionPrx> createSessionFromSecureConnectionAsync(Current current) throws PermissionDeniedException 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.
-
createAdminSessionFromSecureConnectionAsync
CompletionStage<AdminSessionPrx> createAdminSessionFromSecureConnectionAsync(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.
-
getSessionTimeoutAsync
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:
dispatchin interfaceObject- Parameters:
request- the incoming request- Returns:
- the outgoing response
- Throws:
UserException- if aUserExceptionis thrown, Ice will marshal it as the response payload.
-