Class DeviceMastership
java.lang.Object
org.opendaylight.openflowplugin.applications.frm.impl.DeviceMastership
- All Implemented Interfaces:
AutoCloseable
,org.opendaylight.mdsal.singleton.api.ClusterSingletonService
,org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier>
public class DeviceMastership
extends Object
implements org.opendaylight.mdsal.singleton.api.ClusterSingletonService, AutoCloseable
Service (per device) for registration in singleton provider.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
com.google.common.util.concurrent.ListenableFuture<Void>
void
org.opendaylight.mdsal.singleton.api.ServiceGroupIdentifier
void
boolean
void
void
registerReconcileNode
(org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderService, ReconcileNode reconcileNode) void
setDeviceOperationalStatus
(boolean inOperDS)
-
Constructor Details
-
DeviceMastership
-
-
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() -
setDeviceOperationalStatus
public void setDeviceOperationalStatus(boolean inOperDS) -
reconcile
public void reconcile() -
registerReconcileNode
public void registerReconcileNode(org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderService, ReconcileNode reconcileNode) -
deregisterReconcileNode
public void deregisterReconcileNode()
-