org.jboss.web.loadbalancer.scheduler
Class WeightedLeastConnectionSchedulerService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.web.loadbalancer.scheduler.AbstractScheduler (src) 
              extended byorg.jboss.web.loadbalancer.scheduler.WeightedLeastConnectionSchedulerService
All Implemented Interfaces:
java.util.EventListener, MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , NotificationListener (src) , Service (src) , ServiceMBean (src)

public class WeightedLeastConnectionSchedulerService
extends AbstractScheduler (src)

A scheduler that chooses the node with the lowest current connection count. It takes the loadbalance factor (lbFactor) into account. The node with the higher lbFactor gets more requests.


Field Summary
 
Fields inherited from class org.jboss.web.loadbalancer.scheduler.AbstractScheduler (src)
config, hostsDown, hostsUp, stickyCookieName, useStickySession
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
WeightedLeastConnectionSchedulerService()
           
 
Method Summary
protected  Host (src) getNextHost()
          Override this method to create a new scheduler.
 
Methods inherited from class org.jboss.web.loadbalancer.scheduler.AbstractScheduler (src)
addHost, addHostsFromConfig, createService, deregisterHostMBean, deregisterHostMBeans, findStickyHost, genObjectNameForHost, getHost, getHostsDown, getHostsUp, handleNotification, markNodeDown, markNodeUp, registerHostMBean, removeHost, setConfig, setStickyCookie, stopService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeightedLeastConnectionSchedulerService

public WeightedLeastConnectionSchedulerService()
Method Detail

getNextHost

protected Host (src)  getNextHost()
Description copied from class: AbstractScheduler (src)
Override this method to create a new scheduler.

Specified by:
getNextHost in class AbstractScheduler (src)
Returns: