load($_id); } /** * @return Query * @throws JetBackupLinuxException */ public static function query():Query { return Query::api('listQueueItems'); } /** * @return string */ public function getLogFile():string { return $this->get(self::LOG_FILE); } /** * @return string */ public function getGroupId():string { return $this->get(self::GROUP_ID); } /** * @return string */ public function getProgressId():string { return $this->get(self::PROGRESS_ID); } /** * @return array */ public function getProgress():array { return $this->get(self::PROGRESS, []); } /** * @return string */ public function getOwner():string { return $this->get(self::OWNER); } /** * @return string */ public function getExecutionTime():string { return $this->get(self::EXECUTION_TIME); } /** * @return string */ public function getOwnerName():string { return $this->get(self::OWNER_NAME); } /** * @return int */ public function getPriority():int { return $this->get(self::PRIORITY, 0); } /** * @return int */ public function getActionType():int { return $this->get(self::TYPE, 0); } /** * @return bool */ public function isRetried():bool { return !!$this->get(self::RETRIED, false); } /** * @return int */ public function getStatus():int { return $this->get(self::STATUS, 0); } /** * @return string */ public function getMessage():string { return $this->get(self::MESSAGE); } /** * @return int */ public function getCreated():int { return $this->get(self::CREATED, 0); } /** * @return int */ public function getStarted():int { return $this->get(self::STARTED, 0); } /** * @return int */ public function getEnded():int { return $this->get(self::ENDED, 0); } /** * @return string */ public function getItemData():string { return $this->get(self::DATA); } // don't do anything, this API call isn't supporting modify, create and delete public function save():void {} public function delete():void {} /** * @return array */ public function getDisplay():array { return [ self::ID_FIELD => $this->getId(), self::OWNER => $this->getOwner(), self::OWNER_NAME => $this->getOwnerName(), self::CREATED => $this->getCreated(), self::STARTED => $this->getStarted(), self::ENDED => $this->getEnded(), self::EXECUTION_TIME=> $this->getExecutionTime(), self::TYPE => $this->getActionType(), self::GROUP_ID => $this->getGroupId(), self::PRIORITY => $this->getPriority(), self::STATUS => $this->getStatus(), self::MESSAGE => $this->getMessage(), self::PROGRESS_ID => $this->getProgressId(), self::PROGRESS => $this->getProgress(), self::LOG_FILE => $this->getLogFile(), self::DATA => $this->getItemData(), ]; } }