PHP Класс DataSift\Storyplayer\OsLib\OsBase

Автор: Stuart Herbert ([email protected])
Наследование: implements DataSift\Storyplayer\OsLib\SupportedOs
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$st DataSift\Storyplayer\PlayerLib\StoryTeller;

Открытые методы

Метод Описание
__construct ( StoryTeller $st )
determineHostname ( HostDetails $hostDetails, DataSift\Storyplayer\HostLib\SupportedHost $vm ) : string
determineIpAddress ( HostDetails $hostDetails, DataSift\Storyplayer\HostLib\SupportedHost $host ) : string
downloadFile ( $hostDetails, $sourceFilename, $destFilename )
getClient ( DataSift\Storyplayer\PlayerLib\Storyteller $st, DataSift\Storyplayer\HostLib\HostDetails $hostDetails ) : DataSift\Storyplayer\CommandLib\CommandClient
getFileDetails ( $hostDetails, $filename )
getInstalledPackageDetails ( HostDetails $hostDetails, string $packageName ) : DataSift\Stone\ObjectLib\BaseObject
getPid ( HostDetails $hostDetails, string $processName ) : integer
getProcessIsRunning ( HostDetails $hostDetails, string $processName ) : boolean
runCommand ( HostDetails $hostDetails, string $command ) : CommandResult
uploadFile ( $hostDetails, $sourceFilename, $destFilename )

Защищенные методы

Метод Описание
runHostnameSafeguards ( HostDetails $hostDetails, string $hostname ) : string check a given hostname to make sure it is safe to use

Описание методов

__construct() публичный Метод

public __construct ( StoryTeller $st )
$st DataSift\Storyplayer\PlayerLib\StoryTeller

determineHostname() абстрактный публичный Метод

abstract public determineHostname ( HostDetails $hostDetails, DataSift\Storyplayer\HostLib\SupportedHost $vm ) : string
$hostDetails HostDetails
$vm DataSift\Storyplayer\HostLib\SupportedHost
Результат string

determineIpAddress() абстрактный публичный Метод

abstract public determineIpAddress ( HostDetails $hostDetails, DataSift\Storyplayer\HostLib\SupportedHost $host ) : string
$hostDetails HostDetails
$host DataSift\Storyplayer\HostLib\SupportedHost
Результат string

downloadFile() публичный Метод

public downloadFile ( $hostDetails, $sourceFilename, $destFilename )

getClient() абстрактный публичный Метод

abstract public getClient ( DataSift\Storyplayer\PlayerLib\Storyteller $st, DataSift\Storyplayer\HostLib\HostDetails $hostDetails ) : DataSift\Storyplayer\CommandLib\CommandClient
$st DataSift\Storyplayer\PlayerLib\Storyteller our module loader
$hostDetails DataSift\Storyplayer\HostLib\HostDetails the details for the host we want a client for
Результат DataSift\Storyplayer\CommandLib\CommandClient

getFileDetails() публичный Метод

public getFileDetails ( $hostDetails, $filename )

getInstalledPackageDetails() абстрактный публичный Метод

abstract public getInstalledPackageDetails ( HostDetails $hostDetails, string $packageName ) : DataSift\Stone\ObjectLib\BaseObject
$hostDetails HostDetails
$packageName string
Результат DataSift\Stone\ObjectLib\BaseObject

getPid() абстрактный публичный Метод

abstract public getPid ( HostDetails $hostDetails, string $processName ) : integer
$hostDetails HostDetails
$processName string
Результат integer

getProcessIsRunning() абстрактный публичный Метод

abstract public getProcessIsRunning ( HostDetails $hostDetails, string $processName ) : boolean
$hostDetails HostDetails
$processName string
Результат boolean

runCommand() публичный Метод

public runCommand ( HostDetails $hostDetails, string $command ) : CommandResult
$hostDetails HostDetails
$command string
Результат DataSift\Storyplayer\CommandLib\CommandResult

runHostnameSafeguards() защищенный Метод

check a given hostname to make sure it is safe to use
protected runHostnameSafeguards ( HostDetails $hostDetails, string $hostname ) : string
$hostDetails HostDetails the known facts about the host
$hostname string the hostname we want to check
Результат string the hostname that can be added to the hostDetails data

uploadFile() публичный Метод

public uploadFile ( $hostDetails, $sourceFilename, $destFilename )

Описание свойств

$st защищенное свойство

protected DataSift\Storyplayer\PlayerLib\StoryTeller; $st
Результат DataSift\Storyplayer\PlayerLib\StoryTeller;