Example #1
0
 /**
  *
  */
 public function updateHostStatus()
 {
     if (Time::microtime() > $this->nextUpdateTime) {
         $this->logger->debug('Host: Memory usage: ' . memory_get_peak_usage());
         $this->logger->debug('Host: Memory usage: ' . memory_get_usage());
         $this->host->updateStatus() or $this->terminate();
         $this->pause = $this->host->isPaused();
         $this->host->isShutdown() and $this->shutdown();
         $this->host->resolveScheduledJobs();
         $this->host->resolveTimedJobs();
         $this->host->saveTimeSeriesData();
         $this->nextUpdateTime = Time::microtime() + 1;
     }
 }