| 1 |
<?php |
| 2 |
|
| 3 |
// Start of Zend Job Queue v.8.0.0 |
| 4 |
|
| 5 |
class ZendJobQueue { |
| 6 |
const TYPE_HTTP_RELATIVE = 0; |
| 7 |
const TYPE_HTTP = 1; |
| 8 |
const TYPE_SHELL = 2; |
| 9 |
const JOB_TYPE_HTTP_RELATIVE = 1; |
| 10 |
const JOB_TYPE_HTTP = 2; |
| 11 |
const JOB_TYPE_SHELL = 4; |
| 12 |
const PRIORITY_LOW = 0; |
| 13 |
const PRIORITY_NORMAL = 1; |
| 14 |
const PRIORITY_HIGH = 2; |
| 15 |
const PRIORITY_URGENT = 3; |
| 16 |
const JOB_PRIORITY_LOW = 1; |
| 17 |
const JOB_PRIORITY_NORMAL = 2; |
| 18 |
const JOB_PRIORITY_HIGH = 4; |
| 19 |
const JOB_PRIORITY_URGENT = 8; |
| 20 |
const STATUS_PENDING = 0; |
| 21 |
const STATUS_WAITING_PREDECESSOR = 1; |
| 22 |
const STATUS_RUNNING = 2; |
| 23 |
const STATUS_COMPLETED = 3; |
| 24 |
const STATUS_OK = 4; |
| 25 |
const STATUS_FAILED = 5; |
| 26 |
const STATUS_LOGICALLY_FAILED = 6; |
| 27 |
const STATUS_TIMEOUT = 7; |
| 28 |
const STATUS_REMOVED = 8; |
| 29 |
const STATUS_SCHEDULED = 9; |
| 30 |
const STATUS_SUSPENDED = 10; |
| 31 |
const JOB_STATUS_PENDING = 1; |
| 32 |
const JOB_STATUS_WAITING_PREDECESSOR = 2; |
| 33 |
const JOB_STATUS_RUNNING = 4; |
| 34 |
const JOB_STATUS_COMPLETED = 8; |
| 35 |
const JOB_STATUS_OK = 16; |
| 36 |
const JOB_STATUS_FAILED = 32; |
| 37 |
const JOB_STATUS_LOGICALLY_FAILED = 64; |
| 38 |
const JOB_STATUS_TIMEOUT = 128; |
| 39 |
const JOB_STATUS_REMOVED = 256; |
| 40 |
const JOB_STATUS_SCHEDULED = 512; |
| 41 |
const JOB_STATUS_SUSPENDED = 1024; |
| 42 |
const SORT_NONE = 0; |
| 43 |
const SORT_BY_ID = 1; |
| 44 |
const SORT_BY_TYPE = 2; |
| 45 |
const SORT_BY_SCRIPT = 3; |
| 46 |
const SORT_BY_APPLICATION = 4; |
| 47 |
const SORT_BY_NAME = 5; |
| 48 |
const SORT_BY_PRIORITY = 6; |
| 49 |
const SORT_BY_STATUS = 7; |
| 50 |
const SORT_BY_PREDECESSOR = 8; |
| 51 |
const SORT_BY_PERSISTENCE = 9; |
| 52 |
const SORT_BY_CREATION_TIME = 10; |
| 53 |
const SORT_BY_SCHEDULE_TIME = 11; |
| 54 |
const SORT_BY_START_TIME = 12; |
| 55 |
const SORT_BY_END_TIME = 13; |
| 56 |
const SORT_ASC = 0; |
| 57 |
const SORT_DESC = 1; |
| 58 |
const OK = 0; |
| 59 |
const FAILED = 1; |
| 60 |
|
| 61 |
|
| 62 |
public function ZendJobQueue () {} |
| 63 |
|
| 64 |
public function createHttpJob () {} |
| 65 |
|
| 66 |
public function getJobStatus () {} |
| 67 |
|
| 68 |
public function removeJob () {} |
| 69 |
|
| 70 |
public function restartJob () {} |
| 71 |
|
| 72 |
public function isSuspended () {} |
| 73 |
|
| 74 |
public function suspendQueue () {} |
| 75 |
|
| 76 |
public function resumeQueue () {} |
| 77 |
|
| 78 |
public function createQueue () {} |
| 79 |
|
| 80 |
public function deleteQueue () {} |
| 81 |
|
| 82 |
public function getStatistics () {} |
| 83 |
|
| 84 |
public function getStatisticsByQueues () {} |
| 85 |
|
| 86 |
public function getConfig () {} |
| 87 |
|
| 88 |
public function reloadConfig () {} |
| 89 |
|
| 90 |
public function getJobInfo () {} |
| 91 |
|
| 92 |
public function getQueues () {} |
| 93 |
|
| 94 |
public function getDependentJobs () {} |
| 95 |
|
| 96 |
/** |
| 97 |
* @param filter |
| 98 |
* @param total[optional] |
| 99 |
*/ |
| 100 |
public function getJobsList ($filter, &$total) {} |
| 101 |
|
| 102 |
public function getApplications () {} |
| 103 |
|
| 104 |
public function getSchedulingRules () {} |
| 105 |
|
| 106 |
public function getSchedulingRule () {} |
| 107 |
|
| 108 |
public function deleteSchedulingRule () {} |
| 109 |
|
| 110 |
public function runNowSchedulingRule () {} |
| 111 |
|
| 112 |
public function suspendSchedulingRule () {} |
| 113 |
|
| 114 |
public function resumeSchedulingRule () {} |
| 115 |
|
| 116 |
public function updateSchedulingRule () {} |
| 117 |
|
| 118 |
public static function getCurrentJobParams () {} |
| 119 |
|
| 120 |
public static function setCurrentJobStatus () {} |
| 121 |
|
| 122 |
public static function getCurrentJobId () {} |
| 123 |
|
| 124 |
public static function isJobQueueDaemonRunning () {} |
| 125 |
|
| 126 |
} |
| 127 |
|
| 128 |
class ZendJobQueueException extends Exception { |
| 129 |
const UNKNOWN = -1; |
| 130 |
const INVALID_PARAM = 0; |
| 131 |
const SERVER_ERR = 1; |
| 132 |
const SERVER_BUSY = 2; |
| 133 |
const NETWORK_ERR = 3; |
| 134 |
const TIMEOUT = 4; |
| 135 |
const LICENSE = 5; |
| 136 |
|
| 137 |
protected $message; |
| 138 |
protected $code; |
| 139 |
protected $file; |
| 140 |
protected $line; |
| 141 |
|
| 142 |
|
| 143 |
final private function __clone () {} |
| 144 |
|
| 145 |
/** |
| 146 |
* @param message[optional] |
| 147 |
* @param code[optional] |
| 148 |
* @param previous[optional] |
| 149 |
*/ |
| 150 |
public function __construct ($message, $code, $previous) {} |
| 151 |
|
| 152 |
final public function getMessage () {} |
| 153 |
|
| 154 |
final public function getCode () {} |
| 155 |
|
| 156 |
final public function getFile () {} |
| 157 |
|
| 158 |
final public function getLine () {} |
| 159 |
|
| 160 |
final public function getTrace () {} |
| 161 |
|
| 162 |
final public function getPrevious () {} |
| 163 |
|
| 164 |
final public function getTraceAsString () {} |
| 165 |
|
| 166 |
public function __toString () {} |
| 167 |
|
| 168 |
} |
| 169 |
// End of Zend Job Queue v.8.0.0 |
| 170 |
?> |