PHP Class Scalr\Modules\Platforms\Cloudstack\CloudstackPlatformModule

Inheritance: extends Scalr\Modules\Platforms\AbstractCloudstackPlatformModule, implements Scalr\Modules\PlatformModuleInterface
Exibir arquivo Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$instancesListCache

Public Methods

Method Description
CheckServerSnapshotStatus ( BundleTask $BundleTask )
ClearCache ( )
CreateServerSnapshot ( BundleTask $BundleTask )
GetPlatformAccessData ( Scalr_environment $environment, DBServer $DBServer ) : stdClass
GetServerCloudLocation ( DBServer $DBServer )
GetServerConsoleOutput ( DBServer $DBServer )
GetServerExtendedInformation ( DBServer $DBServer, $extended = false )
GetServerID ( DBServer $DBServer )
GetServerIPAddresses ( DBServer $DBServer )
GetServerRealStatus ( DBServer $DBServer )
GetServersList ( Scalr_Environmen\Scalr_Environment $environment, $region, $skipCache = false )
IsServerExists ( DBServer $DBServer )
LaunchServer ( DBServer $DBServer, Scalr_Server_LaunchOptions $launchOptions = null )
PutAccessData ( DBServer $DBServer, Scalr_Messaging_Ms\Scalr_Messaging_Msg $message )
RebootServer ( DBServer $DBServer, $soft = true )
RemoveServerSnapshot ( Image $image )
ResumeServer ( DBServer $DBServer )
SuspendServer ( DBServer $DBServer )
TerminateServer ( DBServer $DBServer )
__construct ( string $platform = SERVER_PLATFORMS::CLOUDSTACK ) Constructor
determineServerIps ( $client, $server )
getEndpointUrl ( Scalr_Environmen\Scalr_Environment $env, string $group = null ) : string Gets endpoint url for private cloud
getHttpClient ( DBServer $dbServer ) : QueryClient
getInstanceIdPropertyName ( )
getInstanceTypes ( Scalr_Environmen\Scalr_Environment $env = null, $cloudLocation = null, $details = false )
getLocations ( Scalr_Environmen\Scalr_Environment $environment = null )
hasCloudPrices ( Scalr_Environmen\Scalr_Environment $env )

Private Methods

Method Description
GetServerSecurityGroupsList ( DBServer $DBServer, CloudStack $csClient, Scalr_Governanc\Scalr_Governance $governance = null )

Method Details

CheckServerSnapshotStatus() public method

See also: Scalr\Modules\PlatformModuleInterface::CheckServerSnapshotStatus()
public CheckServerSnapshotStatus ( BundleTask $BundleTask )
$BundleTask BundleTask

ClearCache() public method

See also: Scalr\Modules\PlatformModuleInterface::ClearCache()
public ClearCache ( )

CreateServerSnapshot() public method

See also: Scalr\Modules\PlatformModuleInterface::CreateServerSnapshot()
public CreateServerSnapshot ( BundleTask $BundleTask )
$BundleTask BundleTask

GetPlatformAccessData() public method

public GetPlatformAccessData ( Scalr_environment $environment, DBServer $DBServer ) : stdClass
$environment Scalr_environment
$DBServer DBServer
return stdClass

GetServerCloudLocation() public method

See also: Scalr\Modules\PlatformModuleInterface::GetServerCloudLocation()
public GetServerCloudLocation ( DBServer $DBServer )
$DBServer DBServer

GetServerConsoleOutput() public method

See also: Scalr\Modules\PlatformModuleInterface::GetServerConsoleOutput()
public GetServerConsoleOutput ( DBServer $DBServer )
$DBServer DBServer

GetServerExtendedInformation() public method

See also: Scalr\Modules\PlatformModuleInterface::GetServerExtendedInformation()
public GetServerExtendedInformation ( DBServer $DBServer, $extended = false )
$DBServer DBServer

GetServerID() public method

See also: Scalr\Modules\PlatformModuleInterface::GetServerID()
public GetServerID ( DBServer $DBServer )
$DBServer DBServer

GetServerIPAddresses() public method

