diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index d37db5facf..45b3c763a9 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -122,9 +122,6 @@ phutil_register_library_map(array( 'ConduitAPI_conpherence_querythread_Method' => 'applications/conpherence/conduit/ConduitAPI_conpherence_querythread_Method.php', 'ConduitAPI_conpherence_querytransaction_Method' => 'applications/conpherence/conduit/ConduitAPI_conpherence_querytransaction_Method.php', 'ConduitAPI_conpherence_updatethread_Method' => 'applications/conpherence/conduit/ConduitAPI_conpherence_updatethread_Method.php', - 'ConduitAPI_daemon_launched_Method' => 'applications/daemon/conduit/ConduitAPI_daemon_launched_Method.php', - 'ConduitAPI_daemon_log_Method' => 'applications/daemon/conduit/ConduitAPI_daemon_log_Method.php', - 'ConduitAPI_daemon_setstatus_Method' => 'applications/daemon/conduit/ConduitAPI_daemon_setstatus_Method.php', 'ConduitAPI_differential_Method' => 'applications/differential/conduit/ConduitAPI_differential_Method.php', 'ConduitAPI_differential_close_Method' => 'applications/differential/conduit/ConduitAPI_differential_close_Method.php', 'ConduitAPI_differential_createcomment_Method' => 'applications/differential/conduit/ConduitAPI_differential_createcomment_Method.php', @@ -2099,9 +2096,6 @@ phutil_register_library_map(array( 'ConduitAPI_conpherence_querythread_Method' => 'ConduitAPI_conpherence_Method', 'ConduitAPI_conpherence_querytransaction_Method' => 'ConduitAPI_conpherence_Method', 'ConduitAPI_conpherence_updatethread_Method' => 'ConduitAPI_conpherence_Method', - 'ConduitAPI_daemon_launched_Method' => 'ConduitAPIMethod', - 'ConduitAPI_daemon_log_Method' => 'ConduitAPIMethod', - 'ConduitAPI_daemon_setstatus_Method' => 'ConduitAPIMethod', 'ConduitAPI_differential_Method' => 'ConduitAPIMethod', 'ConduitAPI_differential_close_Method' => 'ConduitAPIMethod', 'ConduitAPI_differential_createcomment_Method' => 'ConduitAPIMethod', diff --git a/src/applications/daemon/conduit/ConduitAPI_daemon_launched_Method.php b/src/applications/daemon/conduit/ConduitAPI_daemon_launched_Method.php deleted file mode 100644 index c655b1826e..0000000000 --- a/src/applications/daemon/conduit/ConduitAPI_daemon_launched_Method.php +++ /dev/null @@ -1,56 +0,0 @@ - 'required string', - 'host' => 'required string', - 'pid' => 'required int', - 'argv' => 'required string', - ); - } - - public function defineReturnType() { - return 'string'; - } - - public function defineErrorTypes() { - return array( - ); - } - - protected function execute(ConduitAPIRequest $request) { - - $daemon_log = new PhabricatorDaemonLog(); - $daemon_log->setDaemon($request->getValue('daemon')); - $daemon_log->setHost($request->getValue('host')); - $daemon_log->setPID($request->getValue('pid')); - $daemon_log->setStatus(PhabricatorDaemonLog::STATUS_RUNNING); - $daemon_log->setArgv(json_decode($request->getValue('argv'))); - - $daemon_log->save(); - - return $daemon_log->getID(); - } - -} diff --git a/src/applications/daemon/conduit/ConduitAPI_daemon_log_Method.php b/src/applications/daemon/conduit/ConduitAPI_daemon_log_Method.php deleted file mode 100644 index b549b49a55..0000000000 --- a/src/applications/daemon/conduit/ConduitAPI_daemon_log_Method.php +++ /dev/null @@ -1,54 +0,0 @@ - 'required int', - 'type' => 'required string', - 'message' => 'optional string', - ); - } - - public function defineReturnType() { - return 'void'; - } - - public function defineErrorTypes() { - return array( - ); - } - - protected function execute(ConduitAPIRequest $request) { - - $daemon_event = new PhabricatorDaemonLogEvent(); - $daemon_event->setLogID($request->getValue('daemonLogID')); - $daemon_event->setLogType($request->getValue('type')); - $daemon_event->setMessage((string)$request->getValue('message')); - $daemon_event->setEpoch(time()); - - $daemon_event->save(); - - return; - } - -} diff --git a/src/applications/daemon/conduit/ConduitAPI_daemon_setstatus_Method.php b/src/applications/daemon/conduit/ConduitAPI_daemon_setstatus_Method.php deleted file mode 100644 index 953f7b61ac..0000000000 --- a/src/applications/daemon/conduit/ConduitAPI_daemon_setstatus_Method.php +++ /dev/null @@ -1,53 +0,0 @@ - 'required string', - 'status' => 'required enum', - ); - } - - public function defineReturnType() { - return 'void'; - } - - public function defineErrorTypes() { - return array( - 'ERR-INVALID-ID' => 'An invalid daemonLogID was provided.', - ); - } - - protected function execute(ConduitAPIRequest $request) { - - $daemon_log = id(new PhabricatorDaemonLog()) - ->load($request->getValue('daemonLogID')); - if (!$daemon_log) { - throw new ConduitException('ERR-INVALID-ID'); - } - $daemon_log->setStatus($request->getValue('status')); - - $daemon_log->save(); - } - -}