org.jboss.web.loadbalancer
Class LoadbalancerService

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

public class LoadbalancerService
extends ServiceMBeanSupport (src)


Field Summary
protected  org.w3c.dom.Element config
           
protected  Loadbalancer (src) loadbalancer
           
protected  SchedulerMBean (src) scheduler
           
protected  ObjectName (src) schedulerObjectName
           
protected  int timeout
           
 
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
LoadbalancerService()
           
 
Method Summary
 void addRequestData(Request (src)  schedRequest)
           
 void createMethod(Request (src)  schedRequest)
           
protected  void destroyService()
          Sub-classes should override this method to provide custum 'destroy' logic.
 int getConnectionsInUse()
          Get the currently used connections to slave hosts.
 int getConnectionTimeout()
          Get the currently used connection timeout to slave hosts.
 ObjectName (src) getScheduler()
          Get the scheduler for this Loadbalancer.
 void handleRequest(Request (src)  schedRequest)
           
 void setConnectionTimeout(int newTimeout)
          Set the currently used connection timeout to slave hosts.
 void setScheduler(ObjectName (src)  schedulerObjectName)
          Set the scheduler for this Loadbalancer.
protected  void startService()
          Sub-classes should override this method to provide custum 'start' logic.
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop, stopService
 
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
 

Field Detail

config

protected org.w3c.dom.Element config

loadbalancer

protected Loadbalancer (src)  loadbalancer

schedulerObjectName

protected ObjectName (src)  schedulerObjectName

scheduler

protected SchedulerMBean (src)  scheduler

timeout

protected int timeout
Constructor Detail

LoadbalancerService

public LoadbalancerService()
Method Detail

startService

protected void startService()
                     throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'start' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
startService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

destroyService

protected void destroyService()
                       throws java.lang.Exception
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'destroy' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
destroyService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

setScheduler

public void setScheduler(ObjectName (src)  schedulerObjectName)
Set the scheduler for this Loadbalancer.

Parameters:
schedulerObjectName -

getScheduler

public ObjectName (src)  getScheduler()
Get the scheduler for this Loadbalancer.


getConnectionTimeout

public int getConnectionTimeout()
Get the currently used connection timeout to slave hosts.


setConnectionTimeout

public void setConnectionTimeout(int newTimeout)
Set the currently used connection timeout to slave hosts.


getConnectionsInUse

public int getConnectionsInUse()
Get the currently used connections to slave hosts.


createMethod

public void createMethod(Request (src)  schedRequest)
                  throws NoHostAvailableException (src) 
Throws:
NoHostAvailableException (src)

addRequestData

public void addRequestData(Request (src)  schedRequest)

handleRequest

public void handleRequest(Request (src)  schedRequest)
                   throws ServletException,
                          java.io.IOException
Throws:
ServletException
java.io.IOException