Property | Type | Description | |
---|---|---|---|
$st | DataSift\Storyplayer\PlayerLib\StoryTeller; |
Method | Description | |
---|---|---|
__construct ( |
||
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 ) : |
||
uploadFile ( $hostDetails, $sourceFilename, $destFilename ) |
Method | Description | |
---|---|---|
runHostnameSafeguards ( HostDetails $hostDetails, string $hostname ) : string | check a given hostname to make sure it is safe to use |
public __construct ( |
||
$st |
abstract public determineHostname ( HostDetails $hostDetails, DataSift\Storyplayer\HostLib\SupportedHost $vm ) : string | ||
$hostDetails | HostDetails | |
$vm | DataSift\Storyplayer\HostLib\SupportedHost | |
return | string |
abstract public determineIpAddress ( HostDetails $hostDetails, DataSift\Storyplayer\HostLib\SupportedHost $host ) : string | ||
$hostDetails | HostDetails | |
$host | DataSift\Storyplayer\HostLib\SupportedHost | |
return | string |
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 |
return | DataSift\Storyplayer\CommandLib\CommandClient |
abstract public getInstalledPackageDetails ( HostDetails $hostDetails, string $packageName ) : DataSift\Stone\ObjectLib\BaseObject | ||
$hostDetails | HostDetails | |
$packageName | string | |
return | DataSift\Stone\ObjectLib\BaseObject |
abstract public getProcessIsRunning ( HostDetails $hostDetails, string $processName ) : boolean | ||
$hostDetails | HostDetails | |
$processName | string | |
return | boolean |
public runCommand ( HostDetails $hostDetails, string $command ) : |
||
$hostDetails | HostDetails | |
$command | string | |
return |
protected runHostnameSafeguards ( HostDetails $hostDetails, string $hostname ) : string | ||
$hostDetails | HostDetails | the known facts about the host |
$hostname | string | the hostname we want to check |
return | string | the hostname that can be added to the hostDetails data |