Class DeviceMastership
java.lang.Object
org.opendaylight.openflowplugin.applications.frsync.impl.clustering.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 final class DeviceMastership
extends Object
implements org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService, AutoCloseable
ClusterSingletonService clusterSingletonServiceRegistration per connected device.- 
Constructor SummaryConstructorsConstructorDescriptionDeviceMastership(NodeId nodeId, ReconciliationRegistry reconciliationRegistry, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService) 
- 
Method Summary
- 
Constructor Details- 
DeviceMastershippublic DeviceMastership(NodeId nodeId, ReconciliationRegistry reconciliationRegistry, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider clusterSingletonService) 
 
- 
- 
Method Details- 
instantiateServiceInstancepublic void instantiateServiceInstance()- Specified by:
- instantiateServiceInstancein interface- org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
 
- 
closeServiceInstance- Specified by:
- closeServiceInstancein interface- org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
 
- 
getIdentifierpublic org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()- Specified by:
- getIdentifierin interface- org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
isDeviceMasteredpublic boolean isDeviceMastered()
 
-