Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90968764
PhabricatorDaemonLog.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 6, 12:22
Size
2 KB
Mime Type
text/x-php
Expires
Fri, Nov 8, 12:22 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22167525
Attached To
rPH Phabricator
PhabricatorDaemonLog.php
View Options
<?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_EXITING
=
'exiting'
;
const
STATUS_EXITED
=
'exit'
;
protected
$daemon
;
protected
$host
;
protected
$pid
;
protected
$daemonID
;
protected
$runningAsUser
;
protected
$argv
;
protected
$explicitArgv
=
array
();
protected
$envHash
;
protected
$envInfo
;
protected
$status
;
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_SERIALIZATION
=>
array
(
'argv'
=>
self
::
SERIALIZATION_JSON
,
'explicitArgv'
=>
self
::
SERIALIZATION_JSON
,
'envInfo'
=>
self
::
SERIALIZATION_JSON
,
),
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'daemon'
=>
'text255'
,
'host'
=>
'text255'
,
'pid'
=>
'uint32'
,
'runningAsUser'
=>
'text255?'
,
'envHash'
=>
'bytes40'
,
'status'
=>
'text8'
,
'daemonID'
=>
'text64'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'status'
=>
array
(
'columns'
=>
array
(
'status'
),
),
'dateCreated'
=>
array
(
'columns'
=>
array
(
'dateCreated'
),
),
'key_daemonID'
=>
array
(
'columns'
=>
array
(
'daemonID'
),
'unique'
=>
true
,
),
),
)
+
parent
::
getConfiguration
();
}
public
function
getExplicitArgv
()
{
$argv
=
$this
->
explicitArgv
;
if
(!
is_array
(
$argv
))
{
return
array
();
}
return
$argv
;
}
/* -( PhabricatorPolicyInterface )----------------------------------------- */
public
function
getPHID
()
{
return
null
;
}
public
function
getCapabilities
()
{
return
array
(
PhabricatorPolicyCapability
::
CAN_VIEW
,
);
}
public
function
getPolicy
(
$capability
)
{
return
PhabricatorPolicies
::
POLICY_ADMIN
;
}
public
function
hasAutomaticCapability
(
$capability
,
PhabricatorUser
$viewer
)
{
return
false
;
}
public
function
describeAutomaticCapability
(
$capability
)
{
return
null
;
}
}
Event Timeline
Log In to Comment