Kraken\Runtime\Container\Manager\ProcessManagerBase::allocateProcess PHP Method

allocateProcess() public method

Allocate process.
public allocateProcess ( string $alias, string $name, string $pid ) : boolean
$alias string
$name string
$pid string
return boolean
    public function allocateProcess($alias, $name, $pid)
    {
        try {
            $record = ['pid' => $pid, 'name' => $name, 'verified' => true];
            $this->updateStorage([$alias => $record]);
            $this->processes[$alias] = $record;
        } catch (Error $ex) {
            return false;
        } catch (Exception $ex) {
            return false;
        }
        return true;
    }