Package ome.services.blitz.redirect
Interface Redirector
-
- All Known Implementing Classes:
AbstractRedirector,ConfigRedirector,NullRedirector,ScaleRedirector
public interface RedirectorStrategy interface for helping aRinginstance decide whether to redirectSessionPrxcreation to anotherSessionManagerIinstance. TheRinginstance is passed in- Since:
- Beta-4.0-RC2
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRedirector.ContextInterface implemented by Ring instances to allow passing in the context necessary for making strategy decisions.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchooseNextRedirect(Redirector.Context context, java.util.Set<java.lang.String> nodeUuids)Gives theRedirectora chance to configure the next appropriate redirect based on theSetof currentNodeuuids.Glacier2.SessionPrxgetProxyOrNull(Redirector.Context context, java.lang.String userId, Glacier2.SessionControlPrx control, Ice.Current current)Create or retrieve and returns aSessionPrxwhich the current method takes control of.voidhandleRingShutdown(Redirector.Context context, java.lang.String uuid)Gives theRedirectora chance to remove the currentRingwhen it is being shutdown.
-
-
-
Method Detail
-
getProxyOrNull
Glacier2.SessionPrx getProxyOrNull(Redirector.Context context, java.lang.String userId, Glacier2.SessionControlPrx control, Ice.Current current) throws Glacier2.CannotCreateSessionException
Create or retrieve and returns aSessionPrxwhich the current method takes control of. If it is not returned, then it should be properly destroyed.- Parameters:
userId- Not null.control-current-- Returns:
- Possibly null.
- Throws:
Glacier2.CannotCreateSessionException
-
chooseNextRedirect
void chooseNextRedirect(Redirector.Context context, java.util.Set<java.lang.String> nodeUuids)
Gives theRedirectora chance to configure the next appropriate redirect based on theSetof currentNodeuuids.
-
handleRingShutdown
void handleRingShutdown(Redirector.Context context, java.lang.String uuid)
Gives theRedirectora chance to remove the currentRingwhen it is being shutdown.
-
-