public class RoundRobinLBSPolicy extends AbstractLBSPolicy
AbstractLBSPolicy.InitParams
journalRef, serviceIDRef, serviceTableRef
Constructor and Description |
---|
RoundRobinLBSPolicy() |
Modifier and Type | Method and Description |
---|---|
String |
getReaderURI(javax.servlet.http.HttpServletRequest request)
Return the Request-URL to which a read-only request will
be proxied.
|
protected void |
toString(StringBuilder sb)
Extension hook for
AbstractLBSPolicy.toString() - implementation MUST NOT block. |
conditionallyForwardReadRequest, conditionallyUpdateServiceTable, destroy, getJournal, getLeaderURI, getLocalServiceScore, getServiceScoreForHostname, init, notify, service, toString, updateServiceTable
protected void toString(StringBuilder sb)
AbstractLBSPolicy
AbstractLBSPolicy.toString()
- implementation MUST NOT block.toString
in class AbstractLBSPolicy
sb
- Buffer where you can write additional state.public String getReaderURI(javax.servlet.http.HttpServletRequest request)
This imposes a round-robin policy over the discovered services. If the service is discovered and appears to be joined with the met quorum, then the request can be proxied to that service.
request
- 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.