/** * getDetailsForPid * * Get the get a specific pid's details from the processes table * * @param mixed $pid The pid we're working with * * @return object */ public function getDetailsForPid($pid) { return fromRuntimeTable($this->tableName)->getDetails($pid); }
public function getCurrentTestEnvironmentSignature() { // what are we doing? $log = usingLog()->startAction("do we already have the test environment defined in the targets table?"); // which test environment are we working with? $testEnvName = $this->st->getTestEnvironmentName(); // get the full targets table $targetsTable = fromRuntimeTable($this->entryKey)->getTable(); //var_dump($hostsTable); // does the test environment exist? if (!isset($targetsTable->{$testEnvName})) { $log->endAction('no signature found'); return ''; } // no, it does not $return = $targetsTable->{$testEnvName}; $log->endAction($return); return $return; }
public function hasTestEnvironment() { // what are we doing? $log = usingLog()->startAction("do we already have the test environment defined in the hosts table?"); // which test environment are we working with? $testEnvName = $this->st->getTestEnvironmentName(); // get the hosts table $hostsTable = fromRuntimeTable($this->entryKey)->getTable(); //var_dump($hostsTable); // does the test environment exist? if (isset($hostsTable->{$testEnvName}) && $hostsTable->{$testEnvName}->hasProperties()) { $log->endAction("yes"); return true; } // no, it does not $log->endAction("no"); return false; }