Class ConfigRedirector

  • All Implemented Interfaces:
    Redirector

    public class ConfigRedirector
    extends AbstractRedirector
    Redirector implementation which uses the REDIRECT config key via LocalConfig to know which Node is currently active.
    Since:
    Beta-4.0-RC2
    • Constructor Detail

      • ConfigRedirector

        public ConfigRedirector​(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
        Create or retrieve and returns a SessionPrx which the current method takes control of. If it is not returned, then it should be properly destroyed.
        Specified by:
        getProxyOrNull in interface Redirector
        Overrides:
        getProxyOrNull in class AbstractRedirector
        Parameters:
        userId - Not null.
        control -
        current -
        Returns:
        Possibly null.
        Throws:
        Glacier2.CannotCreateSessionException
        See Also:
        AbstractRedirector.ROUTED_FROM
      • chooseNextRedirect

        public void chooseNextRedirect​(Redirector.Context ctx,
                                       java.util.Set<java.lang.String> nodeUuids)
        Description copied from interface: Redirector
        Gives the Redirector a chance to configure the next appropriate redirect based on the Set of current Node uuids.
      • handleRingShutdown

        public void handleRingShutdown​(Redirector.Context ctx,
                                       java.lang.String downUuid)
        Description copied from interface: Redirector
        Gives the Redirector a chance to remove the current Ring when it is being shutdown.