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) : booleanCreate a new instance
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $options | array |
| Type | Description |
|---|---|
| boolean |

deployInstance(string $id, array $param, string | array $cmd) : string | arrayRun 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) : booleanDestroy an instance
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $id | string |
| Type | Description |
|---|---|
| boolean |

getLastHttpResponse() : \Zend_Http_ResponseGet the last HTTP response
Returns
| Type | Description |
|---|---|
| \Zend_Http_Response |

imagesInstance() : \ImageListReturn all the available instances images
Returns
| Type | Description |
|---|---|
| \ImageList |

listInstances() : \InstanceListReturn a list of the available instances
Returns
| Type | Description |
|---|---|
| \InstanceList |

monitorInstance(string $id, string $metric, array $options = null) : arrayReturn 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 | booleanReturn the public DNS name of the instance
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $id | string |
| Type | Description |
|---|---|
| string | boolean |

rebootInstance(string $id) : booleanReboot an instance
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $id | string |
| Type | Description |
|---|---|
| boolean |

startInstance(string $id) : booleanStart the execution of an instance
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $id | string |
| Type | Description |
|---|---|
| boolean |

statusInstance(string $id) : stringReturn the status of an instance
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $id | string |
| Type | Description |
|---|---|
| string |

stopInstance(string $id) : booleanStop 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) : booleanWait for status $status with a timeout of $timeout seconds
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $id | string | |
| $status | string | |
| $timeout | integer |
| Type | Description |
|---|---|
| boolean |