public class LeastLoadedCandidateSelectionStrategy extends AbstractEntityOwnerSelectionStrategy
| Modifier | Constructor and Description |
|---|---|
protected |
LeastLoadedCandidateSelectionStrategy(long selectionDelayInMillis,
Map<String,Long> initialStatistics) |
| Modifier and Type | Method and Description |
|---|---|
String |
newOwner(String currentOwner,
Collection<String> viableCandidates)
Selects a new owner from the list of viable candidates.
|
getInitialStatistics, getSelectionDelayInMillispublic String newOwner(@Nullable String currentOwner, Collection<String> viableCandidates)
EntityOwnerSelectionStrategycurrentOwner - the current owner of the entity if any, null otherwiseviableCandidates - the available candidates from which to choose the new ownerCopyright © 2019 OpenDaylight. All rights reserved.