Page MenuHomePhabricator

abstract class PhabricatorDaemon
Phabricator Technical Documentation (Daemons)

This class is not documented.

Tasks

Communicating With the Overseer

No methods for this task.

Autoscaling Daemon Pools

  • protected function willBeginWork() — Prepare to become busy. This may autoscale the pool up.
  • protected function willBeginIdle() — Prepare to idle. This may autoscale the pool down.

Other Methods

Methods

final public function setVerbose($verbose)
Inherited

This method is not documented.
Parameters
$verbose
Return
wild

final public function getVerbose()
Inherited

This method is not documented.
Return
wild

final public function setScaledownDuration($scaledown_duration)
Inherited

This method is not documented.
Parameters
$scaledown_duration
Return
wild

final public function getScaledownDuration()
Inherited

This method is not documented.
Return
wild

final public function __construct($argv)
Inherited

This method is not documented.
Parameters
array$argv
Return
this//Implicit.//

final public function __destruct()
Inherited

This method is not documented.
Return
wild

final public function stillWorking()
Inherited

This method is not documented.
Return
wild

final public function shouldExit()
Inherited

This method is not documented.
Return
wild

final protected function shouldHibernate($duration)
Inherited

This method is not documented.
Parameters
$duration
Return
wild

final protected function sleep($duration)
Inherited

This method is not documented.
Parameters
$duration
Return
wild

protected function willSleep($duration)

This method is not documented.
Parameters
$duration
Return
wild

public static function onTermSignal($signo)
Inherited

This method is not documented.
Parameters
$signo
Return
wild

final protected function getArgv()
Inherited

This method is not documented.
Return
wild

final public function execute()
Inherited

This method is not documented.
Return
wild

abstract protected function run()
Inherited

This method is not documented.
Return
wild

final public function setTraceMemory()
Inherited

This method is not documented.
Return
wild

final public function getTraceMemory()
Inherited

This method is not documented.
Return
wild

final public function setTraceMode()
Inherited

This method is not documented.
Return
wild

final public function getTraceMode()
Inherited

This method is not documented.
Return
wild

final public function onGracefulSignal($signo)
Inherited

This method is not documented.
Parameters
$signo
Return
wild

final public function onNotifySignal($signo)
Inherited

This method is not documented.
Parameters
$signo
Return
wild

protected function onNotify($signo)
Inherited

This method is not documented.
Parameters
$signo
Return
wild

protected function willRun()

This method is not documented.
Return
wild

protected function didSetTraceMode()
Inherited

This method is not documented.
Return
wild

final protected function log($message)
Inherited

This method is not documented.
Parameters
$message
Return
wild

private static function didCatchSignal($signo)
Inherited

This method is not documented.
Parameters
$signo
Return
wild

private function beginStdoutCapture()
Inherited

This method is not documented.
Return
wild

private function endStdoutCapture()
Inherited

This method is not documented.
Return
wild

public function didReceiveStdout($data)
Inherited

This method is not documented.
Parameters
$data
Return
wild

private function encodeOverseerMessage($type, $data)
Inherited

This method is not documented.
Parameters
$type
$data
Return
wild

private function emitOverseerMessage($type, $data)
Inherited

This method is not documented.
Parameters
$type
$data
Return
wild

public static function errorListener($event, $value, $metadata)
Inherited

This method is not documented.
Parameters
$event
$value
array$metadata
Return
wild

protected function willBeginWork()
Inherited

PhutilDaemon

Prepare to become busy. This may autoscale the pool up.

This notifies the overseer that the daemon has become busy. If daemons that are part of an autoscale pool are continuously busy for a prolonged period of time, the overseer may scale up the pool.

Return
this

protected function willBeginIdle()
Inherited

PhutilDaemon

Prepare to idle. This may autoscale the pool down.

This notifies the overseer that the daemon is no longer busy. If daemons that are part of an autoscale pool are idle for a prolonged period of time, they may exit to scale the pool down.

Return
this

protected function getIdleDuration()
Inherited

This method is not documented.
Return
wild

public function getViewer()

This method is not documented.
Return
wild

public static function sudoCommandAsDaemonUser($command)

Format a command so it executes as the daemon user, if a daemon user is defined. This wraps the provided command in sudo -u ..., roughly.

Parameters
PhutilCommandString$commandCommand to execute.
Return
PhutilCommandString`sudo` version of the command.