class NodeShutdownBridge
Defined at line 46 of file ../../src/devices/bin/driver_manager/shutdown/node_shutdown_coordinator.h
Bridge class for node-related interactions.
Public Methods
NodeInfo GetRemovalTrackerInfo ()
Returns a pair that contains the node's component moniker and collection. Used to
register the node to the NodeRemovalTracker.
void StopDriver ()
Sends a Stop request to the driver. Invoked when transitioning to kWaitingOnDriver.
void StopDriverComponent ()
Closes the driver component connection to signal to CF that the component has
stopped and ensures the component is destroyed. Invoked when transitioning to
kWaitingOnDriverComponent.
bool MaybeDestroyDriverComponent ()
Sends a component destroy request to CF in certain conditions. We don't always want
to destroy the component so this will return false if we are keeping the component around.
void FinishShutdown (fit::callback<void ()> shutdown_callback)
Clean up work before shutdown is complete. Invoked when transitioning to kStopped.
The implementation is expected to invoke the callback once the node finished shutdown.
Once the callback is invoked, the node state changes to to kStopped and the node removal
tracker is notified.
bool IsPendingBind ()
bool HasChildren ()
bool HasDriver ()
bool HasDriverComponent ()
bool HasDriverComponentController ()