Class UpgradeStateListener
java.lang.Object
org.opendaylight.serviceutils.upgrade.impl.UpgradeStateListener
- All Implemented Interfaces:
EventListener
,org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<UpgradeConfig>
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<UpgradeConfig>
,UpgradeState
public final class UpgradeStateListener
extends Object
implements UpgradeState, org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<UpgradeConfig>
-
Constructor Summary
ConstructorDescriptionUpgradeStateListener
(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, UpgradeConfig upgradeConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
void
onDataTreeChanged
(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<UpgradeConfig>> changes) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.mdsal.binding.api.DataTreeChangeListener
onInitialData
-
Constructor Details
-
UpgradeStateListener
public UpgradeStateListener(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, UpgradeConfig upgradeConfig)
-
-
Method Details
-
close
public void close() -
isUpgradeInProgress
public boolean isUpgradeInProgress()- Specified by:
isUpgradeInProgress
in interfaceUpgradeState
-
onDataTreeChanged
public void onDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<UpgradeConfig>> changes) - Specified by:
onDataTreeChanged
in interfaceorg.opendaylight.mdsal.binding.api.DataTreeChangeListener<UpgradeConfig>
-