BEA Systems, Inc.

weblogic.cluster.singleton
Class BasicServiceLocationSelector

java.lang.Object
  extended by weblogic.cluster.singleton.BasicServiceLocationSelector
All Implemented Interfaces:
ServiceLocationSelector

public class BasicServiceLocationSelector
extends Object
implements ServiceLocationSelector


Constructor Summary
BasicServiceLocationSelector()
           
 
Method Summary
 weblogic.management.configuration.ServerMBean chooseServer(List allServers)
          Choose a new server for the service to live on, regardless of where it is now.
 weblogic.management.configuration.ServerMBean chooseServer(weblogic.management.configuration.ServerMBean currentLocation, List allServers)
          Choose a new server taking into consideration the current location
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicServiceLocationSelector

public BasicServiceLocationSelector()
Method Detail

chooseServer

public weblogic.management.configuration.ServerMBean chooseServer(weblogic.management.configuration.ServerMBean currentLocation,
                                                                  List allServers)
Choose a new server taking into consideration the current location

Specified by:
chooseServer in interface ServiceLocationSelector

chooseServer

public weblogic.management.configuration.ServerMBean chooseServer(List allServers)
Choose a new server for the service to live on, regardless of where it is now. The other chooseServer method is intelligent. This one will just choose the next server in our perpetual round-robin. Possibly not smart, but we never call this without first calling the other chooseServer, so it should be fine. And if we don't know where we are, it's as good a guess as any about where to go next.

Specified by:
chooseServer in interface ServiceLocationSelector

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs100
Copyright 2006 BEA Systems Inc.