@Beta public interface DOMEntityOwnershipService extends GenericEntityOwnershipService<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,DOMEntity,DOMEntityOwnershipListener>
GenericEntityOwnershipService
.Modifier and Type | Method and Description |
---|---|
com.google.common.base.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(@Nonnull DOMEntity entity) throws CandidateAlreadyRegisteredException
GenericEntityOwnershipService
The 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(@Nonnull String entityType, @Nonnull DOMEntityOwnershipListener listener)
GenericEntityOwnershipService
registerListener
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 entitiescom.google.common.base.Optional<EntityOwnershipState> getOwnershipState(@Nonnull DOMEntity forEntity)
GenericEntityOwnershipService
getOwnershipState
in interface GenericEntityOwnershipService<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,DOMEntity,DOMEntityOwnershipListener>
forEntity
- the entity to query.boolean isCandidateRegistered(@Nonnull DOMEntity forEntity)
GenericEntityOwnershipService
isCandidateRegistered
in interface GenericEntityOwnershipService<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,DOMEntity,DOMEntityOwnershipListener>
forEntity
- the entity to query.Copyright © 2019 OpenDaylight. All rights reserved.