public function EdgeJob::execute in Apigee Edge 8
Executes this job.
This function should be called only by the JobExecutor.
Return value
bool Whether the job is incomplete. Returning TRUE here means that the job will be rescheduled.
Overrides Job::execute
1 call to EdgeJob::execute()
- DeveloperSync::execute in src/
Job/ DeveloperSync.php - Executes this job.
1 method overrides EdgeJob::execute()
- DeveloperSync::execute in src/
Job/ DeveloperSync.php - Executes this job.
File
- src/
Job/ EdgeJob.php, line 46
Class
- EdgeJob
- Base class for all Apigee Edge communication jobs.
Namespace
Drupal\apigee_edge\JobCode
public function execute() : bool {
$this
->executeRequest();
$journal = $this
->getConnector()
->getClient()
->getJournal();
$request = $journal
->getLastRequest();
$response = $journal
->getLastResponse();
if (!isset($request) || !isset($response)) {
return FALSE;
}
$this->request = [
'method' => $request
->getMethod(),
'path' => $request
->getUri(),
'headers' => $request
->getHeaders(),
'body' => $request
->getBody()
->getContents(),
];
$this->response = [
'version' => $response
->getProtocolVersion(),
'status' => $response
->getStatusCode(),
'headers' => $response
->getHeaders(),
'body' => $response
->getBody()
->getContents(),
];
return FALSE;
}