Cloud/Infrastructure/Instance.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Cloud
- Subpackage
- Infrastructure
\Zend_Cloud_Infrastructure_Instance
Package: Zend_Cloud\InfrastructureInstance of an infrastructure service
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties
array $attributeRequired = array(self::INSTANCE_ID, self::INSTANCE_STATUS, self::INSTANCE_IMAGEID, self::INSTANCE_ZONE)
Attributes required for an instance
Default valuearray(self::INSTANCE_ID, self::INSTANCE_STATUS, self::INSTANCE_IMAGEID, self::INSTANCE_ZONE)
Details- Type
- array
Methods
deploy( $params, string | array $cmd) : string | array
Run arbitrary shell script on the instance
ParametersName | Type | Description |
---|
$params | | |
---|
$cmd | string | array | |
---|
ReturnsType | Description |
---|
string | array | |
getAttribute( $key) : \misc | false
Get Attribute with a specific key
ParametersReturnsType | Description |
---|
\misc | false | |
getStatus() : string | boolean
Get the status of the instance
ReturnsType | Description |
---|
string | boolean | |
monitor(string $metric, null | array $options = null) : array | boolean
Return the system informations about the $metric of an instance
ParametersName | Type | Description |
---|
$metric | string | |
---|
$options | null | array | |
---|
ReturnsType | Description |
---|
array | boolean | |
waitStatus(string $status, integer $timeout = \Adapter::TIMEOUT_STATUS_CHANGE) : boolean
Wait for status $status with a timeout of $timeout seconds
ParametersName | Type | Description |
---|
$status | string | |
---|
$timeout | integer | |
---|
Returns