Class QosEosHandler
- java.lang.Object
-
- org.opendaylight.netvirt.qosservice.QosEosHandler
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.opendaylight.mdsal.eos.binding.api.EntityOwnershipListener
,org.opendaylight.mdsal.eos.common.api.GenericEntityOwnershipListener<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.mdsal.eos.binding.api.EntityOwnershipChange>
@Singleton public class QosEosHandler extends java.lang.Object implements org.opendaylight.mdsal.eos.binding.api.EntityOwnershipListener, java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description QosEosHandler(org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService eos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLocalOwnershipChangedListener(java.util.function.Consumer<java.lang.Boolean> listener)
void
close()
void
init()
boolean
isQosClusterOwner()
void
ownershipChanged(org.opendaylight.mdsal.eos.binding.api.EntityOwnershipChange entityOwnershipChange)
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
close
@PreDestroy public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
addLocalOwnershipChangedListener
public void addLocalOwnershipChangedListener(java.util.function.Consumer<java.lang.Boolean> listener)
-
ownershipChanged
public void ownershipChanged(org.opendaylight.mdsal.eos.binding.api.EntityOwnershipChange entityOwnershipChange)
- Specified by:
ownershipChanged
in interfaceorg.opendaylight.mdsal.eos.binding.api.EntityOwnershipListener
- Specified by:
ownershipChanged
in interfaceorg.opendaylight.mdsal.eos.common.api.GenericEntityOwnershipListener<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,org.opendaylight.mdsal.eos.binding.api.EntityOwnershipChange>
-
isQosClusterOwner
public boolean isQosClusterOwner()
-
-