Class TombstonedNodeManagerImpl
- java.lang.Object
-
- org.opendaylight.genius.cloudscaler.rpcservice.TombstonedNodeManagerImpl
-
- All Implemented Interfaces:
TombstonedNodeManager
@Singleton public class TombstonedNodeManagerImpl extends java.lang.Object implements TombstonedNodeManager
-
-
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.
-
-
-
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 interfaceTombstonedNodeManager
- 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 interfaceTombstonedNodeManager
- 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 interfaceTombstonedNodeManager
- Parameters:
dpns
- the input list of dpns- Returns:
- filtered list of dpns which are not scaled in
-
-