KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > web > loadbalancer > scheduler > AbstractSchedulerMBean


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.web.loadbalancer.scheduler;
8
9 /**
10  * MBean interface.
11  */

12 public interface AbstractSchedulerMBean
13       extends
14          org.jboss.system.ServiceMBean,
15          org.jboss.web.loadbalancer.scheduler.SchedulerMBean
16 {
17
18    //default object name
19
public static final javax.management.ObjectName JavaDoc OBJECT_NAME = org.jboss.mx.util.ObjectNameFactory
20          .create("jboss.web.loadbalancer: service=Scheduler");
21
22    void setConfig(org.w3c.dom.Element JavaDoc config);
23
24    /**
25     * Get the list of all hosts that have been marked down.
26     */

27    java.util.ArrayList JavaDoc getHostsDown();
28
29    /**
30     * Get the list of all hosts that have been marked up.
31     */

32    java.util.ArrayList JavaDoc getHostsUp();
33
34    /**
35     * Add a host to the up list.
36     */

37    org.jboss.web.loadbalancer.scheduler.Host addHost(java.lang.String JavaDoc hostString) throws java.net.MalformedURLException JavaDoc;
38
39    /**
40     * Remove a host from the up list.
41     */

42    void removeHost(java.net.URL JavaDoc url);
43
44 }
45
Popular Tags