public class ScaleRedirector extends AbstractRedirector
Redirector.Context
executor, log, ROUTED_FROM
Constructor and Description |
---|
ScaleRedirector(Executor ex) |
Modifier and Type | Method and Description |
---|---|
void |
chooseNextRedirect(Redirector.Context context,
Set<String> nodeUuids)
Does nothing since all redirects are chosen during
Redirector.getProxyOrNull(Context, String, Glacier2.SessionControlPrx, Ice.Current) |
Glacier2.SessionPrx |
getProxyOrNull(Redirector.Context ctx,
String userId,
Glacier2.SessionControlPrx control,
Ice.Current current)
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. |
void |
handleRingShutdown(Redirector.Context context,
String uuid)
Nothing needs to be done on shutdown, since the Ring implementation will
properly disable the
Node table queried during the next call to
Redirector.getProxyOrNull(Context, String, Glacier2.SessionControlPrx, Ice.Current) |
alreadyRouted, findProxy, getRedirect, initializeRedirect, nodeProxyQuery, obtainProxy, proxyForSession
public ScaleRedirector(Executor ex)
public Glacier2.SessionPrx getProxyOrNull(Redirector.Context ctx, String userId, Glacier2.SessionControlPrx control, Ice.Current current) throws Glacier2.CannotCreateSessionException
AbstractRedirector
Current
has already once been
routed by a Redirector
implementation, returns an existing
session if it can be found, or returns a null.getProxyOrNull
in interface Redirector
getProxyOrNull
in class AbstractRedirector
userId
- Not null.Glacier2.CannotCreateSessionException
AbstractRedirector.ROUTED_FROM
public void chooseNextRedirect(Redirector.Context context, Set<String> nodeUuids)
Redirector.getProxyOrNull(Context, String, Glacier2.SessionControlPrx, Ice.Current)
public void handleRingShutdown(Redirector.Context context, String uuid)
Node
table queried during the next call to
Redirector.getProxyOrNull(Context, String, Glacier2.SessionControlPrx, Ice.Current)
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.