Page MenuHomePhorge
Diviner Tech Docs DiffusionRepositoryClusterEngine

final class DiffusionRepositoryClusterEngine
Phorge Technical Documentation (Diffusion)

Manages repository synchronization for cluster repositories.

Tasks

Configuring Synchronization

No methods for this task.

Cluster Synchronization

Internals

Other Methods

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

public function setRepository($repository)

This method is not documented.
Parameters
PhabricatorRepository$repository
Return
wild

public function getRepository()

This method is not documented.
Return
wild

public function setViewer($viewer)

This method is not documented.
Parameters
PhabricatorUser$viewer
Return
wild

public function getViewer()

This method is not documented.
Return
wild

public function setLog($log)

This method is not documented.
Parameters
DiffusionRepositoryClusterEngineLogInterface$log
Return
wild

public function setActingAsPHID($acting_as_phid)

This method is not documented.
Parameters
$acting_as_phid
Return
wild

public function getActingAsPHID()

This method is not documented.
Return
wild

private function getEffectiveActingAsPHID()

This method is not documented.
Return
wild

Synchronize repository version information after creating a repository.

This initializes working copy versions for all currently bound devices to 0, so that we don't get stuck making an ambiguous choice about which devices are leaders when we later synchronize before a read.

Return
wild
This method is not documented.
Return
wild
This method is not documented.
Return
wild
This method is not documented.
Return
wild

public function synchronizeWorkingCopyAfterDiscovery($new_version)

This method is not documented.
Parameters
$new_version
Return
wild
This method is not documented.
Return
wild

private function shouldEnableSynchronization($require_device)

This method is not documented.
Parameters
$require_device
Return
wild
This method is not documented.
Return
wild

private function synchronizeWorkingCopyFromDevices($device_phids, $local_version, $remote_version)

This method is not documented.
Parameters
array$device_phids
$local_version
$remote_version
Return
wild

private function synchronizeWorkingCopyFromBinding($binding, $local_version, $remote_version)

This method is not documented.
Parameters
AlmanacBinding$binding
$local_version
$remote_version
Return
wild

private function logLine($message)

This method is not documented.
Parameters
$message
Return
wild

private function logText($message)

This method is not documented.
Parameters
$message
Return
wild

private function requireWorkingCopy()

This method is not documented.
Return
wild

private function logActiveWriter($viewer, $repository)

This method is not documented.
Parameters
PhabricatorUser$viewer
PhabricatorRepository$repository
Return
wild

public function newMaintenanceEvent()

This method is not documented.
Return
wild

public function newMaintenanceLog()

This method is not documented.
Return
wild