|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
com.caucho.servlets.HmuxLoadBalanceServlet
public class HmuxLoadBalanceServlet
Load balancing.
<servlet-mapping url-pattern='/remote/*'>
<servlet-name>com.caucho.servlets.LoadBalanceServlet</servlet-name>
<init>
<cluster>app-tier</cluster>
</init>
</servlet-mapping>
| Field Summary | |
|---|---|
protected QDate |
_calendar
|
protected static java.util.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
HmuxLoadBalanceServlet()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Called when the servlet (and the application) shuts down. |
void |
init()
Initialize the servlet with the server's sruns. |
void |
service(ServletRequest request,
ServletResponse response)
Handle the request. |
void |
setCluster(java.lang.String id)
Sets the cluster id |
void |
setEscapedURL(boolean isEscaped)
Sets true for escaped URLs |
void |
setStickySessions(boolean isStickySessions)
Set true if sticky-sessions should be enabled. |
void |
setStrategy(java.lang.String strategy)
Sets the strategy. |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.logging.Logger log
protected QDate _calendar
| Constructor Detail |
|---|
public HmuxLoadBalanceServlet()
| Method Detail |
|---|
public void setStickySessions(boolean isStickySessions)
public void setCluster(java.lang.String id)
public void setEscapedURL(boolean isEscaped)
public void setStrategy(java.lang.String strategy)
throws ConfigException
ConfigException
public void init()
throws ServletException
init in class GenericServletServletException
public void service(ServletRequest request,
ServletResponse response)
throws ServletException,
java.io.IOException
request - request information. Normally servlets will cast this
to HttpServletRequestresponse - response information. Normally servlets will cast this
to HttpServletRequest
ServletException
java.io.IOExceptionpublic void destroy()
GenericServlet
destroy in interface Servletdestroy in class GenericServlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||