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