public abstract class AbstractServiceLoadHelperWithScores extends AbstractServiceLoadHelper
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
INFO |
protected UUID |
knownGood |
protected static org.apache.log4j.Logger |
log |
protected ServiceScore[] |
scores |
joinTimeout| Modifier | Constructor and Description |
|---|---|
protected |
AbstractServiceLoadHelperWithScores(long joinTimeout,
UUID knownGood,
ServiceScore[] scores) |
| Modifier and Type | Method and Description |
|---|---|
UUID[] |
getUnderUtilizedDataServices(int minCount,
int maxCount,
UUID exclude)
Handles the case when we have per-service scores.
|
awaitJoin, getActiveServices, isActiveDataService, isUnderUtilizedDataServiceprotected static final org.apache.log4j.Logger log
protected static final boolean INFO
protected final UUID knownGood
protected final ServiceScore[] scores
protected AbstractServiceLoadHelperWithScores(long joinTimeout,
UUID knownGood,
ServiceScore[] scores)
joinTimeout - The maximum time in millisecondsknownGood - A service that is known to be active and NOT excluded from the
request to be posed.scores - Scores for the services in ascending order (least utilized to
most utilized).public UUID[] getUnderUtilizedDataServices(int minCount, int maxCount, UUID exclude) throws TimeoutException, InterruptedException
Note: Pre-condition: the service scores must exist and there must be at
least one active service with a score that is not excluded (the
knownGood service).
minCount - maxCount - exclude - TimeoutExceptionInterruptedExceptionILoadBalancerService.getUnderUtilizedDataServices(int, int,
UUID)Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.