public class NOPLBSPolicy extends AbstractLBSPolicy
AbstractLBSPolicy.InitParams
journalRef, 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, updateServiceTable
public boolean service(boolean isLeaderRequest, HALoadBalancerServlet servlet, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
IHALoadBalancerPolicy
HALoadBalancerServlet
.service
in interface IHALoadBalancerPolicy
service
in class AbstractLBSPolicy
isLeaderRequest
- 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.IOException
javax.servlet.ServletException
public 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.