DataSift\Storyplayer\HostLib\PhysicalHost::determineHostname PHP Method

determineHostname() public method

public determineHostname ( PhysicalHostDetails $vmDetails ) : string
$vmDetails PhysicalHostDetails
return string
    public function determineHostname($vmDetails)
    {
        // what are we doing?
        $log = usingLog()->startAction("determine hostname of physical host '{$vmDetails->hostId}'");
        // create an adapter to talk to the host operating system
        $host = OsLib::getHostAdapter($this->st, $vmDetails->osName);
        // get the hostname
        $hostname = $host->determineHostname($vmDetails, $this);
        $vmDetails->hostname = $hostname;
        // all done
        $log->endAction("hostname is '{$hostname}'");
        return $hostname;
    }