public abstract class AbstractServiceLoadHelperWithoutScores extends AbstractServiceLoadHelper
Modifier and Type | Field and Description |
---|---|
protected static boolean |
INFO |
protected static org.apache.log4j.Logger |
log |
joinTimeout
Modifier | Constructor and Description |
---|---|
protected |
AbstractServiceLoadHelperWithoutScores(long joinTimeout) |
Modifier and Type | Method and Description |
---|---|
UUID[] |
getUnderUtilizedDataServices(int minCount,
int maxCount,
UUID exclude)
Computes the under-utilized services in the case where where minCount
is non-zero and we do not have pre-computed
#serviceScores on hand. |
awaitJoin, getActiveServices, isActiveDataService, isUnderUtilizedDataService
protected static final org.apache.log4j.Logger log
protected static final boolean INFO
protected AbstractServiceLoadHelperWithoutScores(long joinTimeout)
joinTimeout
- public UUID[] getUnderUtilizedDataServices(int minCount, int maxCount, UUID exclude) throws TimeoutException, InterruptedException
#serviceScores
on hand. If
there are also no active services, then this awaits the join of at least
one service. Once it has at least one service that is not the optionally
excluded service, it returns the "under-utilized" services.TimeoutException
- If the result could not be obtained before the timeout was
triggered.InterruptedException
ILoadBalancerService.getUnderUtilizedDataServices(int, int,
UUID)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.