java.lang.Object
org.opendaylight.openflowplugin.applications.arbitratorreconciliation.impl.DefaultUpgradeState
All Implemented Interfaces:
AutoCloseable, org.opendaylight.mdsal.binding.api.DataListener<UpgradeConfig>, UpgradeState

@Singleton public final class DefaultUpgradeState extends Object implements UpgradeState, org.opendaylight.mdsal.binding.api.DataListener<UpgradeConfig>, AutoCloseable
Default implementation of UpgradeState, driven by datastore updates.
  • Constructor Details

    • DefaultUpgradeState

      @Inject public DefaultUpgradeState(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
  • Method Details

    • close

      @PreDestroy public void close()
      Specified by:
      close in interface AutoCloseable
    • isUpgradeInProgress

      public boolean isUpgradeInProgress()
      Specified by:
      isUpgradeInProgress in interface UpgradeState
    • dataChangedTo

      public void dataChangedTo(UpgradeConfig data)
      Specified by:
      dataChangedTo in interface org.opendaylight.mdsal.binding.api.DataListener<UpgradeConfig>