|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Redirector
Strategy interface for helping a Ring
instance decide whether to
redirect SessionPrx
creation to another SessionManagerI
instance. The Ring
instance is passed in
Nested Class Summary | |
---|---|
static interface |
Redirector.Context
Interface implemented by Ring instances to allow passing in the context necessary for making strategy decisions. |
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.CannotCreateSessionException
void 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.