Class DeviceMastership
java.lang.Object
org.opendaylight.openflowplugin.applications.frsync.impl.clustering.DeviceMastership
- All Implemented Interfaces:
AutoCloseable
,org.opendaylight.mdsal.singleton.api.ClusterSingletonService
,org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier>
public final class DeviceMastership
extends Object
implements org.opendaylight.mdsal.singleton.api.ClusterSingletonService, AutoCloseable
ClusterSingletonService
clusterSingletonServiceRegistration per connected device.-
Constructor Summary
ConstructorDescriptionDeviceMastership
(NodeId nodeId, ReconciliationRegistry reconciliationRegistry, org.opendaylight.mdsal.singleton.api.ClusterSingletonServiceProvider clusterSingletonService) -
Method Summary
-
Constructor Details
-
DeviceMastership
public DeviceMastership(NodeId nodeId, ReconciliationRegistry reconciliationRegistry, org.opendaylight.mdsal.singleton.api.ClusterSingletonServiceProvider clusterSingletonService)
-
-
Method Details
-
instantiateServiceInstance
public void instantiateServiceInstance()- Specified by:
instantiateServiceInstance
in interfaceorg.opendaylight.mdsal.singleton.api.ClusterSingletonService
-
closeServiceInstance
- Specified by:
closeServiceInstance
in interfaceorg.opendaylight.mdsal.singleton.api.ClusterSingletonService
-
getIdentifier
public org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier getIdentifier()- Specified by:
getIdentifier
in interfaceorg.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
isDeviceMastered
public boolean isDeviceMastered()
-