|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.web.loadbalancer.Loadbalancer
public class Loadbalancer
The Loadbalancer core class.
Field Summary | |
---|---|
protected org.apache.commons.httpclient.MultiThreadedHttpConnectionManager |
connectionManager
|
protected int |
connectionTimeout
|
protected static Set |
ignorableHeader
|
protected static org.jboss.logging.Logger |
log
|
protected static int |
MAX_RETRIES
|
protected SchedulerMBean |
scheduler
|
protected javax.management.ObjectName |
schedulerName
|
Fields inherited from interface org.jboss.web.loadbalancer.LoadbalancerMBean |
---|
OBJECT_NAME |
Constructor Summary | |
---|---|
protected |
Loadbalancer(SchedulerMBean scheduler,
int timeout)
|
Method Summary | |
---|---|
protected void |
addRequestData(Request schedRequest)
Add the request information to the HttpMethod |
protected void |
copyServerResponse(Request schedRequest)
Copy content to the client. |
protected void |
createMethod(Request schedRequest)
Create a HttpMethod object for the given request. |
int |
getConnectionsInUse()
Get the currently used connections to slave hosts. |
int |
getConnectionTimeout()
Get the currently used connection timeout to slave hosts. |
protected void |
handleRequest(Request schedRequest)
Handle the client request. |
protected void |
parseServerResponse(Request schedRequest)
Copy the server answer meta data to the client. |
protected void |
prepareServerRequest(Request schedRequest)
Prepare the request to the target node. |
void |
setConnectionTimeout(int newTimeout)
Set the currently used connection timeout to slave hosts. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.jboss.logging.Logger log
protected org.apache.commons.httpclient.MultiThreadedHttpConnectionManager connectionManager
protected static Set ignorableHeader
protected int connectionTimeout
protected SchedulerMBean scheduler
protected javax.management.ObjectName schedulerName
protected static final int MAX_RETRIES
Constructor Detail |
---|
protected Loadbalancer(SchedulerMBean scheduler, int timeout) throws javax.servlet.ServletException
javax.servlet.ServletException
Method Detail |
---|
protected void createMethod(Request schedRequest) throws NoHostAvailableException
request
- response
- requestMethod
-
NoHostAvailableException
protected void addRequestData(Request schedRequest)
request
- method
- protected void prepareServerRequest(Request schedRequest)
request
- response
- method
- protected void handleRequest(Request schedRequest) throws javax.servlet.ServletException, IOException
request
- response
- method
-
javax.servlet.ServletException
IOException
protected void parseServerResponse(Request schedRequest) throws javax.servlet.ServletException, IOException
request
- response
- client
- method
-
javax.servlet.ServletException
IOException
protected void copyServerResponse(Request schedRequest) throws IOException
response
- method
-
IOException
public int getConnectionTimeout()
getConnectionTimeout
in interface LoadbalancerMBean
public void setConnectionTimeout(int newTimeout)
setConnectionTimeout
in interface LoadbalancerMBean
public int getConnectionsInUse()
getConnectionsInUse
in interface LoadbalancerMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |