Class TombstonedNodeManagerImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      TombstonedNodeManagerImpl​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.infrautils.caches.CacheProvider cacheProvider, ComputeNodeManager computeNodeManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addOnRecoveryCallback​(java.util.function.Function<org.opendaylight.yangtools.yang.common.Uint64,​java.lang.Void> callback)
      Add the listener callback which will be invoked upon recovery of scaled in dpn.
      java.util.List<org.opendaylight.yangtools.yang.common.Uint64> filterTombStoned​(java.util.List<org.opendaylight.yangtools.yang.common.Uint64> dpns)
      Filters the list of dpns which are not scaled in.
      boolean isDpnTombstoned​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
      Tells if the supplied dpn is getting scaled in or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TombstonedNodeManagerImpl

        @Inject
        public TombstonedNodeManagerImpl​(org.opendaylight.mdsal.binding.api.DataBroker dataBroker,
                                         org.opendaylight.infrautils.caches.CacheProvider cacheProvider,
                                         ComputeNodeManager computeNodeManager)
    • Method Detail

      • isDpnTombstoned

        public boolean isDpnTombstoned​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
        Description copied from interface: TombstonedNodeManager
        Tells if the supplied dpn is getting scaled in or not.
        Specified by:
        isDpnTombstoned in interface TombstonedNodeManager
        Parameters:
        dpnId - dpn id
        Returns:
        true if the supllied dpn is getting scaled in
      • addOnRecoveryCallback

        public void addOnRecoveryCallback​(java.util.function.Function<org.opendaylight.yangtools.yang.common.Uint64,​java.lang.Void> callback)
        Description copied from interface: TombstonedNodeManager
        Add the listener callback which will be invoked upon recovery of scaled in dpn.
        Specified by:
        addOnRecoveryCallback in interface TombstonedNodeManager
        Parameters:
        callback - callback to be invoked on recovery
      • filterTombStoned

        public java.util.List<org.opendaylight.yangtools.yang.common.Uint64> filterTombStoned​(java.util.List<org.opendaylight.yangtools.yang.common.Uint64> dpns)
        Description copied from interface: TombstonedNodeManager
        Filters the list of dpns which are not scaled in.
        Specified by:
        filterTombStoned in interface TombstonedNodeManager
        Parameters:
        dpns - the input list of dpns
        Returns:
        filtered list of dpns which are not scaled in