Interface TombstonedNodeManager
-
- All Known Implementing Classes:
TombstonedNodeManagerImpl
public interface TombstonedNodeManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddOnRecoveryCallback(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.booleanisDpnTombstoned(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.mdsal.common.api.ReadFailedExceptionTells 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.mdsal.common.api.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.mdsal.common.api.ReadFailedExceptionFilters 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.mdsal.common.api.ReadFailedException- throws read failed exception
-
-