Class AbstractRedirector

    • Field Detail

      • log

        protected final org.slf4j.Logger log
      • executor

        protected final ome.services.util.Executor executor
    • Constructor Detail

      • AbstractRedirector

        public AbstractRedirector​(ome.services.util.Executor ex)
    • Method Detail

      • getProxyOrNull

        public Glacier2.SessionPrx getProxyOrNull​(Redirector.Context ctx,
                                                  java.lang.String userId,
                                                  Glacier2.SessionControlPrx control,
                                                  Ice.Current current)
                                           throws Glacier2.CannotCreateSessionException
        Returns null early if the Current has already once been routed by a Redirector implementation, returns an existing session if it can be found, or returns a null.
        Specified by:
        getProxyOrNull in interface Redirector
        userId - Not null.
        Returns:
        Possibly null.
        Throws:
        Glacier2.CannotCreateSessionException
        See Also:
        ROUTED_FROM
      • alreadyRouted

        protected boolean alreadyRouted​(Ice.Current current)
      • obtainProxy

        protected Glacier2.SessionPrx obtainProxy​(java.lang.String proxyString,
                                                  Redirector.Context ctx,
                                                  java.lang.String userId,
                                                  Glacier2.SessionControlPrx control,
                                                  Ice.Current current)
                                           throws Glacier2.CannotCreateSessionException
        Throws:
        Glacier2.CannotCreateSessionException
      • initializeRedirect

        protected boolean initializeRedirect​(Redirector.Context ctx,
                                             java.lang.String managerUuid)
        Set the new redirect value if null, or if the uuid is null or empty, then the existing redirect will be removed. Otherwise the value is set if it is currently missing.
      • findProxy

        protected java.lang.String findProxy​(Redirector.Context ctx,
                                             java.lang.String redirect)
      • proxyForSession

        protected java.lang.String proxyForSession​(Redirector.Context ctx,
                                                   java.lang.String sessionUuid)
      • nodeProxyQuery

        protected java.lang.String nodeProxyQuery​(Redirector.Context ctx,
                                                  java.lang.String uuid,
                                                  java.lang.String query)