process_manager Namespace Reference

Space-ng SDK: sol3::process_manager Namespace Reference
Space-ng SDK
sol3::process_manager Namespace Reference

Classes

struct  ProcessInvocation
 Represents a single invocation (execution) of a process. More...
 
class  IStdioContext
 
class  Process
 Manages the lifecycle of a single child process with restart capabilities. More...
 
class  ProcessManager
 Manages the lifecycle of multiple child processes with auto-restart and control capabilities. More...
 
struct  ProcessManagerSpec
 Message specifications for ProcessManager inter-process communication. More...
 
class  StrandTestFixture
 

Typedefs

using ExitHandler = std::function< void(std::shared_ptr< Process > process)>
 Callback invoked when a process exits. More...
 

Enumerations

enum class  ProcessInvocationState { failed_to_start , running , stopping , stopped }
 Current process lifecycle state. More...
 

Typedef Documentation

◆ ExitHandler

using sol3::process_manager::ExitHandler = typedef std::function<void(std::shared_ptr<Process> process)>

Callback invoked when a process exits.

Parameters
processThe Process instance that exited.

Enumeration Type Documentation

◆ ProcessInvocationState

Current process lifecycle state.

Enumerator
failed_to_start 

Process failed to ever start.

running 

Process has been started, and hasn't been stopped or reaped.

stopping 

Process was running, and is now stopped and reaped, exit handlers have NOT been called

stopped 

Process was running, and is now stopped and reaped, exit handlers have been called