protected class LoadBalancerService.ServiceLoadHelperWithScores extends AbstractServiceLoadHelperWithScores
LoadBalancerService
.INFO, knownGood, log, scores
joinTimeout
Constructor and Description |
---|
LoadBalancerService.ServiceLoadHelperWithScores(UUID knownGood,
ServiceScore[] scores) |
Modifier and Type | Method and Description |
---|---|
protected void |
awaitJoin(long timeout,
TimeUnit unit)
Await the join of an
IDataService . |
protected UUID[] |
getActiveServices()
Return an array of service UUIDs for all of the active
IDataService s that we know about right now (snapshot). |
protected boolean |
isActiveDataService(UUID serviceUUID)
Return
true iff the given serviceUUID identifies an
active IDataService . |
protected boolean |
isUnderUtilizedDataService(ServiceScore score,
ServiceScore[] scores)
Return
true iff the service is under-utilized. |
getUnderUtilizedDataServices
public LoadBalancerService.ServiceLoadHelperWithScores(UUID knownGood, ServiceScore[] scores)
protected void awaitJoin(long timeout, TimeUnit unit) throws InterruptedException
AbstractServiceLoadHelper
IDataService
.awaitJoin
in class AbstractServiceLoadHelper
timeout
- The timeout.unit
- The unit for the timeout.InterruptedException
protected UUID[] getActiveServices()
AbstractServiceLoadHelper
IDataService
s that we know about right now (snapshot).getActiveServices
in class AbstractServiceLoadHelper
null
.protected boolean isActiveDataService(UUID serviceUUID)
AbstractServiceLoadHelper
true
iff the given serviceUUID identifies an
active IDataService
.isActiveDataService
in class AbstractServiceLoadHelper
serviceUUID
- The service UUID.protected boolean isUnderUtilizedDataService(ServiceScore score, ServiceScore[] scores)
AbstractServiceLoadHelper
true
iff the service is under-utilized.isUnderUtilizedDataService
in class AbstractServiceLoadHelper
score
- The score for the service.scores
- The set of scores for the known services.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.