Zend Framework
1.12
|
Public Member Functions | |
__construct ($options=array()) | |
Constructor. | |
listInstances () | |
Return a list of the available instancies. | |
statusInstance ($id) | |
Return the status of an instance. | |
publicDnsInstance ($id) | |
Return the public DNS name/Ip address of the instance. | |
rebootInstance ($id) | |
Reboot an instance. | |
createInstance ($name, $options) | |
Create a new instance. | |
stopInstance ($id) | |
Stop an instance. | |
startInstance ($id) | |
Start an instance. | |
destroyInstance ($id) | |
Destroy an instance. | |
imagesInstance () | |
Return a list of all the available instance images. | |
zonesInstance () | |
Return all the available zones. | |
monitorInstance ($id, $metric, $options=null) | |
Return the system information about the $metric of an instance NOTE: it works only for Linux servers. | |
getAdapter () | |
Get the adapter. | |
getLastHttpRequest () | |
Get last HTTP request. | |
getLastHttpResponse () | |
Get the last HTTP response. | |
![]() | |
getAdapterResult () | |
Get the last result of the adapter. | |
waitStatusInstance ($id, $status, $timeout=self::TIMEOUT_STATUS_CHANGE) | |
Wait for status $status with a timeout of $timeout seconds. | |
deployInstance ($id, $params, $cmd) | |
Run arbitrary shell script on an instance. | |
Public Attributes | |
const | RACKSPACE_USER = 'rackspace_user' |
RACKSPACE constants. | |
const | RACKSPACE_KEY = 'rackspace_key' |
const | RACKSPACE_REGION = 'rackspace_region' |
const | RACKSPACE_ZONE_USA = 'USA' |
const | RACKSPACE_ZONE_UK = 'UK' |
const | MONITOR_CPU_SAMPLES = 3 |
Protected Member Functions | |
convertAttributes ($attr) | |
Convert the attributes of Rackspace server into attributes of Infrastructure. | |
Protected Attributes | |
$rackspace | |
$accessUser | |
$accessKey | |
$region | |
$flavors | |
$mapStatus | |
![]() | |
$adapterResult | |
$validMetrics | |
__construct | ( | $options = array() | ) |
|
protected |
Convert the attributes of Rackspace server into attributes of Infrastructure.
array | $attr |
createInstance | ( | $name, | |
$options | |||
) |
Create a new instance.
string | $name | |
array | $options |
Implements Zend_Cloud_Infrastructure_Adapter.
destroyInstance | ( | $id | ) |
Destroy an instance.
string | $id |
Implements Zend_Cloud_Infrastructure_Adapter.
getAdapter | ( | ) |
Get the adapter.
Implements Zend_Cloud_Infrastructure_Adapter.
getLastHttpRequest | ( | ) |
getLastHttpResponse | ( | ) |
imagesInstance | ( | ) |
Return a list of all the available instance images.
Implements Zend_Cloud_Infrastructure_Adapter.
listInstances | ( | ) |
Return a list of the available instancies.
Implements Zend_Cloud_Infrastructure_Adapter.
monitorInstance | ( | $id, | |
$metric, | |||
$options = null |
|||
) |
Return the system information about the $metric of an instance NOTE: it works only for Linux servers.
string | $id | |
string | $metric | |
null | array | $options |
Implements Zend_Cloud_Infrastructure_Adapter.
publicDnsInstance | ( | $id | ) |
Return the public DNS name/Ip address of the instance.
string | $id |
Implements Zend_Cloud_Infrastructure_Adapter.
rebootInstance | ( | $id | ) |
Reboot an instance.
string | $id |
Implements Zend_Cloud_Infrastructure_Adapter.
startInstance | ( | $id | ) |
Start an instance.
string | $id |
Implements Zend_Cloud_Infrastructure_Adapter.
statusInstance | ( | $id | ) |
Return the status of an instance.
string |
Implements Zend_Cloud_Infrastructure_Adapter.
stopInstance | ( | $id | ) |
zonesInstance | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const MONITOR_CPU_SAMPLES = 3 |
const RACKSPACE_KEY = 'rackspace_key' |
const RACKSPACE_REGION = 'rackspace_region' |
const RACKSPACE_USER = 'rackspace_user' |
RACKSPACE constants.
const RACKSPACE_ZONE_UK = 'UK' |
const RACKSPACE_ZONE_USA = 'USA' |