30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Zend Server <strong>Reference</strong> Manual<br />

296<br />

o ZendJobQueue::getApplications - Returns an array of application names known by the<br />

daemon<br />

o ZendJobQueue::getSchedulingRules - Returns an array of all the registered scheduled<br />

rules. Each rule is represented by a nested associative array with the following<br />

properties: "id" - The scheduling rule identifier "status" - The rule status (see STATUS_*<br />

constants) "type" - The rule type (see TYPE_* constants) "priority" - The priority of the<br />

jobs created by this rule "persistent" - The persistence flag of the jobs created by this rule<br />

"script" - The URL or script to run "name" - The name of the jobs created by this rule<br />

"vars" - The input variables or arguments "http_headers" - The additional HTTP headers<br />

"schedule" - The CRON-like schedule command "app_id" - The application name<br />

associated with this rule and created jobs "last_run" - The last time the rule was run<br />

"next_run" - The next time the rule will run<br />

o ZendJobQueue::getSchedulingRule - Returns an associative array with the properties of<br />

the scheduling rule identified by the given argument. The list of the properties is the same<br />

as in getSchedulingRule()<br />

o ZendJobQueue::deleteSchedulingRule - Deletes the scheduling rule identified by the<br />

given $rule_id and scheduled jobs created by this rule<br />

o ZendJobQueue::suspendSchedulingRule - Suspends the scheduling rule identified by<br />

given $rule_id and deletes scheduled jobs created by this rule<br />

o ZendJobQueue::resumeSchedulingRule - Resumes the scheduling rule identified by<br />

given $rule_id and creates a corresponding scheduled job<br />

o ZendJobQueue::updateSchedulingRule - Updates and reschedules the existing<br />

scheduling rule<br />

o ZendJobQueue::getCurrentJobParams - Decodes an array of input variables passed to<br />

the HTTP job<br />

o ZendJobQueue::setCurrentJobStatus - Reports job completion status (OK or FAILED)<br />

back to the daemon

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!