weblogic.cluster.singleton
Class BasicServiceLocationSelector
java.lang.Object
weblogic.cluster.singleton.BasicServiceLocationSelector
- All Implemented Interfaces:
- ServiceLocationSelector
public class BasicServiceLocationSelector
- extends Object
- implements ServiceLocationSelector
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 |
BasicServiceLocationSelector
public BasicServiceLocationSelector()
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