class Component
Defined at line 29 of file ../../src/developer/forensics/utils/component/component.h
Forensics components all use the same basic machinery to function. Component groups that
machinery together and provides some additional information about the component instance that has
been started.
To properly use this class a component must have access to the "isolated-temp" feature in its
sandbox and all instances of the component must have non-overlapping lifetimes and share the same
namespace.
Public Methods
void Component ()
Defined at line 25 of file ../../src/developer/forensics/utils/component/component.cc
template <typename Interface>
zx_status_t AddPublicService (::fidl::InterfaceRequestHandler<Interface> handler, std::string service_name)
Defined at line 42 of file ../../src/developer/forensics/utils/component/component.h
async_dispatcher_t * Dispatcher ()
Defined at line 45 of file ../../src/developer/forensics/utils/component/component.cc
std::shared_ptr<sys::ServiceDirectory> Services ()
Defined at line 47 of file ../../src/developer/forensics/utils/component/component.cc
inspect::Node * InspectRoot ()
Defined at line 49 of file ../../src/developer/forensics/utils/component/component.cc
timekeeper::Clock * Clock ()
Defined at line 51 of file ../../src/developer/forensics/utils/component/component.cc
zx_status_t RunLoop ()
Defined at line 55 of file ../../src/developer/forensics/utils/component/component.cc
void ShutdownLoop ()
Defined at line 57 of file ../../src/developer/forensics/utils/component/component.cc
bool IsFirstInstance ()
Returns true if this is the first time an instance of the current component has been started
since boot.
Defined at line 53 of file ../../src/developer/forensics/utils/component/component.cc
Protected Methods
void Component (async_dispatcher_t * dispatcher, std::unique_ptr<sys::ComponentContext> context)
Constructor for testing when the component should run on a different loop than |loop_|.
Defined at line 35 of file ../../src/developer/forensics/utils/component/component.cc