Package omero.api

Interface _ISessionOperationsNC

    • Method Detail

      • createSessionWithTimeouts_async

        void createSessionWithTimeouts_async​(AMD_ISession_createSessionWithTimeouts __cb,
                                             Principal principal,
                                             long timeToLiveMilliseconds,
                                             long timeToIdleMilliseconds)
                                      throws Glacier2.CannotCreateSessionException,
                                             ServerError
        Allows an admin to create a Session for the given Principal.
        Parameters:
        __cb - The callback object for the operation.
        principal - Non-null Principal with the target user's name
        timeToLiveMilliseconds - The time that this Session has until destruction. Setting the value to 0 will prevent destruction unless the session remains idle.
        timeToIdleMilliseconds - The time that this Session can remain idle before being destroyed. Setting the value to 0 will prevent idleness based destruction.
        Throws:
        Glacier2.CannotCreateSessionException
        ServerError
      • getReferenceCount_async

        void getReferenceCount_async​(AMD_ISession_getReferenceCount __cb,
                                     java.lang.String sessionUuid)
                              throws ServerError
        Retrieves the current reference count for the given uuid. Has the same semantics as getSession.
        Parameters:
        __cb - The callback object for the operation.
        Throws:
        ServerError
      • closeSession_async

        void closeSession_async​(AMD_ISession_closeSession __cb,
                                Session sess)
                         throws ServerError
        Closes session and releases all resources. It is preferred that all clients call this method as soon as possible to free memory, but it is possible to not call close, and rejoin a session later. The current reference count for the session is returned. If the session does not exist, -1. If this call caused the death of the session, then -2.
        Parameters:
        __cb - The callback object for the operation.
        Throws:
        ServerError
      • getMyOpenSessions_async

        void getMyOpenSessions_async​(AMD_ISession_getMyOpenSessions __cb)
                              throws ServerError
        Returns a list of open sessions for the current user. The list is ordered by session creation time, so that the last item was created last.
        Parameters:
        __cb - The callback object for the operation.
        Throws:
        ServerError
      • getMyOpenAgentSessions_async

        void getMyOpenAgentSessions_async​(AMD_ISession_getMyOpenAgentSessions __cb,
                                          java.lang.String agent)
                                   throws ServerError
        Like getMyOpenSessions but returns only those sessions with the given agent string.
        Parameters:
        __cb - The callback object for the operation.
        Throws:
        ServerError
      • getMyOpenClientSessions_async

        void getMyOpenClientSessions_async​(AMD_ISession_getMyOpenClientSessions __cb)
                                    throws ServerError
        Like getMyOpenSessions but returns only those sessions started by official OMERO clients.
        Parameters:
        __cb - The callback object for the operation.
        Throws:
        ServerError
      • getInput_async

        void getInput_async​(AMD_ISession_getInput __cb,
                            java.lang.String sess,
                            java.lang.String key)
                     throws ServerError
        Retrieves an entry from the given Session input environment.
        Parameters:
        __cb - The callback object for the operation.
        Throws:
        ServerError
      • getOutput_async

        void getOutput_async​(AMD_ISession_getOutput __cb,
                             java.lang.String sess,
                             java.lang.String key)
                      throws ServerError
        Retrieves an entry from the Session output environment.
        Parameters:
        __cb - The callback object for the operation.
        Throws:
        ServerError
      • setInput_async

        void setInput_async​(AMD_ISession_setInput __cb,
                            java.lang.String sess,
                            java.lang.String key,
                            RType value)
                     throws ServerError
        Places an entry in the given Session input environment. If the value is null, the key will be removed.
        Parameters:
        __cb - The callback object for the operation.
        Throws:
        ServerError
      • setOutput_async

        void setOutput_async​(AMD_ISession_setOutput __cb,
                             java.lang.String sess,
                             java.lang.String key,
                             RType value)
                      throws ServerError
        Places an entry in the given Session output environment. If the value is null, the key will be removed.
        Parameters:
        __cb - The callback object for the operation.
        Throws:
        ServerError
      • getInputs_async

        void getInputs_async​(AMD_ISession_getInputs __cb,
                             java.lang.String sess)
                      throws ServerError
        Retrieves all inputs from the given Session input environment.
        Parameters:
        __cb - The callback object for the operation.
        Throws:
        ServerError
      • getOutputs_async

        void getOutputs_async​(AMD_ISession_getOutputs __cb,
                              java.lang.String sess)
                       throws ServerError
        Retrieves all outputs from the given Session input environment.
        Parameters:
        __cb - The callback object for the operation.
        Throws:
        ServerError