PHP 클래스 Scalr\DataType\CloudPlatformSuspensionInfo

부터: 5.9 (27.06.2015)
저자: Vitaliy Demidov ([email protected])
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$cloud
$envId integer The identifier of the environment
$group string The group of client environment properties
$platform string The name of the cloud platform

공개 메소드들

메소드 설명
__construct ( integer $envId, string $platform, string $group = null ) Constructor
getLastErrorMessage ( ) : string Returns last error message
isPendingSuspend ( ) : boolean Whether current platform has suspension errors
isSuspended ( ) : boolean Whether current platform is suspended
isSuspensionException ( Exception $e ) : boolean Checks whether it is the cloud platform suspension exception
registerError ( string $errorMessage ) Registers suspension error and suspends cloud platform if the timeout is reached
resume ( ) Resumes cloud platform
suspend ( ) Suspends the cloud platform

비공개 메소드들

메소드 설명
initProp ( string $name, string $value = null ) : EnvironmentProperty Initializes environment property

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( integer $envId, string $platform, string $group = null )
$envId integer The identifier of the Client's environment
$platform string The name of the cloud platform
$group string optional The client environment property group

getLastErrorMessage() 공개 메소드

Returns last error message
public getLastErrorMessage ( ) : string
리턴 string Returns last error message

isPendingSuspend() 공개 메소드

Whether current platform has suspension errors
public isPendingSuspend ( ) : boolean
리턴 boolean Returns true if the cloud platform is in the progress of the suspension due to ongoing errors

isSuspended() 공개 메소드

Whether current platform is suspended
public isSuspended ( ) : boolean
리턴 boolean Returns true if cloud platform is suspended

isSuspensionException() 공개 정적인 메소드

Checks whether it is the cloud platform suspension exception
public static isSuspensionException ( Exception $e ) : boolean
$e Exception
리턴 boolean Returns true if the exception is the suspension type

registerError() 공개 메소드

Registers suspension error and suspends cloud platform if the timeout is reached
public registerError ( string $errorMessage )
$errorMessage string The error message

resume() 공개 메소드

Resumes cloud platform
public resume ( )

suspend() 공개 메소드

Suspends the cloud platform
public suspend ( )

프로퍼티 상세

$cloud 공개적으로 프로퍼티

public $cloud

$envId 공개적으로 프로퍼티

The identifier of the environment
public int $envId
리턴 integer

$group 공개적으로 프로퍼티

The group of client environment properties
public string $group
리턴 string

$platform 공개적으로 프로퍼티

The name of the cloud platform
public string $platform
리턴 string