Graze\Supervisor\SupervisorSupervisor::ping PHP Method

ping() public method

public ping ( ) : boolean
return boolean
    public function ping()
    {
        $out = false;
        foreach ($this->supervisors as $supervisor) {
            try {
                if (!$supervisor->ping()) {
                    $this->updateOutput();
                    $result = $this->handler->handlePass($this->retries, $this);
                } else {
                    $result = true;
                }
            } catch (Exception $exception) {
                $this->updateOutput();
                $result = $this->handler->handleFail($this->retries, $this, $exception);
            }
            $out = $result ? true : $out;
        }
        return $out;
    }