Called when request iterated.
@return integer Status.
354880
public function run()
    {
        if (!$this->performed && $this->result === null) {
            $this->performed = true;
            $this->importCmdArgsFromPost();
            $this->performCommand();
            if ($this->result === null) {
                $this->sleep(5);
                return;
            }
        }
        echo json_encode($this->result);
    }
780776
public function dispatched()
    {
        // Only finished or failed jobset should be dispatched
        if ($this->isFinished() || $this->isFailed()) {
            $status = $this->isFinished() ?
                JobsConst::JOB_SET_STATUS_FINISHED_AND_DISPATCHED : JobsConst::JOB_SET_STATUS_FAILED_AND_DISPATCHED;

            return $this->model->updateStatus($status);
        }

        return false;
    }
606852
public function isCurrent()
    {
        $request = Injector::inst()->get(HTTPRequest::class);
        $tag = $request->getVar("t");

        return ($tag == $this->owner->URLSegment);
    }
794467
public function isStarted()
    {
        return (!is_null($this->userSession) && !is_null($this->getUserConfiguration()->getStartAt())) &&
            !is_null($this->session->get('user_session'));
    }
1206674
public function run()
    {
        
        if (!empty($this->request)) {
            foreach ($this->request as $key => $value) {
                $this->_iterate($key, $value);
            }
        }
         
        return $this->getReport();
    }
206044
public function getStatus()
    {
        $status_event = $this->call->startBatch([
            OP_RECV_STATUS_ON_CLIENT => true,
        ]);

        $this->trailing_metadata = $status_event->status->metadata;

        return $status_event->status;
    }
633403
public function status()
	{
		try
		{
			$pingRequest = $this->connection->createPing();
			$ping = $this->connection->ping($pingRequest);
			$pong = $ping->getData();
			$alive = false;

			if (isset($pong['status']) && $pong['status'] === "OK")
			{
				return true;
			}
		}
		catch (\Solarium\Exception $e)
		{
			return false;
		}
	}
463014
public function getRequest()
    {
        if (is_null($this->request)) {
            $this->setRequest(app()->refresh('request', $this, 'setRequest'));
        }

        return $this->request;
    }
814678
public function getStatus(){
        $rest = $this->getService( self::API_CONNECTION);
        $rest->GET();

        return $rest->getResult( models\Connection\Status::class);
    }
337738
public function getStatus(){
        $rest = $this->getService( self::API_CONNECTION_FTTH);
        $rest->GET();

        return $rest->getResult( models\Connection\Ftth\Status::class);
    }
849838
public int status()
    {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "status", this);
        if (tc.isEntryEnabled())
            Tr.exit(tc, "status", new Integer(_status));
        return _status;
    }
128497
private function checkStatus()
    {
        if (!$this->running) {
            return;
        }

        if ($this->running) {
            foreach (proc_get_status($this->resource) as $key => $value) {
                if ($key == 'command') {
                    continue;
                }

                $this->$key = $value;
            }
        }

        if (!$this->running) {
            $this->cleanup();
        }
    }
1196347
public function getStatus()
    {
        if (   !strlen($this->getValue('status'))
            && !in_array($this->getType(), array('validation-error', 'error')))
        {
            $this->offsetSet('status', 'processing');
        }

        return strtolower($this->getValue('status'));
    }
565531
public function status(): ?int
    {
        if ($this->agent != null) {
            return $this->agent->isConnected() ? self::STATUS_CONNECTED : self::STATUS_DISCONNECTED;
        }

        return null;
    }
1107220
public function wasSubmitted()
    {
        // If form was not (yet) populated, we can not use isChecked() so do this manually
        $request = $this->getRequest();
        if ($request->isPost() && strlen(trim($request->getPost($this->_submitFieldName)))) {
            return true;
        } else {
            return false;
        }
    }
360301
public function onReady()
    {
        if ($this->url === null) {
            return;
        }

        if ($this->connected && !$this->busy) {
            $this->pool->servConnFree[$this->url]->attach($this);
        }

        $url = parse_url($this->url);

        $this->username = $url['user'];
        $this->secret = $url['pass'];
    }
1311566
public function getStatus()
    {
        $this->initialize();
        if ( ! ($this->riakClient instanceof RiakClient)) {
            return null;
        }

        return $this->riakClient->status;
    }