ome.services.blitz.redirect
Class NullRedirector

java.lang.Object
  extended by ome.services.blitz.redirect.NullRedirector
All Implemented Interfaces:
Redirector

public class NullRedirector
extends Object
implements Redirector

Redirector implementation to effectively disable redirects.

Since:
Beta-4.0-RC2

Nested Class Summary
 
Nested classes/interfaces inherited from interface ome.services.blitz.redirect.Redirector
Redirector.Context
 
Constructor Summary
NullRedirector()
           
 
Method Summary
 void chooseNextRedirect(Redirector.Context context, Set<String> nodeUuids)
          Does nothing.
 Glacier2.SessionPrx getProxyOrNull(Redirector.Context context, String userId, Glacier2.SessionControlPrx control, Ice.Current current)
          Always returns null
 void handleRingShutdown(Redirector.Context context, String uuid)
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullRedirector

public NullRedirector()
Method Detail

getProxyOrNull

public Glacier2.SessionPrx getProxyOrNull(Redirector.Context context,
                                          String userId,
                                          Glacier2.SessionControlPrx control,
                                          Ice.Current current)
                                   throws Glacier2.CannotCreateSessionException
Always returns null

Specified by:
getProxyOrNull in interface Redirector
userId - Not null.
Returns:
Possibly null.
Throws:
Glacier2.CannotCreateSessionException

chooseNextRedirect

public void chooseNextRedirect(Redirector.Context context,
                               Set<String> nodeUuids)
Does nothing.

Specified by:
chooseNextRedirect in interface Redirector

handleRingShutdown

public void handleRingShutdown(Redirector.Context context,
                               String uuid)
Does nothing.

Specified by:
handleRingShutdown in interface Redirector


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

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