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
コンストラクタと説明 |
---|
ConfigRedirector(ome.services.util.Executor ex) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
chooseNextRedirect(Redirector.Context ctx,
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 ctx,
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 ctx,
java.lang.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 Glacier2.SessionPrx getProxyOrNull(Redirector.Context ctx, 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.getProxyOrNull
インタフェース内 Redirector
getProxyOrNull
クラス内 AbstractRedirector
userId
- Not null.control
- current
- Glacier2.CannotCreateSessionException
AbstractRedirector.ROUTED_FROM
public void chooseNextRedirect(Redirector.Context ctx, java.util.Set<java.lang.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, java.lang.String downUuid)
Redirector
Redirector
a chance to remove the current Ring
when it is being shutdown.