com.bigdata.service
Class LoadBalancerService.ServiceLoadHelperWithoutScores
java.lang.Object
com.bigdata.service.AbstractServiceLoadHelper
com.bigdata.service.AbstractServiceLoadHelperWithoutScores
com.bigdata.service.LoadBalancerService.ServiceLoadHelperWithoutScores
- All Implemented Interfaces:
- IServiceLoadHelper
- Enclosing class:
- LoadBalancerService
protected class LoadBalancerService.ServiceLoadHelperWithoutScores
- extends AbstractServiceLoadHelperWithoutScores
Integration with the LoadBalancerService.
- Version:
- $Id: LoadBalancerService.java 6194 2012-03-27 14:14:52Z thompsonbry $
- Author:
- Bryan Thompson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadBalancerService.ServiceLoadHelperWithoutScores
public LoadBalancerService.ServiceLoadHelperWithoutScores()
awaitJoin
protected void awaitJoin(long timeout,
TimeUnit unit)
throws InterruptedException
- Description copied from class:
AbstractServiceLoadHelper
- Await the join of an
IDataService.
- Specified by:
awaitJoin in class AbstractServiceLoadHelper
- Parameters:
timeout - The timeout.unit - The unit for the timeout.
- Throws:
InterruptedException
getActiveServices
protected UUID[] getActiveServices()
- Description copied from class:
AbstractServiceLoadHelper
- Return an array of service UUIDs for all of the active
IDataServices that we know about right now (snapshot).
- Specified by:
getActiveServices in class AbstractServiceLoadHelper
- Returns:
- The array and never
null.
isActiveDataService
protected boolean isActiveDataService(UUID serviceUUID)
- Description copied from class:
AbstractServiceLoadHelper
- Return
true iff the given serviceUUID identifies an
active IDataService.
- Specified by:
isActiveDataService in class AbstractServiceLoadHelper
- Parameters:
serviceUUID - The service UUID.
isUnderUtilizedDataService
protected boolean isUnderUtilizedDataService(ServiceScore score,
ServiceScore[] scores)
- Description copied from class:
AbstractServiceLoadHelper
- Return
true iff the service is under-utilized.
- Specified by:
isUnderUtilizedDataService in class AbstractServiceLoadHelper
- Parameters:
score - The score for the service.scores - The set of scores for the known services.
Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.