public interface Redirector
Ring instance decide whether to
redirect SessionPrx creation to another SessionManagerI
instance. The Ring instance is passed in| Modifier and Type | Interface and Description |
|---|---|
static interface |
Redirector.Context
Interface implemented by Ring instances to allow passing in the context
necessary for making strategy decisions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
chooseNextRedirect(Redirector.Context context,
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 context,
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 context,
String uuid)
Gives the
Redirector a chance to remove the current Ring
when it is being shutdown. |
Glacier2.SessionPrx getProxyOrNull(Redirector.Context context, 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.userId - Not null.control - current - Glacier2.CannotCreateSessionExceptionvoid chooseNextRedirect(Redirector.Context context, Set<String> nodeUuids)
Redirector a chance to configure the next appropriate
redirect based on the Set of current Node uuids.void handleRingShutdown(Redirector.Context context, String uuid)
Redirector a chance to remove the current Ring
when it is being shutdown.
Version: 5.2.6-ice35-b35
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.