Process
Less than 1 minute
Process
Base wrapper around child worker processes managed by the agent.
class ProcessProperties
app
Source application metadata for the child process runtime.
public Application $appid
Unique process identifier used by the scheduler.
public string $idtag
public string $tagprocStatus
public array $procStatus = array (
'pid' => -1,
'running' => false,
)pid
Operating-system process ID.
protected int $pid = -1exitcode
Child process exit code when available.
protected int $exitcode = -1pipes
protected array $pipeslog
Logger used for process lifecycle diagnostics.
protected Logger $logprocess
protected mixed $processmain
Agent process owner/manager.
protected Main $mainprocessIDs
private array $processIDsMethods
__construct
public __construct(Logger $log): voidParameters
| Parameter | Type | Description |
|---|---|---|
$log | Logger | logger instance for child process output |
isRunning
public isRunning(): boolgetReadPipe
public getReadPipe(): mixedgetWritePipe
public getWritePipe(): mixedreadErrorPipe
public readErrorPipe(): stringclose
public close(): intterminate
public terminate(): boolstart
Starts the server process.
public start(): voidprocess
Polls process state and returns the current instance.
public process(): selfwrite
protected write(string $packet): boolParameters
| Parameter | Type | Description |
|---|---|---|
$packet | string |
getProcessID
protected getProcessID(): stringGenerated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000