Class DeviceMastership

  • All Implemented Interfaces:
    AutoCloseable, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService, org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>

    public class DeviceMastership
    extends Object
    implements org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService, AutoCloseable
    ClusterSingletonService clusterSingletonServiceRegistration per connected device.
    • Constructor Detail

      • DeviceMastership

        public DeviceMastership​(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId,
                                ReconciliationRegistry reconciliationRegistry,
                                org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService)
    • Method Detail

      • instantiateServiceInstance

        public void instantiateServiceInstance()
        Specified by:
        instantiateServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
      • closeServiceInstance

        public com.google.common.util.concurrent.ListenableFuture<Void> closeServiceInstance()
        Specified by:
        closeServiceInstance in interface org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
      • getIdentifier

        public org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()
        Specified by:
        getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
      • isDeviceMastered

        public boolean isDeviceMastered()