Interface TombstonedNodeManager

    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Method Detail

      • isDpnTombstoned

        boolean isDpnTombstoned​(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
                         throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
        Tells if the supplied dpn is getting scaled in or not.
        Parameters:
        dpnId - dpn id
        Returns:
        true if the supllied dpn is getting scaled in
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.ReadFailedException - throws read failed exception
      • addOnRecoveryCallback

        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.
        Parameters:
        callback - callback to be invoked on recovery
      • filterTombStoned

        java.util.List<org.opendaylight.yangtools.yang.common.Uint64> filterTombStoned​(java.util.List<org.opendaylight.yangtools.yang.common.Uint64> dpns)
                                                                                throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
        Filters the list of dpns which are not scaled in.
        Parameters:
        dpns - the input list of dpns
        Returns:
        filtered list of dpns which are not scaled in
        Throws:
        org.opendaylight.controller.md.sal.common.api.data.ReadFailedException - throws read failed exception