PHP Class Scalr\Modules\PlatformFactory

Exibir arquivo Open project: scalr/scalr Class Usage Examples

Public Methods

Method Description
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

Method Details

NewPlatform() public static method

Create platform instance
public static NewPlatform ( string $platform ) : Scalr\Modules\PlatformModuleInterface
$platform string
return Scalr\Modules\PlatformModuleInterface

getCanonicalOpenstackPlatforms() public static method

Gets the list of canonical OpenStack based clouds
public static getCanonicalOpenstackPlatforms ( ) : array
return array

getCloudstackBasedPlatforms() public static method

Gets the list of CloudStack based clouds
public static getCloudstackBasedPlatforms ( ) : array
return array Returns the list of CloudStack based clouds

getOpenstackBasedPlatforms() public static method

Gets the list of OpenStack based clouds
public static getOpenstackBasedPlatforms ( ) : array
return array Returns the list of OpenStack based clouds

getPublicPlatforms() public static method

Gets the list of public clouds
public static getPublicPlatforms ( ) : array
return array Returns the list of public clouds

getRackspacePlatforms() public static method

Returns the list of Rackspace clouds
public static getRackspacePlatforms ( ) : array
return array

isCloudstack() public static method

Checks wheter specified cloud is CloudStack based
public static isCloudstack ( string $platform ) : boolean
$platform string A platform name
return boolean Returns true if specified cloud is CloudStack based or false otherwise

isOpenstack() public static method

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
return boolean Returns true if specified cloud is OpenStack based or false otherwise

isPublic() public static method

Checks wheter specified cloud is public
public static isPublic ( string $platform ) : boolean
$platform string A platform name
return boolean Returns true if specified cloud is public or false otherwise

isRackspace() public static method

Checks wheter specified cloud is Rackspace cloud
public static isRackspace ( string $platform ) : boolean
$platform string A platform name
return boolean Returns true if specified cloud is Rackspace cloud or false otherwise

warmup() public static method

Clears static cache
public static warmup ( )