Package ome.services.blitz.redirect
Interface Redirector
-
- All Known Implementing Classes:
AbstractRedirector
,ConfigRedirector
,NullRedirector
,ScaleRedirector
public interface Redirector
Strategy interface for helping aRing
instance decide whether to redirectSessionPrx
creation to anotherSessionManagerI
instance. TheRing
instance is passed in- Since:
- Beta-4.0-RC2
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Redirector.Context
Interface 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 void
chooseNextRedirect(Redirector.Context context, java.util.Set<java.lang.String> nodeUuids)
Gives theRedirector
a chance to configure the next appropriate redirect based on theSet
of currentNode
uuids.Glacier2.SessionPrx
getProxyOrNull(Redirector.Context context, java.lang.String userId, Glacier2.SessionControlPrx control, Ice.Current current)
Create or retrieve and returns aSessionPrx
which the current method takes control of.void
handleRingShutdown(Redirector.Context context, java.lang.String uuid)
Gives theRedirector
a chance to remove the currentRing
when 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 aSessionPrx
which 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 theRedirector
a chance to configure the next appropriate redirect based on theSet
of currentNode
uuids.
-
handleRingShutdown
void handleRingShutdown(Redirector.Context context, java.lang.String uuid)
Gives theRedirector
a chance to remove the currentRing
when it is being shutdown.
-
-