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 | arrayRun arbitrary shell script on the instance
Parameters| Name | Type | Description |
|---|
| $params | | |
|---|
| $cmd | string | array | |
|---|
Returns| Type | Description |
|---|
| string | array | |



getAttribute( $key) : \misc | falseGet Attribute with a specific key
ParametersReturns| Type | Description |
|---|
| \misc | false | |



getStatus() : string | booleanGet the status of the instance
Returns| Type | Description |
|---|
| string | boolean | |



monitor(string $metric, null | array $options = null) : array | booleanReturn the system informations about the $metric of an instance
Parameters| Name | Type | Description |
|---|
| $metric | string | |
|---|
| $options | null | array | |
|---|
Returns| Type | Description |
|---|
| array | boolean | |



waitStatus(string $status, integer $timeout = \Adapter::TIMEOUT_STATUS_CHANGE) : booleanWait for status $status with a timeout of $timeout seconds
Parameters| Name | Type | Description |
|---|
| $status | string | |
|---|
| $timeout | integer | |
|---|
Returns