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
Constructors Constructor Description UpgradeStateListener(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, UpgradeConfig upgradeConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
isUpgradeInProgress()
void
onDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<UpgradeConfig>> changes)
-
-
-
Constructor Detail
-
UpgradeStateListener
public UpgradeStateListener(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, UpgradeConfig upgradeConfig)
-
-
Method Detail
-
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>
-
-