PHP Class Scalr\Modules\Platforms\GoogleCE\GoogleCEPlatformModule

Inheritance: extends Scalr\Modules\AbstractPlatformModule, implements Scalr\Modules\PlatformModuleInterface
Show file Open project: scalr/scalr

Public Properties

Property Type Description
$instancesListCache

Public Methods

Method Description
CheckServerSnapshotStatus ( BundleTask $BundleTask )
ClearCache ( )
CreateServerSnapshot ( BundleTask $BundleTask )
GetAsyncOperationStatus ( Scalr_Environment $environment, string $operationId, string $cloudLocation, string $scope = 'zones' ) : Google_Service_Compute_Operation
GetPlatformAccessData ( Scalr_Environment $environment, DBServer $DBServer ) : object
GetServerCloudLocation ( DBServer $DBServer )
GetServerConsoleOutput ( DBServer $DBServer )
GetServerExtendedInformation ( DBServer $DBServer, $extended = false )
GetServerID ( DBServer $DBServer )
GetServerIPAddresses ( DBServer $DBServer )
GetServerRealStatus ( DBServer $DBServer )
GetServersList ( Scalr_Environment $environment, $cloudLocation, $skipCache = false )
IsServerExists ( DBServer $DBServer, $debug = false )
LaunchServer ( DBServer $DBServer, Scalr_Server_LaunchOptions $launchOptions = null )
PutAccessData ( DBServer $DBServer, Scalr_Messaging_Msg $message )
RebootServer ( DBServer $DBServer, $soft = true )
RemoveServerSnapshot ( Image $image )
ResumeServer ( DBServer $DBServer )
SuspendServer ( DBServer $DBServer )
TerminateServer ( DBServer $DBServer )
determineServerIps ( $client, $server )
getClient ( Scalr_Environment $environment = null, array $config = [] ) : Google_Service_Compute
getHttpClient ( DBServer $dbServer ) : Google_Client
getImageInfo ( Scalr_Environment $environment, $cloudLocation, $imageId )
getInstanceIdPropertyName ( )
getInstanceType ( $instanceTypeId, Scalr_Environment $env, $cloudLocation = null )
getInstanceTypes ( Scalr_Environment $env = null, $cloudLocation = null, $details = false )
getLocations ( Scalr_Environment $environment = null )
getObjectName ( $objectURL )
getObjectUrl ( $objectName, $objectType, $projectName, $cloudLocation = null )
hasCloudPrices ( Scalr_Environment $env )

Private Methods

Method Description
ApplyAccessData ( Scalr_Messaging_Msg $msg )

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

GetAsyncOperationStatus() public method

public GetAsyncOperationStatus ( Scalr_Environment $environment, string $operationId, string $cloudLocation, string $scope = 'zones' ) : Google_Service_Compute_Operation
$environment Scalr_Environment
$operationId string
$cloudLocation string
$scope string
return Google_Service_Compute_Operation $operation

GetPlatformAccessData() public method

public GetPlatformAccessData ( Scalr_Environment $environment, DBServer $DBServer ) : object
$environment Scalr_Environment
$DBServer DBServer
return object

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_Environment $environment, $cloudLocation, $skipCache = false )
$environment Scalr_Environment

IsServerExists() public method

See also: Scalr\Modules\PlatformModuleInterface::IsServerExists()
public IsServerExists ( DBServer $DBServer, $debug = false )
$DBServer DBServer

LaunchServer() public method

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_Msg $message )
$DBServer DBServer
$message 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

determineServerIps() public method

public determineServerIps ( $client, $server )

getClient() public method

public getClient ( Scalr_Environment $environment = null, array $config = [] ) : Google_Service_Compute
$environment Scalr_Environment Scalr Environment object
$config array optional Config array
return Google_Service_Compute

getHttpClient() public method

See also: PlatformModuleInterface::getgetClientByDbServer()
public getHttpClient ( DBServer $dbServer ) : Google_Client
$dbServer DBServer
return Google_Client

getImageInfo() public method

See also: PlatformModuleInterface::getImageInfo()
public getImageInfo ( Scalr_Environment $environment, $cloudLocation, $imageId )
$environment Scalr_Environment

getInstanceIdPropertyName() public method

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

getInstanceType() public method

See also: Scalr\Modules\PlatformModuleInterface::getInstanceType()
public getInstanceType ( $instanceTypeId, Scalr_Environment $env, $cloudLocation = null )
$env Scalr_Environment

getInstanceTypes() public method

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

getLocations() public method

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

getObjectName() public method

public getObjectName ( $objectURL )

getObjectUrl() public method

public getObjectUrl ( $objectName, $objectType, $projectName, $cloudLocation = null )

hasCloudPrices() public method

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

Property Details

$instancesListCache public property

public $instancesListCache