Add methods to interface which have always been required
This commit is contained in:
parent
0daed65e14
commit
a9935bd490
|
@ -236,7 +236,7 @@ class JobList implements IJobList {
|
||||||
try {
|
try {
|
||||||
try {
|
try {
|
||||||
// Try to load the job as a service
|
// Try to load the job as a service
|
||||||
/** @var Job $job */
|
/** @var IJob $job */
|
||||||
$job = \OC::$server->query($row['class']);
|
$job = \OC::$server->query($row['class']);
|
||||||
} catch (QueryException $e) {
|
} catch (QueryException $e) {
|
||||||
if (class_exists($row['class'])) {
|
if (class_exists($row['class'])) {
|
||||||
|
|
|
@ -36,11 +36,28 @@ interface IJob {
|
||||||
*
|
*
|
||||||
* @param \OCP\BackgroundJob\IJobList $jobList The job list that manages the state of this job
|
* @param \OCP\BackgroundJob\IJobList $jobList The job list that manages the state of this job
|
||||||
* @param ILogger $logger
|
* @param ILogger $logger
|
||||||
* @return void
|
|
||||||
* @since 7.0.0
|
* @since 7.0.0
|
||||||
*/
|
*/
|
||||||
public function execute($jobList, ILogger $logger = null);
|
public function execute($jobList, ILogger $logger = null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param int $id
|
||||||
|
* @since 7.0.0
|
||||||
|
*/
|
||||||
|
public function setId($id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param int $lastRun
|
||||||
|
* @since 7.0.0
|
||||||
|
*/
|
||||||
|
public function setLastRun($lastRun);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param mixed $argument
|
||||||
|
* @since 7.0.0
|
||||||
|
*/
|
||||||
|
public function setArgument($argument);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the id of the background job
|
* Get the id of the background job
|
||||||
* This id is determined by the job list when a job is added to the list
|
* This id is determined by the job list when a job is added to the list
|
||||||
|
|
Loading…
Reference in New Issue