PHP Интерфейс DataSift\Storyplayer\OsLib\SupportedOs

Автор: Stuart Herbert ([email protected])
Показать файл Открыть проект

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

Метод Описание
determineHostname ( HostDetails $hostDetails, DataSift\Storyplayer\HostLib\SupportedHost $vm ) : string
determineIpAddress ( HostDetails $hostDetails, DataSift\Storyplayer\HostLib\SupportedHost $vm ) : string
downloadFile ( HostDetails $hostDetails, string $sourceFilename, string $destFilename ) : void download a file from a (possibly) remote host to wherever Storyplayer is running
getFileDetails ( HostDetails $hostDetails, string $filename ) : stdClass get details about a filesystem entry
getInstalledPackageDetails ( HostDetails $hostDetails, string $packageName ) : stdClass
getPid ( HostDetails $hostDetails, string $processName ) : integer
getProcessIsRunning ( HostDetails $hostDetails, string $processName ) : boolean
runCommand ( HostDetails $hostDetails, string $command ) : CommandResult
uploadFile ( HostDetails $hostDetails, string $sourceFilename, string $destFilename ) : void upload a file from wherever Storyplayer is running to the (possibly) remote host

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

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

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

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

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

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

download a file from a (possibly) remote host to wherever Storyplayer is running
public downloadFile ( HostDetails $hostDetails, string $sourceFilename, string $destFilename ) : void
$hostDetails HostDetails the details of the host to upload to
$sourceFilename string path to the file to download
$destFilename string path to download the file to
Результат void

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

get details about a filesystem entry
public getFileDetails ( HostDetails $hostDetails, string $filename ) : stdClass
$hostDetails HostDetails the details of the host to query
$filename string path to the file/folder to query
Результат stdClass

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

public getInstalledPackageDetails ( HostDetails $hostDetails, string $packageName ) : stdClass
$hostDetails HostDetails
$packageName string
Результат stdClass

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

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

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

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

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

upload a file from wherever Storyplayer is running to the (possibly) remote host
public uploadFile ( HostDetails $hostDetails, string $sourceFilename, string $destFilename ) : void
$hostDetails HostDetails the details of the host to upload to
$sourceFilename string path to the file to upload
$destFilename string path to upload the file to
Результат void