summaryrefslogtreecommitdiffstats
path: root/lib/public/backgroundjob/ijob.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-11 14:00:24 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-11 14:00:24 +0100
commita6399f9ceffcf9865b8a2be155dc4f98bd2ee5dc (patch)
tree513f0a0dac1049c21c42538e39dc4d886d3e6f3b /lib/public/backgroundjob/ijob.php
parent72f134cfce05eb089a6d8271e73d6eb95cbe94a4 (diff)
downloadnextcloud-server-a6399f9ceffcf9865b8a2be155dc4f98bd2ee5dc.tar.gz
nextcloud-server-a6399f9ceffcf9865b8a2be155dc4f98bd2ee5dc.zip
Add the background job list to the public server container
Diffstat (limited to 'lib/public/backgroundjob/ijob.php')
-rw-r--r--lib/public/backgroundjob/ijob.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/public/backgroundjob/ijob.php b/lib/public/backgroundjob/ijob.php
new file mode 100644
index 00000000000..c427b50401d
--- /dev/null
+++ b/lib/public/backgroundjob/ijob.php
@@ -0,0 +1,29 @@
+<?php
+/**
+ * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace OCP\BackgroundJob;
+
+interface IJob {
+ /**
+ * @param \OCP\BackgroundJob\IJobList $jobList
+ * @param \OC\Log $logger
+ */
+ public function execute($jobList, $logger = null);
+
+ public function setId($id);
+
+ public function setLastRun($lastRun);
+
+ public function setArgument($argument);
+
+ public function getId();
+
+ public function getLastRun();
+
+ public function getArgument();
+}