PHP Класс Scalr\Modules\PlatformFactory

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
NewPlatform ( string $platform ) : Scalr\Modules\PlatformModuleInterface Create platform instance
getCanonicalOpenstackPlatforms ( ) : array Gets the list of canonical OpenStack based clouds
getCloudstackBasedPlatforms ( ) : array Gets the list of CloudStack based clouds
getOpenstackBasedPlatforms ( ) : array Gets the list of OpenStack based clouds
getPublicPlatforms ( ) : array Gets the list of public clouds
getRackspacePlatforms ( ) : array Returns the list of Rackspace clouds
isCloudstack ( string $platform ) : boolean Checks wheter specified cloud is CloudStack based
isOpenstack ( string $platform, boolean $canonical = false ) : boolean Checks wheter specified cloud is OpenStack based
isPublic ( string $platform ) : boolean Checks wheter specified cloud is public
isRackspace ( string $platform ) : boolean Checks wheter specified cloud is Rackspace cloud
warmup ( ) Clears static cache

Описание методов

NewPlatform() публичный статический Метод

Create platform instance
public static NewPlatform ( string $platform ) : Scalr\Modules\PlatformModuleInterface
$platform string
Результат Scalr\Modules\PlatformModuleInterface

getCanonicalOpenstackPlatforms() публичный статический Метод

Gets the list of canonical OpenStack based clouds
public static getCanonicalOpenstackPlatforms ( ) : array
Результат array

getCloudstackBasedPlatforms() публичный статический Метод

Gets the list of CloudStack based clouds
public static getCloudstackBasedPlatforms ( ) : array
Результат array Returns the list of CloudStack based clouds

getOpenstackBasedPlatforms() публичный статический Метод

Gets the list of OpenStack based clouds
public static getOpenstackBasedPlatforms ( ) : array
Результат array Returns the list of OpenStack based clouds

getPublicPlatforms() публичный статический Метод

Gets the list of public clouds
public static getPublicPlatforms ( ) : array
Результат array Returns the list of public clouds

getRackspacePlatforms() публичный статический Метод

Returns the list of Rackspace clouds
public static getRackspacePlatforms ( ) : array
Результат array

isCloudstack() публичный статический Метод

Checks wheter specified cloud is CloudStack based
public static isCloudstack ( string $platform ) : boolean
$platform string A platform name
Результат boolean Returns true if specified cloud is CloudStack based or false otherwise

isOpenstack() публичный статический Метод

Checks wheter specified cloud is OpenStack based
public static isOpenstack ( string $platform, boolean $canonical = false ) : boolean
$platform string A platform name
$canonical boolean optional Only canonical OpenStack platforms
Результат boolean Returns true if specified cloud is OpenStack based or false otherwise

isPublic() публичный статический Метод

Checks wheter specified cloud is public
public static isPublic ( string $platform ) : boolean
$platform string A platform name
Результат boolean Returns true if specified cloud is public or false otherwise

isRackspace() публичный статический Метод

Checks wheter specified cloud is Rackspace cloud
public static isRackspace ( string $platform ) : boolean
$platform string A platform name
Результат boolean Returns true if specified cloud is Rackspace cloud or false otherwise

warmup() публичный статический Метод

Clears static cache
public static warmup ( )