summaryrefslogtreecommitdiffstats
path: root/lib/public/backgroundjob/ijob.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-12 13:32:16 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-12 13:32:16 +0100
commit62288971cacf9049ec4521d659a17857ac42d139 (patch)
treeb79d0151f44ba3d8c8161866b0e0a77600462992 /lib/public/backgroundjob/ijob.php
parent3aafa837b884e8bd701d14665d1c93e33ecc7f7e (diff)
downloadnextcloud-server-62288971cacf9049ec4521d659a17857ac42d139.tar.gz
nextcloud-server-62288971cacf9049ec4521d659a17857ac42d139.zip
Additional phpdoc
Diffstat (limited to 'lib/public/backgroundjob/ijob.php')
-rw-r--r--lib/public/backgroundjob/ijob.php21
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/public/backgroundjob/ijob.php b/lib/public/backgroundjob/ijob.php
index 5bf815ef8e0..5231e9537a9 100644
--- a/lib/public/backgroundjob/ijob.php
+++ b/lib/public/backgroundjob/ijob.php
@@ -10,14 +10,33 @@ namespace OCP\BackgroundJob;
interface IJob {
/**
- * @param \OCP\BackgroundJob\IJobList $jobList
+ * Run the background job with the registered argument
+ *
+ * @param \OCP\BackgroundJob\IJobList $jobList The job list that manages the state of this job
* @param \OC\Log $logger
*/
public function execute($jobList, $logger = null);
+ /**
+ * Get the id of the background job
+ * This id is determined by the job list when a job is added to the list
+ *
+ * @return int
+ */
public function getId();
+ /**
+ * Get the last time this job was run as unix timestamp
+ *
+ * @return int
+ */
public function getLastRun();
+ /**
+ * Get the argument associated with the background job
+ * This is the argument that will be passed to the background job
+ *
+ * @return mixed
+ */
public function getArgument();
}