|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.web.loadbalancer.Loadbalancer
The Loadbalancer core class.
Field Summary | |
protected MultiThreadedHttpConnectionManager |
connectionManager
|
protected int |
connectionTimeout
|
protected static java.util.Set |
ignorableHeader
|
protected static Logger (src) |
log
|
protected static int |
MAX_RETRIES
|
protected SchedulerMBean (src) |
scheduler
|
protected ObjectName (src) |
schedulerName
|
Constructor Summary | |
protected |
Loadbalancer(SchedulerMBean (src) scheduler,
int timeout)
|
Method Summary | |
protected void |
addRequestData(Request (src) schedRequest)
Add the request information to the HttpMethod |
protected void |
copyServerResponse(Request (src) schedRequest)
Copy content to the client. |
protected void |
createMethod(Request (src) 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 (src) schedRequest)
Handle the client request. |
protected void |
parseServerResponse(Request (src) schedRequest)
Copy the server answer meta data to the client. |
protected void |
prepareServerRequest(Request (src) 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 Logger (src) log
protected MultiThreadedHttpConnectionManager connectionManager
protected static java.util.Set ignorableHeader
protected int connectionTimeout
protected SchedulerMBean (src) scheduler
protected ObjectName (src) schedulerName
protected static final int MAX_RETRIES
Constructor Detail |
protected Loadbalancer(SchedulerMBean (src) scheduler, int timeout) throws ServletException
Method Detail |
protected void createMethod(Request (src) schedRequest) throws NoHostAvailableException (src)
NoHostAvailableException (src)
protected void addRequestData(Request (src) schedRequest)
protected void prepareServerRequest(Request (src) schedRequest)
protected void handleRequest(Request (src) schedRequest) throws ServletException, java.io.IOException
ServletException
java.io.IOException
protected void parseServerResponse(Request (src) schedRequest) throws ServletException, java.io.IOException
ServletException
java.io.IOException
protected void copyServerResponse(Request (src) schedRequest) throws java.io.IOException
java.io.IOException
public int getConnectionTimeout()
public void setConnectionTimeout(int newTimeout)
public int getConnectionsInUse()
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |