PHP 클래스 Scalr\Modules\AbstractPlatformModule

파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$container Scalr\DependencyInjection\Container DI Container
$db ADODB_mysqli
$platform

공개 메소드들

메소드 설명
ResumeServer ( DBServer $DBServer )
__construct ( )
getConfigVariable ( string $name, Scalr_Environment $env, string $encrypted = true, string $cloudLocation = '' ) : string Gets platform property
getContainer ( ) : Container Gets DI container
getEndpointUrl ( Scalr_Environment $env, string $group = null ) : string | null Gets endpoint url for private clouds
getImageInfo ( Scalr_Environment $environment, $cloudLocation, $imageId )
getInstanceType ( $instanceTypeId, Scalr_Environment $env, $cloudLocation = null )
getOrphanedServers ( Environment $environment, $cloudLocation, $instanceIds = null )
hasCloudPrices ( Scalr_Environment $env )
setConfigVariable ( array $pars, Scalr_Environment $env, string $encrypted = true, string $cloudLocation = '' ) Sets the values for the specified platform properties

보호된 메소드들

메소드 설명
getCachedInstanceTypes ( string $platform, string $url, string $cloudLocation ) : ArrayCollection | boolean Gets active instance types for the specified cloud platform, url and location from the cache

메소드 상세

ResumeServer() 공개 메소드

public ResumeServer ( DBServer $DBServer )
$DBServer DBServer

__construct() 공개 메소드

public __construct ( )

getCachedInstanceTypes() 보호된 메소드

Gets active instance types for the specified cloud platform, url and location from the cache
protected getCachedInstanceTypes ( string $platform, string $url, string $cloudLocation ) : ArrayCollection | boolean
$platform string A cloud platform
$url string A cloud endpoint url
$cloudLocation string A cloud location
리턴 Scalr\Model\Collections\ArrayCollection | boolean Returns collection of the CloudInstanceType entities on success or false otherwise

getConfigVariable() 공개 메소드

Gets platform property
사용 중단: by cloud credentials
public getConfigVariable ( string $name, Scalr_Environment $env, string $encrypted = true, string $cloudLocation = '' ) : string
$name string The name of the platform property
$env Scalr_Environment The environment
$encrypted string optional This is ignored
$cloudLocation string optional The cloud location
리턴 string Returns the value of the specified platform property

getContainer() 공개 메소드

Gets DI container
public getContainer ( ) : Container
리턴 Scalr\DependencyInjection\Container Returns DI container

getEndpointUrl() 공개 메소드

Gets endpoint url for private clouds
public getEndpointUrl ( Scalr_Environment $env, string $group = null ) : string | null
$env Scalr_Environment The scalr environment object
$group string optional The group name
리턴 string | null Returns endpoint url for private clouds. Null otherwise.

getImageInfo() 공개 메소드

또한 보기: PlatformModuleInterface::getImageInfo()
public getImageInfo ( Scalr_Environment $environment, $cloudLocation, $imageId )
$environment Scalr_Environment

getInstanceType() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::getInstanceType()
public getInstanceType ( $instanceTypeId, Scalr_Environment $env, $cloudLocation = null )
$env Scalr_Environment

getOrphanedServers() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::getOrphanedServers()
public getOrphanedServers ( Environment $environment, $cloudLocation, $instanceIds = null )
$environment Scalr\Model\Entity\Account\Environment

hasCloudPrices() 공개 메소드

또한 보기: Scalr\Modules\PlatformModuleInterface::hasCloudPrices()
public hasCloudPrices ( Scalr_Environment $env )
$env Scalr_Environment

setConfigVariable() 공개 메소드

Sets the values for the specified platform properties
사용 중단: by cloud credentials
public setConfigVariable ( array $pars, Scalr_Environment $env, string $encrypted = true, string $cloudLocation = '' )
$pars array Associative array of the keys -> value
$env Scalr_Environment The environment object
$encrypted string optional This parameter is already ignored
$cloudLocation string The cloud location

프로퍼티 상세

$container 보호되어 있는 프로퍼티

DI Container
protected Container,Scalr\DependencyInjection $container
리턴 Scalr\DependencyInjection\Container

$db 보호되어 있는 프로퍼티

protected ADODB_mysqli $db
리턴 ADODB_mysqli

$platform 보호되어 있는 프로퍼티

protected $platform