public final class EntityOwnerUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityOwnerUtils.EntityEvent |
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTITY_OWNER_CACHE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
amIEntityOwner(String entityType,
String entityName) |
static ArrayList<EntityOwnerUtils.EntityEvent> |
getEventsHistory() |
static void |
registerEntityCandidateForOwnerShip(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService entityOwnershipService,
String entityType,
String entityName,
org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipListener listener)
Registers the entityName for ownership for given entityType adds a local
listener which takes care of updating the cached entity status.
|
public static final String ENTITY_OWNER_CACHE
public static ArrayList<EntityOwnerUtils.EntityEvent> getEventsHistory()
public static void registerEntityCandidateForOwnerShip(org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService entityOwnershipService,
String entityType,
String entityName,
org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipListener listener)
throws org.opendaylight.controller.md.sal.common.api.clustering.CandidateAlreadyRegisteredException
listener - also adds this listener for ownership events if providedorg.opendaylight.controller.md.sal.common.api.clustering.CandidateAlreadyRegisteredExceptionCopyright © 2018 OpenDaylight. All rights reserved.