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

selectFromStorage() private method

Copy data from persistent storage to temporary one.
private selectFromStorage ( ) : string[][]
return string[][]
    private function selectFromStorage()
    {
        if (!$this->fs->exists($this->fsPath)) {
            return [];
        }
        $processes = [];
        $data = json_decode($this->fs->read($this->fsPath), true);
        foreach ($data as $alias => $record) {
            if ($this->system->existsPid($record['pid'])) {
                $processes[$alias] = ['pid' => $record['pid'], 'name' => $record['name'], 'verified' => false];
            }
        }
        return $processes;
    }