wt.manager
Class BalancedServerSelector

java.lang.Object
  extended bywt.manager.BalancedServerSelector
All Implemented Interfaces:
ServerSelector

public class BalancedServerSelector
extends Object
implements ServerSelector


Field Summary
private  Vector regServers
           
 
Fields inherited from interface wt.manager.ServerSelector
versionID
 
Constructor Summary
BalancedServerSelector()
           
 
Method Summary
 int count()
           
 Remote get(String service_name, Remote server)
           
 Vector getAllServers()
           
 Remote getAnyServer()
           
 Remote getNextServer(String service_name, Remote server)
           
 Remote getServer(String service_name)
           
 void registerServer(String service_name, Remote server)
           
 void remove(String service_name, Remote server)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

regServers

private Vector regServers
Constructor Detail

BalancedServerSelector

public BalancedServerSelector()
Method Detail

getServer

public Remote getServer(String service_name)
Specified by:
getServer in interface ServerSelector

get

public Remote get(String service_name,
                  Remote server)
Specified by:
get in interface ServerSelector

getNextServer

public Remote getNextServer(String service_name,
                            Remote server)
Specified by:
getNextServer in interface ServerSelector

getAnyServer

public Remote getAnyServer()
Specified by:
getAnyServer in interface ServerSelector

getAllServers

public Vector getAllServers()
Specified by:
getAllServers in interface ServerSelector

registerServer

public void registerServer(String service_name,
                           Remote server)
Specified by:
registerServer in interface ServerSelector

remove

public void remove(String service_name,
                   Remote server)
Specified by:
remove in interface ServerSelector

count

public int count()
Specified by:
count in interface ServerSelector