Page MenuHomeClusterLabs Projects
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 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