public class FirstCandidateSelectionStrategy extends AbstractEntityOwnerSelectionStrategy
Modifier and Type | Field and Description |
---|---|
static FirstCandidateSelectionStrategy |
INSTANCE |
Constructor and Description |
---|
FirstCandidateSelectionStrategy(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, getSelectionDelayInMillis
public static final FirstCandidateSelectionStrategy INSTANCE
public String newOwner(String currentOwner, Collection<String> viableCandidates)
EntityOwnerSelectionStrategy
currentOwner
- 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.