public interface Redirector
Ring
instance decide whether to
redirect SessionPrx
creation to another SessionManagerI
instance. The Ring
instance is passed inModifier 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,
java.util.Set<java.lang.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,
java.lang.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,
java.lang.String uuid)
Gives the
Redirector a chance to remove the current Ring
when it is being shutdown. |
Glacier2.SessionPrx getProxyOrNull(Redirector.Context context, java.lang.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.CannotCreateSessionException
void chooseNextRedirect(Redirector.Context context, java.util.Set<java.lang.String> nodeUuids)
Redirector
a chance to configure the next appropriate
redirect based on the Set
of current Node
uuids.void handleRingShutdown(Redirector.Context context, java.lang.String uuid)
Redirector
a chance to remove the current Ring
when it is being shutdown.
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.