See also: Scalr\Modules\PlatformModuleInterface::GetServerIPAddresses()
public GetServerIPAddresses ( DBServer $DBServer )
$DBServer DBServer

GetServerRealStatus() public method

See also: Scalr\Modules\PlatformModuleInterface::GetServerRealStatus()
public GetServerRealStatus ( DBServer $DBServer )
$DBServer DBServer

GetServersList() public method

public GetServersList ( Scalr_Environmen\Scalr_Environment $environment, $region, $skipCache = false )
$environment Scalr_Environmen\Scalr_Environment

IsServerExists() public method

See also: Scalr\Modules\PlatformModuleInterface::IsServerExists()
public IsServerExists ( DBServer $DBServer )
$DBServer DBServer

LaunchServer() public method

See also: Scalr\Modules\PlatformModuleInterface::LaunchServer()
public LaunchServer ( DBServer $DBServer, Scalr_Server_LaunchOptions $launchOptions = null )
$DBServer DBServer
$launchOptions Scalr_Server_LaunchOptions

PutAccessData() public method

See also: Scalr\Modules\PlatformModuleInterface::PutAccessData()
public PutAccessData ( DBServer $DBServer, Scalr_Messaging_Ms\Scalr_Messaging_Msg $message )
$DBServer DBServer
$message Scalr_Messaging_Ms\Scalr_Messaging_Msg

RebootServer() public method

See also: Scalr\Modules\PlatformModuleInterface::RebootServer()
public RebootServer ( DBServer $DBServer, $soft = true )
$DBServer DBServer

RemoveServerSnapshot() public method

See also: Scalr\Modules\PlatformModuleInterface::RemoveServerSnapshot()
public RemoveServerSnapshot ( Image $image )
$image Scalr\Model\Entity\Image

ResumeServer() public method

See also: Scalr\Modules\PlatformModuleInterface::ResumeServer()
public ResumeServer ( DBServer $DBServer )
$DBServer DBServer

SuspendServer() public method

See also: Scalr\Modules\PlatformModuleInterface::SuspendServer()
public SuspendServer ( DBServer $DBServer )
$DBServer DBServer

TerminateServer() public method

See also: Scalr\Modules\PlatformModuleInterface::TerminateServer()
public TerminateServer ( DBServer $DBServer )
$DBServer DBServer

__construct() public method

Constructor
public __construct ( string $platform = SERVER_PLATFORMS::CLOUDSTACK )
$platform string The name of the cloudstack based platform

determineServerIps() public method

public determineServerIps ( $client, $server )

getEndpointUrl() public method

Gets endpoint url for private cloud
public getEndpointUrl ( Scalr_Environmen\Scalr_Environment $env, string $group = null ) : string
$env Scalr_Environmen\Scalr_Environment The scalr environment object
$group string optional The group name
return string Returns endpoint url for cloudstack.

getHttpClient() public method

See also: PlatformModuleInterface::getgetClientByDbServer()
public getHttpClient ( DBServer $dbServer ) : QueryClient
$dbServer DBServer
return Scalr\Service\CloudStack\Client\QueryClient

getInstanceIdPropertyName() public method

See also: Scalr\Modules\PlatformModuleInterface::getInstanceIdPropertyName()

getInstanceTypes() public method

See also: Scalr\Modules\PlatformModuleInterface::getInstanceTypes()
public getInstanceTypes ( Scalr_Environmen\Scalr_Environment $env = null, $cloudLocation = null, $details = false )
$env Scalr_Environmen\Scalr_Environment

getLocations() public method

See also: Scalr\Modules\PlatformModuleInterface::getLocations()
public getLocations ( Scalr_Environmen\Scalr_Environment $environment = null )
$environment Scalr_Environmen\Scalr_Environment

hasCloudPrices() public method

See also: Scalr\Modules\PlatformModuleInterface::hasCloudPrices()
public hasCloudPrices ( Scalr_Environmen\Scalr_Environment $env )
$env Scalr_Environmen\Scalr_Environment

Property Details

$instancesListCache public_oe property

public $instancesListCache