PHP 인터페이스 DataSift\Storyplayer\OsLib\SupportedOs

저자: Stuart Herbert ([email protected])
파일 보기 프로젝트 열기: datasift/storyplayer

공개 메소드들

메소드 설명
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