Cloud/Infrastructure/Adapter.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_Adapter
Package: Zend_Cloud\Infrastructure
Adapter interface for infrastructure service
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Methods
createInstance(string $name, array $options) : boolean
Create a new instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string | |
$options | array |
Type | Description |
---|---|
boolean |
deployInstance(string $id, array $param, string | array $cmd) : string | array
Run arbitrary shell script on an instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$id | string | |
$param | array | |
$cmd | string | array |
Type | Description |
---|---|
string | array |
destroyInstance(string $id) : boolean
Destroy an instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
boolean |
getLastHttpResponse() : \Zend_Http_Response
Get the last HTTP response
Returns
Type | Description |
---|---|
\Zend_Http_Response |
imagesInstance() : \ImageList
Return all the available instances images
Returns
Type | Description |
---|---|
\ImageList |
listInstances() : \InstanceList
Return a list of the available instances
Returns
Type | Description |
---|---|
\InstanceList |
monitorInstance(string $id, string $metric, array $options = null) : array
Return the system informations about the $metric of an instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$id | string | |
$metric | string | |
$options | array |
Type | Description |
---|---|
array |
publicDnsInstance(string $id) : string | boolean
Return the public DNS name of the instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
string | boolean |
rebootInstance(string $id) : boolean
Reboot an instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
boolean |
startInstance(string $id) : boolean
Start the execution of an instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
boolean |
statusInstance(string $id) : string
Return the status of an instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
string |
stopInstance(string $id) : boolean
Stop the execution of an instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
boolean |
waitStatusInstance(string $id, string $status, integer $timeout = self::TIMEOUT_STATUS_CHANGE) : boolean
Wait for status $status with a timeout of $timeout seconds
Parameters
Returns
Name | Type | Description |
---|---|---|
$id | string | |
$status | string | |
$timeout | integer |
Type | Description |
---|---|
boolean |