PHP 클래스 Scalr\Modules\PlatformFactory

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

공개 메소드들

메소드 설명
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 ( )