Interface Registry

All Superinterfaces:
Object

public interface Registry extends Object
Represents the main entry point into the IceGrid registry service. It provides operations to create sessions with the registry.
  • 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

      SessionPrx createSessionFromSecureConnection(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.
    • 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

      int getSessionTimeout(Current current)
      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 call SessionPrx.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

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::IceGrid::Registry"
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      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 interface Object
      Parameters:
      request - the incoming request
      Returns:
      the outgoing response
      Throws:
      UserException - if a UserException is thrown, Ice will marshal it as the response payload.