Page MenuHomeIsabelle/Phabricator
Diviner Phabricator Tech Docs DiffusionRepositoryClusterEngine

final class DiffusionRepositoryClusterEngine
Phabricator 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 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

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