|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.web.loadbalancer.scheduler.AbstractScheduler
Base-class for Scheduler
Field Summary | |
protected org.w3c.dom.Element |
config
|
protected java.util.ArrayList |
hostsDown
|
protected java.util.ArrayList |
hostsUp
|
protected java.lang.String |
stickyCookieName
|
protected boolean |
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 | |
AbstractScheduler()
|
Method Summary | |
Host (src) |
addHost(java.lang.String hostString)
Add a host to the up list. |
protected void |
addHostsFromConfig(org.w3c.dom.Element config)
|
protected void |
createService()
Sub-classes should override this method to provide custum 'create' logic. |
protected void |
deregisterHostMBean(Host (src) host)
|
protected void |
deregisterHostMBeans()
|
protected Host (src) |
findStickyHost(Request (src) schedRequest)
Find the sticky host for the given request |
protected ObjectName (src) |
genObjectNameForHost(Host (src) host)
|
void |
getHost(Request (src) schedRequest)
|
java.util.ArrayList |
getHostsDown()
Get the list of all hosts that have been marked down. |
java.util.ArrayList |
getHostsUp()
Get the list of all hosts that have been marked up. |
protected abstract Host (src) |
getNextHost()
Override this method to create a new scheduler. |
void |
handleNotification(Notification (src) notification,
java.lang.Object handback)
Callback method from the broadcaster MBean this listener implementation is registered to. |
protected void |
markNodeDown(Host (src) host)
|
protected void |
markNodeUp(Host (src) host)
|
protected void |
registerHostMBean(Host (src) host)
|
void |
removeHost(java.net.URL url)
Remove a host from the up list. |
void |
setConfig(org.w3c.dom.Element config)
|
protected void |
setStickyCookie(Request (src) schedRequest)
Set the sticky session cookie. |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
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 |
Field Detail |
protected java.util.ArrayList hostsUp
protected java.util.ArrayList hostsDown
protected java.lang.String stickyCookieName
protected boolean useStickySession
protected org.w3c.dom.Element config
Constructor Detail |
public AbstractScheduler()
Method Detail |
protected abstract Host (src) getNextHost()
protected void stopService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
public void setConfig(org.w3c.dom.Element config)
config
- protected void createService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
createService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void addHostsFromConfig(org.w3c.dom.Element config) throws java.lang.Exception
java.lang.Exception
protected ObjectName (src) genObjectNameForHost(Host (src) host) throws java.lang.Exception
java.lang.Exception
protected void registerHostMBean(Host (src) host)
protected void deregisterHostMBean(Host (src) host)
protected void deregisterHostMBeans() throws java.lang.Exception
java.lang.Exception
public void getHost(Request (src) schedRequest) throws NoHostAvailableException (src)
NoHostAvailableException (src)
protected void setStickyCookie(Request (src) schedRequest)
protected Host (src) findStickyHost(Request (src) schedRequest)
protected void markNodeDown(Host (src) host)
protected void markNodeUp(Host (src) host)
public java.util.ArrayList getHostsDown()
public java.util.ArrayList getHostsUp()
public Host (src) addHost(java.lang.String hostString) throws java.net.MalformedURLException
java.net.MalformedURLException
public void removeHost(java.net.URL url)
public void handleNotification(Notification (src) notification, java.lang.Object handback)
NotificationListener (src)
handleNotification
in interface NotificationListener (src)
notification
- the notification objecthandback
- the handback object given to the broadcaster
upon listener registration
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |