ome.services.blitz.redirect
Class ConfigRedirector
java.lang.Object
ome.services.blitz.redirect.AbstractRedirector
ome.services.blitz.redirect.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigRedirector
public ConfigRedirector(Executor ex)
getProxyOrNull
public Glacier2.SessionPrx getProxyOrNull(Redirector.Context ctx,
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,
Set<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,
String downUuid)
- Description copied from interface:
Redirector
- Gives the
Redirector
a chance to remove the current Ring
when it is being shutdown.
OmeroJava Api
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.