ome.services.blitz.redirect
Interface Redirector

All Known Implementing Classes:
AbstractRedirector, ConfigRedirector, NullRedirector, ScaleRedirector

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

Since:
Beta-4.0-RC2

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

getProxyOrNull

Glacier2.SessionPrx getProxyOrNull(Redirector.Context context,
                                   String userId,
                                   Glacier2.SessionControlPrx control,
                                   Ice.Current current)
                                   throws Glacier2.CannotCreateSessionException
Create or retrieve and returns a SessionPrx 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,
                        Set<String> nodeUuids)
Gives the Redirector a chance to configure the next appropriate redirect based on the Set of current Node uuids.


handleRingShutdown

void handleRingShutdown(Redirector.Context context,
                        String uuid)
Gives the Redirector a chance to remove the current Ring when it is being shutdown.



OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.