Class DeviceMastership
- java.lang.Object
-
- org.opendaylight.openflowplugin.applications.frm.impl.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
Service (per device) for registration in singleton provider.
-
-
Constructor Summary
Constructors Constructor Description DeviceMastership(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId nodeId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
com.google.common.util.concurrent.ListenableFuture<Void>
closeServiceInstance()
void
deregisterReconciliationRpc()
org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier
getIdentifier()
void
instantiateServiceInstance()
boolean
isDeviceMastered()
void
reconcile()
void
registerReconciliationRpc(org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderService, FrmReconciliationService reconcliationService)
void
setDeviceOperationalStatus(boolean inOperDS)
-
-
-
Method Detail
-
instantiateServiceInstance
public void instantiateServiceInstance()
- Specified by:
instantiateServiceInstance
in interfaceorg.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
-
closeServiceInstance
public com.google.common.util.concurrent.ListenableFuture<Void> closeServiceInstance()
- Specified by:
closeServiceInstance
in interfaceorg.opendaylight.mdsal.singleton.common.api.ClusterSingletonService
-
getIdentifier
public org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier getIdentifier()
- Specified by:
getIdentifier
in interfaceorg.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
isDeviceMastered
public boolean isDeviceMastered()
-
setDeviceOperationalStatus
public void setDeviceOperationalStatus(boolean inOperDS)
-
reconcile
public void reconcile()
-
registerReconciliationRpc
public void registerReconciliationRpc(org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderService, FrmReconciliationService reconcliationService)
-
deregisterReconciliationRpc
public void deregisterReconciliationRpc()
-
-