/** * {@inheritDoc} */ public function stats() { if ($this->dispatcher) { $this->dispatcher->dispatch(CommandEvent::STATS, new CommandEvent($this)); } return $this->pheanstalk->stats(); }
public function getStats() { $stats = $this->pheanstalk->stats(); return ['pid' => $stats['pid'], 'hostname' => $stats['hostname'], 'version' => $stats['version'], 'uptime' => $stats['uptime'], 'max-job-size' => $stats['max-job-size']]; }