KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > web > loadbalancer > LoadbalancerServiceMBean


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;
8
9 /**
10  * MBean interface.
11  */

12 public interface LoadbalancerServiceMBean extends org.jboss.system.ServiceMBean
13 {
14
15    //default object name
16
public static final javax.management.ObjectName JavaDoc OBJECT_NAME = org.jboss.mx.util.ObjectNameFactory
17          .create("jboss.web.loadbalancer: service=Loadbalancer");
18
19    /**
20     * Set the scheduler for this Loadbalancer.
21     * @param schedulerObjectName */

22    void setScheduler(javax.management.ObjectName JavaDoc schedulerObjectName);
23
24    /**
25     * Get the scheduler for this Loadbalancer.
26     */

27    javax.management.ObjectName JavaDoc getScheduler();
28
29    /**
30     * Get the currently used connection timeout to slave hosts.
31     */

32    int getConnectionTimeout();
33
34    /**
35     * Set the currently used connection timeout to slave hosts.
36     */

37    void setConnectionTimeout(int newTimeout);
38
39    /**
40     * Get the currently used connections to slave hosts.
41     */

42    int getConnectionsInUse();
43
44    void createMethod(org.jboss.web.loadbalancer.util.Request schedRequest)
45          throws org.jboss.web.loadbalancer.scheduler.NoHostAvailableException;
46
47    void addRequestData(org.jboss.web.loadbalancer.util.Request schedRequest);
48
49    void handleRequest(org.jboss.web.loadbalancer.util.Request schedRequest) throws javax.servlet.ServletException JavaDoc,
50          java.io.IOException JavaDoc;
51
52 }
53
Popular Tags