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, toString
protected 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
ConfigException
public void setStickyGenerator(StickyRequestHashGenerator sticky)
public void setEscapedUrl(boolean isEscaped)
public void init() throws ServletException
init
in class GenericServlet
ServletException
public void service(ServletRequest request, ServletResponse response) throws ServletException, java.io.IOException
request
- request information. Normally servlets will cast this
to HttpServletRequest
response
- response information. Normally servlets will cast this
to HttpServletRequest
ServletException
java.io.IOException
public void destroy()
GenericServlet
destroy
in interface Servlet
destroy
in class GenericServlet