Process
Process
Base wrapper around child worker processes managed by the agent.
class ProcessProperties
app
Source application metadata for the child process runtime.
public Application $appType: Hazaar\Warlock\Agent\Struct\Application
id
Unique process identifier used by the scheduler.
public string $idType: string
tag
public string $tagType: string
procStatus
public array $procStatus = array (
'pid' => -1,
'running' => false,
)Type: array
pid
Operating-system process ID.
protected int $pid = -1Type: int
exitcode
Child process exit code when available.
protected int $exitcode = -1Type: int
pipes
protected array $pipesType: array
log
Logger used for process lifecycle diagnostics.
protected Logger $logType: Hazaar\Warlock\Logger
process
protected mixed $processType: mixed
main
Agent process owner/manager.
protected Main $mainType: Hazaar\Warlock\Agent\Main
processIDs
private array $processIDsType: array
Methods
__construct
public __construct(Logger $log): voidParameters
| Parameter | Type | Description |
|---|---|---|
$log | Hazaar\Warlock\Logger | logger instance for child process output |
isRunning
public isRunning(): boolReturns: bool
getReadPipe
public getReadPipe(): mixedReturns: mixed
getWritePipe
public getWritePipe(): mixedReturns: mixed
readErrorPipe
public readErrorPipe(): false|stringReturns: false|string
close
public close(): intReturns: int
terminate
public terminate(): boolReturns: bool
start
Starts the server process.
public start(): voidReturns: void
process
Polls process state and returns the current instance.
public process(): selfReturns: self
write
protected write(string $packet): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$packet | string |
getProcessID
protected getProcessID(): stringReturns: string
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000