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 Details

    • DeviceMastership

      public DeviceMastership(NodeId nodeId)
  • Method Details

    • instantiateServiceInstance

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

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

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

      public void close()
      Specified by:
      close in interface AutoCloseable
    • 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()