Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorClusterServiceHealthRecord

class PhabricatorClusterServiceHealthRecord
Phabricator Technical Documentation ()

This class is not documented.

Methods

public function __construct($cache_key)

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

public function getIsHealthy()

Is the database currently healthy?

Return
wild

public function getShouldCheck()

Should this request check database health?

Return
wild

public function getUpEventCount()

How many recent health checks were successful?

Return
wild

public function getDownEventCount()

How many recent health checks failed?

Return
wild

public function getRequiredEventCount()

Number of failures or successes we need to see in a row before we change the state.

Return
wild

public function getHealthCheckFrequency()

Seconds to wait between health checks.

Return
wild

public function didHealthCheck($result)

This method is not documented.
Parameters
$result
Return
wild

private function readState()

This method is not documented.
Return
wild

private function updateStatistics($record)

This method is not documented.
Parameters
array$record
Return
wild

public function getCacheKey()

This method is not documented.
Return
wild

private function readHealthRecord()

This method is not documented.
Return
wild

private function writeHealthRecord($record)

This method is not documented.
Parameters
array$record
Return
wild