public class NOPLBSPolicy extends AbstractLBSPolicy
AbstractLBSPolicy.InitParamsjournalRef, serviceIDRef, serviceTableRef| Constructor and Description |
|---|
NOPLBSPolicy() |
| Modifier and Type | Method and Description |
|---|---|
String |
getReaderURI(javax.servlet.http.HttpServletRequest req)
Note: This method is not invoked.
|
boolean |
service(boolean isLeaderRequest,
HALoadBalancerServlet servlet,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Invoked for each request.
|
conditionallyForwardReadRequest, conditionallyUpdateServiceTable, destroy, getJournal, getLeaderURI, getLocalServiceScore, getServiceScoreForHostname, init, notify, toString, toString, updateServiceTablepublic boolean service(boolean isLeaderRequest,
HALoadBalancerServlet servlet,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
IHALoadBalancerPolicyHALoadBalancerServlet.service in interface IHALoadBalancerPolicyservice in class AbstractLBSPolicyisLeaderRequest - true iff this request must be directed to the
leaeder and false iff this request may be load
balanced over the joined services. UPDATEs MUST be handled by
the leader. Read requests can be handled by any service that
is joined with the met quorum.servlet - The HALoadBalancerServlet. This is exposed in order to
allow the IHALoadBalancerPolicy to perform a local
forward of the request.request - The request.response - The response.true iff the request was handled.IOExceptionjavax.servlet.ServletExceptionpublic String getReaderURI(javax.servlet.http.HttpServletRequest req)
req - The request.null if we could not
find a service to which we could proxy this request.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.