From 6e08014781ea0099d7e4466dd48d80af63d8ab69 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 3 Oct 2014 20:39:09 +0200 Subject: Rename namespace to Diagnostics --- lib/public/debug/ievent.php | 36 --------------------------------- lib/public/debug/ieventlogger.php | 31 ---------------------------- lib/public/debug/iquery.php | 26 ------------------------ lib/public/debug/iquerylogger.php | 27 ------------------------- lib/public/diagnostics/ievent.php | 36 +++++++++++++++++++++++++++++++++ lib/public/diagnostics/ieventlogger.php | 31 ++++++++++++++++++++++++++++ lib/public/diagnostics/iquery.php | 26 ++++++++++++++++++++++++ lib/public/diagnostics/iquerylogger.php | 27 +++++++++++++++++++++++++ lib/public/iservercontainer.php | 4 ++-- 9 files changed, 122 insertions(+), 122 deletions(-) delete mode 100644 lib/public/debug/ievent.php delete mode 100644 lib/public/debug/ieventlogger.php delete mode 100644 lib/public/debug/iquery.php delete mode 100644 lib/public/debug/iquerylogger.php create mode 100644 lib/public/diagnostics/ievent.php create mode 100644 lib/public/diagnostics/ieventlogger.php create mode 100644 lib/public/diagnostics/iquery.php create mode 100644 lib/public/diagnostics/iquerylogger.php (limited to 'lib/public') diff --git a/lib/public/debug/ievent.php b/lib/public/debug/ievent.php deleted file mode 100644 index 1cebb274e58..00000000000 --- a/lib/public/debug/ievent.php +++ /dev/null @@ -1,36 +0,0 @@ - - * This file is licensed under the Affero General Public License version 3 or - * later. - * See the COPYING-README file. - */ - -namespace OCP\Debug; - -interface IEvent { - /** - * @return string - */ - public function getId(); - - /** - * @return string - */ - public function getDescription(); - - /** - * @return float - */ - public function getStart(); - - /** - * @return float - */ - public function getEnd(); - - /** - * @return float - */ - public function getDuration(); -} diff --git a/lib/public/debug/ieventlogger.php b/lib/public/debug/ieventlogger.php deleted file mode 100644 index 7a7bff521db..00000000000 --- a/lib/public/debug/ieventlogger.php +++ /dev/null @@ -1,31 +0,0 @@ - - * This file is licensed under the Affero General Public License version 3 or - * later. - * See the COPYING-README file. - */ - -namespace OCP\Debug; - -interface IEventLogger { - /** - * Mark the start of an event - * - * @param string $id - * @param string $description - */ - public function start($id, $description); - - /** - * Mark the end of an event - * - * @param string $id - */ - public function end($id); - - /** - * @return \OCP\Debug\IEvent[] - */ - public function getEvents(); -} diff --git a/lib/public/debug/iquery.php b/lib/public/debug/iquery.php deleted file mode 100644 index 070c4d61196..00000000000 --- a/lib/public/debug/iquery.php +++ /dev/null @@ -1,26 +0,0 @@ - - * This file is licensed under the Affero General Public License version 3 or - * later. - * See the COPYING-README file. - */ - -namespace OCP\Debug; - -interface IQuery { - /** - * @return string - */ - public function getSql(); - - /** - * @return array - */ - public function getParams(); - - /** - * @return float - */ - public function getDuration(); -} diff --git a/lib/public/debug/iquerylogger.php b/lib/public/debug/iquerylogger.php deleted file mode 100644 index fe8eae089da..00000000000 --- a/lib/public/debug/iquerylogger.php +++ /dev/null @@ -1,27 +0,0 @@ - - * This file is licensed under the Affero General Public License version 3 or - * later. - * See the COPYING-README file. - */ - -namespace OCP\Debug; - -use Doctrine\DBAL\Logging\SQLLogger; - -interface IQueryLogger extends SQLLogger { - /** - * @param string $sql - * @param array $params - * @param array $types - */ - public function startQuery($sql, array $params = null, array $types = null); - - public function stopQuery(); - - /** - * @return \OCP\Debug\IQuery[] - */ - public function getQueries(); -} diff --git a/lib/public/diagnostics/ievent.php b/lib/public/diagnostics/ievent.php new file mode 100644 index 00000000000..a2a3461f68a --- /dev/null +++ b/lib/public/diagnostics/ievent.php @@ -0,0 +1,36 @@ + + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +namespace OCP\Diagnostics; + +interface IEvent { + /** + * @return string + */ + public function getId(); + + /** + * @return string + */ + public function getDescription(); + + /** + * @return float + */ + public function getStart(); + + /** + * @return float + */ + public function getEnd(); + + /** + * @return float + */ + public function getDuration(); +} diff --git a/lib/public/diagnostics/ieventlogger.php b/lib/public/diagnostics/ieventlogger.php new file mode 100644 index 00000000000..fa5880bfea6 --- /dev/null +++ b/lib/public/diagnostics/ieventlogger.php @@ -0,0 +1,31 @@ + + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +namespace OCP\Diagnostics; + +interface IEventLogger { + /** + * Mark the start of an event + * + * @param string $id + * @param string $description + */ + public function start($id, $description); + + /** + * Mark the end of an event + * + * @param string $id + */ + public function end($id); + + /** + * @return \OCP\Diagnostics\IEvent[] + */ + public function getEvents(); +} diff --git a/lib/public/diagnostics/iquery.php b/lib/public/diagnostics/iquery.php new file mode 100644 index 00000000000..f1111e069bb --- /dev/null +++ b/lib/public/diagnostics/iquery.php @@ -0,0 +1,26 @@ + + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +namespace OCP\Diagnostics; + +interface IQuery { + /** + * @return string + */ + public function getSql(); + + /** + * @return array + */ + public function getParams(); + + /** + * @return float + */ + public function getDuration(); +} diff --git a/lib/public/diagnostics/iquerylogger.php b/lib/public/diagnostics/iquerylogger.php new file mode 100644 index 00000000000..0fba9eb8b10 --- /dev/null +++ b/lib/public/diagnostics/iquerylogger.php @@ -0,0 +1,27 @@ + + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +namespace OCP\Diagnostics; + +use Doctrine\DBAL\Logging\SQLLogger; + +interface IQueryLogger extends SQLLogger { + /** + * @param string $sql + * @param array $params + * @param array $types + */ + public function startQuery($sql, array $params = null, array $types = null); + + public function stopQuery(); + + /** + * @return \OCP\Diagnostics\IQuery[] + */ + public function getQueries(); +} diff --git a/lib/public/iservercontainer.php b/lib/public/iservercontainer.php index 97ff74385a2..55c2c89b710 100644 --- a/lib/public/iservercontainer.php +++ b/lib/public/iservercontainer.php @@ -252,7 +252,7 @@ interface IServerContainer { /** * Get the active event logger * - * @return \OCP\Debug\IEventLogger + * @return \OCP\Diagnostics\IEventLogger */ function getEventLogger(); @@ -261,7 +261,7 @@ interface IServerContainer { * * The returned logger only logs data when debug mode is enabled * - * @return \OCP\Debug\IQueryLogger + * @return \OCP\Diagnostics\IQueryLogger */ function getQueryLogger(); } -- cgit v1.2.3