@Beta public interface DOMEntityOwnershipService extends GenericEntityOwnershipService<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,DOMEntity,DOMEntityOwnershipListener>
GenericEntityOwnershipService.| Modifier and Type | Method and Description |
|---|---|
Optional<EntityOwnershipState> |
getOwnershipState(DOMEntity forEntity)
Gets the current ownership state information for an entity.
|
boolean |
isCandidateRegistered(DOMEntity forEntity)
Checks if a local candidate is registered for the given entity.
|
DOMEntityOwnershipCandidateRegistration |
registerCandidate(DOMEntity entity)
Registers a candidate for ownership of the given entity.
|
DOMEntityOwnershipListenerRegistration |
registerListener(String entityType,
DOMEntityOwnershipListener listener)
Registers a listener that is interested in ownership changes for entities of the given entity type.
|
DOMEntityOwnershipCandidateRegistration registerCandidate(DOMEntity entity) throws CandidateAlreadyRegisteredException
GenericEntityOwnershipServiceThe registration is performed asynchronously and any registered entity ownership listener is notified of ownership status changes for the entity.
registerCandidate in interface GenericEntityOwnershipService<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,DOMEntity,DOMEntityOwnershipListener>entity - the entity which the Candidate wants to ownCandidateAlreadyRegisteredException - if the candidate was already registeredDOMEntityOwnershipListenerRegistration registerListener(String entityType, DOMEntityOwnershipListener listener)
GenericEntityOwnershipServiceregisterListener in interface GenericEntityOwnershipService<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,DOMEntity,DOMEntityOwnershipListener>entityType - the type of entities whose ownership status the Listener is interested inlistener - the listener that is interested in the entitiesOptional<EntityOwnershipState> getOwnershipState(DOMEntity forEntity)
GenericEntityOwnershipServicegetOwnershipState in interface GenericEntityOwnershipService<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,DOMEntity,DOMEntityOwnershipListener>forEntity - the entity to query.boolean isCandidateRegistered(DOMEntity forEntity)
GenericEntityOwnershipServiceisCandidateRegistered in interface GenericEntityOwnershipService<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,DOMEntity,DOMEntityOwnershipListener>forEntity - the entity to query.Copyright © 2019 OpenDaylight. All rights reserved.