2013-07-23 21:11:34 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorDaemonLog extends PhabricatorDaemonDAO
|
|
|
|
implements PhabricatorPolicyInterface {
|
|
|
|
|
|
|
|
const STATUS_UNKNOWN = 'unknown';
|
|
|
|
const STATUS_RUNNING = 'run';
|
|
|
|
const STATUS_DEAD = 'dead';
|
|
|
|
const STATUS_WAIT = 'wait';
|
|
|
|
const STATUS_EXITED = 'exit';
|
|
|
|
|
|
|
|
protected $daemon;
|
|
|
|
protected $host;
|
|
|
|
protected $pid;
|
|
|
|
protected $argv;
|
|
|
|
protected $status;
|
|
|
|
|
|
|
|
public function getConfiguration() {
|
|
|
|
return array(
|
|
|
|
self::CONFIG_SERIALIZATION => array(
|
|
|
|
'argv' => self::SERIALIZATION_JSON,
|
|
|
|
),
|
|
|
|
) + parent::getConfiguration();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* -( PhabricatorPolicyInterface )----------------------------------------- */
|
|
|
|
|
|
|
|
|
|
|
|
public function getCapabilities() {
|
|
|
|
return array(
|
|
|
|
PhabricatorPolicyCapability::CAN_VIEW,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPolicy($capability) {
|
|
|
|
return PhabricatorPolicies::POLICY_ADMIN;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2013-09-27 17:43:41 +02:00
|
|
|
public function describeAutomaticCapability($capability) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2013-07-23 21:11:34 +02:00
|
|
|
}
|