Abstract infrastructure service adapter

category Zend
package Zend_Cloud_Infrastructure
subpackage Adapter
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Run arbitrary shell script on an instance

deployInstance(string $id, $params, string|array $cmd) : string | array
inherited_from \Zend_Cloud_Infrastructure_Adapter::deployInstance()

Parameters

$id

string

$params

$cmd

stringarray

Returns

stringarray

Get the last result of the adapter

getAdapterResult() : array
inherited_from \Zend_Cloud_Infrastructure_Adapter::getAdapterResult()

Returns

array

Wait for status $status with a timeout of $timeout seconds

waitStatusInstance(string $id, string $status, integer $timeout = self::TIMEOUT_STATUS_CHANGE) : boolean
inherited_from \Zend_Cloud_Infrastructure_Adapter::waitStatusInstance()

Parameters

$id

string

$status

string

$timeout

integer

Returns

boolean

 Properties

 

Store the last response from the adpter

$adapterResult : array

Default

 

Valid metrics for monitor

$validMetrics : array

Default

array(\Zend_Cloud_Infrastructure_Instance::MONITOR_CPU, \Zend_Cloud_Infrastructure_Instance::MONITOR_RAM, \Zend_Cloud_Infrastructure_Instance::MONITOR_DISK, \Zend_Cloud_Infrastructure_Instance::MONITOR_DISK_READ, \Zend_Cloud_Infrastructure_Instance::MONITOR_DISK_WRITE, \Zend_Cloud_Infrastructure_Instance::MONITOR_NETWORK_IN, \Zend_Cloud_Infrastructure_Instance::MONITOR_NETWORK_OUT)