public class HmuxLoadBalanceServlet extends GenericServlet
<servlet-mapping url-pattern='/remote/*'>
<servlet-name>com.caucho.servlets.LoadBalanceServlet</servlet-name>
<init>
<cluster>app-tier</cluster>
</init>
</servlet-mapping>
| Constructor and Description |
|---|
HmuxLoadBalanceServlet() |
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
setSessionCookie(java.lang.String sessionId) |
void |
setStickyGenerator(StickyRequestHashGenerator sticky) |
void |
setStickySessions(boolean isStickySessions)
Set true if sticky-sessions should be enabled.
|
void |
setStrategy(java.lang.String strategy)
Sets the strategy.
|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log, toStringprotected QDate _calendar
public void setStickySessions(boolean isStickySessions)
public void setSessionCookie(java.lang.String sessionId)
public void setCluster(java.lang.String id)
public void setStrategy(java.lang.String strategy)
throws ConfigException
ConfigExceptionpublic void setStickyGenerator(StickyRequestHashGenerator sticky)
public void setEscapedUrl(boolean isEscaped)
public void init()
throws ServletException
init in class GenericServletServletExceptionpublic 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 HttpServletRequestServletExceptionjava.io.IOExceptionpublic void destroy()
GenericServletdestroy in interface Servletdestroy in class GenericServlet