public final class DOMClusterSingletonServiceProviderImpl extends AbstractClusterSingletonServiceProviderImpl<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,DOMEntity,DOMEntityOwnershipChange,DOMEntityOwnershipListener,DOMEntityOwnershipService,DOMEntityOwnershipListenerRegistration> implements DOMEntityOwnershipListener
AbstractClusterSingletonServiceProviderImpl
.Constructor and Description |
---|
DOMClusterSingletonServiceProviderImpl(DOMEntityOwnershipService entityOwnershipService)
Initialization all needed class internal property for
DOMClusterSingletonServiceProviderImpl . |
Modifier and Type | Method and Description |
---|---|
protected DOMEntity |
createEntity(String type,
String ident)
Creates an extended
GenericEntity instance. |
protected String |
getServiceIdentifierFromEntity(DOMEntity entity)
Method is responsible for parsing ServiceGroupIdentifier from E entity.
|
protected DOMEntityOwnershipListenerRegistration |
registerListener(String type,
DOMEntityOwnershipService eos)
Method implementation registers a defined
GenericEntityOwnershipListenerRegistration type
EntityOwnershipListenerRegistration. |
close, initializeProvider, ownershipChanged, registerClusterSingletonService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ownershipChanged
public DOMClusterSingletonServiceProviderImpl(DOMEntityOwnershipService entityOwnershipService)
DOMClusterSingletonServiceProviderImpl
.entityOwnershipService
- - we need only GenericEntityOwnershipService
protected DOMEntity createEntity(String type, String ident)
AbstractClusterSingletonServiceProviderImpl
GenericEntity
instance.createEntity
in class AbstractClusterSingletonServiceProviderImpl<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,DOMEntity,DOMEntityOwnershipChange,DOMEntityOwnershipListener,DOMEntityOwnershipService,DOMEntityOwnershipListenerRegistration>
type
- the type of the entityident
- the identifier of the entityprotected DOMEntityOwnershipListenerRegistration registerListener(String type, DOMEntityOwnershipService eos)
AbstractClusterSingletonServiceProviderImpl
GenericEntityOwnershipListenerRegistration
type
EntityOwnershipListenerRegistration.registerListener
in class AbstractClusterSingletonServiceProviderImpl<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,DOMEntity,DOMEntityOwnershipChange,DOMEntityOwnershipListener,DOMEntityOwnershipService,DOMEntityOwnershipListenerRegistration>
type
- the type of the entityeos
- - EOS typeprotected String getServiceIdentifierFromEntity(DOMEntity entity)
AbstractClusterSingletonServiceProviderImpl
getServiceIdentifierFromEntity
in class AbstractClusterSingletonServiceProviderImpl<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,DOMEntity,DOMEntityOwnershipChange,DOMEntityOwnershipListener,DOMEntityOwnershipService,DOMEntityOwnershipListenerRegistration>
entity
- instance of GenericEntity typeCopyright © 2019 OpenDaylight. All rights reserved.