Page MenuHomePhabricator

final class DrydockLease
Phabricator Technical Documentation (Drydock)

This class is not documented.

Tasks

Configuring Storage

Other Methods

Methods

public static function pushStorageNamespace($namespace)
Inherited

This method is not documented.
Parameters
$namespace
Return
wild

public static function popStorageNamespace()
Inherited

This method is not documented.
Return
wild

public static function getDefaultStorageNamespace()
Inherited

This method is not documented.
Return
wild

public static function getStorageNamespace()
Inherited

This method is not documented.
Return
wild

public function setForcedStorageNamespace($namespace)
Inherited

This method is not documented.
Parameters
$namespace
Return
wild

protected function establishLiveConnection($mode)
Inherited

This method is not documented.
Parameters
$mode
Return
wild

private function newClusterConnection($application, $database, $mode)
Inherited

This method is not documented.
Parameters
$application
$database
$mode
Return
wild

private function raiseImproperWrite($database)
Inherited

This method is not documented.
Parameters
$database
Return
wild

private function raiseImpossibleWrite($database)
Inherited

This method is not documented.
Parameters
$database
Return
wild

private function raiseUnconfigured($database)
Inherited

This method is not documented.
Parameters
$database
Return
wild

private function raiseUnreachable($database, $proxy)
Inherited

This method is not documented.
Parameters
$database
Exception$proxy
Return
wild

public function getTableName()
Inherited

This method is not documented.
Return
wild

public function getApplicationName()
Inherited

This method is not documented.
Return
wild

protected function getDatabaseName()
Inherited

This method is not documented.
Return
wild

public static function chunkSQL($fragments, $limit)
Inherited

PhabricatorLiskDAO

Break a list of escaped SQL statement fragments (e.g., VALUES lists for INSERT, previously built with qsprintf()) into chunks which will fit under the MySQL 'max_allowed_packet' limit.

If a statement is too large to fit within the limit, it is broken into its own chunk (but might fail when the query executes).

Parameters
array$fragments
$limit
Return
wild

protected function assertAttached($property)
Inherited

This method is not documented.
Parameters
$property
Return
wild

protected function assertAttachedKey($value, $key)
Inherited

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

protected function detectEncodingForStorage($string)
Inherited

This method is not documented.
Parameters
$string
Return
wild

protected function getUTF8StringFromStorage($string, $encoding)
Inherited

This method is not documented.
Parameters
$string
$encoding
Return
wild

protected function willReadData(&$data)
Inherited

This method is not documented.
Parameters
array&$data
Return
wild

protected function willWriteData(&$data)
Inherited

This method is not documented.
Parameters
array&$data
Return
wild

public static function initializeNewLease()

This method is not documented.
Return
wild

public function setReleaseOnDestruction($release)

Flag this lease to be released when its destructor is called. This is mostly useful if you have a script which acquires, uses, and then releases a lease, as you don't need to explicitly handle exceptions to properly release the lease.

Parameters
$release
Return
wild

public function __destruct()

This method is not documented.
Return
wild

public function setStatus($status)

This method is not documented.
Parameters
$status
Return
wild

public function getLeaseName()

This method is not documented.
Return
wild

protected function getConfiguration()

This method is not documented.
Return
wild

public function setAttribute($key, $value)

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

public function getAttribute($key, $default)

This method is not documented.
Parameters
$key
$default
Return
wild

public function generatePHID()

This method is not documented.
Return
wild

public function getInterface($type)

This method is not documented.
Parameters
$type
Return
wild

public function getResource()

This method is not documented.
Return
wild

public function attachResource($resource)

This method is not documented.
Parameters
DrydockResource$resource
Return
wild

public function hasAttachedResource()

This method is not documented.
Return
wild

public function getUnconsumedCommands()

This method is not documented.
Return
wild

public function attachUnconsumedCommands($commands)

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

public function isReleasing()

This method is not documented.
Return
wild

public function queueForActivation()

This method is not documented.
Return
wild

public function setActivateWhenAcquired($activate)

This method is not documented.
Parameters
$activate
Return
wild

public function needSlotLock($key)

This method is not documented.
Parameters
$key
Return
wild

public function acquireOnResource($resource)

This method is not documented.
Parameters
DrydockResource$resource
Return
wild

public function isAcquiredLease()

This method is not documented.
Return
wild

public function activateOnResource($resource)

This method is not documented.
Parameters
DrydockResource$resource
Return
wild

public function isActivatedLease()

This method is not documented.
Return
wild

public function scheduleUpdate($epoch)

This method is not documented.
Parameters
$epoch
Return
wild

public function setAwakenTaskIDs($ids)

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

public function setAllowedBlueprintPHIDs($phids)

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

public function getAllowedBlueprintPHIDs()

This method is not documented.
Return
wild

private function didActivate()

This method is not documented.
Return
wild

public function logEvent($type, $data)

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

public function awakenTasks()

Awaken yielded tasks after a state change.

Return
this

public function getURI()

This method is not documented.
Return
wild

public function getStatusObject()

This method is not documented.
Return
wild

public function getStatusIcon()

This method is not documented.
Return
wild

public function getStatusColor()

This method is not documented.
Return
wild

public function getStatusDisplayName()

This method is not documented.
Return
wild

public function isActivating()

This method is not documented.
Return
wild

public function isActive()

This method is not documented.
Return
wild

public function canRelease()

This method is not documented.
Return
wild

public function canReceiveCommands()

This method is not documented.
Return
wild

public function getCapabilities()

This method is not documented.
Return
wild

public function getPolicy($capability)

This method is not documented.
Parameters
$capability
Return
wild

public function hasAutomaticCapability($capability, $viewer)

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

public function describeAutomaticCapability($capability)

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

public function getFieldValuesForConduit()

This method is not documented.
Return
wild

public function getConduitSearchAttachments()

This method is not documented.
Return
wild