public class ConfigRedirector extends AbstractRedirector
Redirector
implementation which uses the REDIRECT
config key
via LocalConfig
to know which Node
is currently active.Redirector.Context
executor, log, ROUTED_FROM
Constructor and Description |
---|
ConfigRedirector(Executor ex) |
Modifier and Type | Method and Description |
---|---|
void |
chooseNextRedirect(Redirector.Context ctx,
Set<String> nodeUuids)
Gives the
Redirector a chance to configure the next appropriate
redirect based on the Set of current Node uuids. |
Glacier2.SessionPrx |
getProxyOrNull(Redirector.Context ctx,
String userId,
Glacier2.SessionControlPrx control,
Ice.Current current)
Create or retrieve and returns a
SessionPrx which the current
method takes control of. |
void |
handleRingShutdown(Redirector.Context ctx,
String downUuid)
Gives the
Redirector a chance to remove the current Ring
when it is being shutdown. |
alreadyRouted, findProxy, getRedirect, initializeRedirect, nodeProxyQuery, obtainProxy, proxyForSession
public ConfigRedirector(Executor ex)
public Glacier2.SessionPrx getProxyOrNull(Redirector.Context ctx, String userId, Glacier2.SessionControlPrx control, Ice.Current current) throws Glacier2.CannotCreateSessionException
SessionPrx
which the current
method takes control of. If it is not returned, then it should be
properly destroyed.getProxyOrNull
in interface Redirector
getProxyOrNull
in class AbstractRedirector
userId
- Not null.control
- current
- Glacier2.CannotCreateSessionException
AbstractRedirector.ROUTED_FROM
public void chooseNextRedirect(Redirector.Context ctx, Set<String> nodeUuids)
Redirector
Redirector
a chance to configure the next appropriate
redirect based on the Set
of current Node
uuids.public void handleRingShutdown(Redirector.Context ctx, String downUuid)
Redirector
Redirector
a chance to remove the current Ring
when it is being shutdown.
Version: 5.1.3-ice35-b52
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.