Cloud/Infrastructure/Adapter/AbstractAdapter.php

Show: PublicProtectedPrivateinherited
Table of Contents
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Cloud  
Subpackage
DocumentService  

\Zend_Cloud_Infrastructure_Adapter_AbstractAdapter

Package: Zend_Cloud_Infrastructure\Adapter
Abstract infrastructure service adapter
Implements
Children
\Zend_Cloud_Infrastructure_Adapter_Rackspace
\Zend_Cloud_Infrastructure_Adapter_Ec2
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $adapterResult
Store the last response from the adpter
Details
Type
array
>VPropertyprotectedarray $validMetrics = 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)
Valid metrics for monitor
Default valuearray(\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)Details
Type
array

Methods

methodpublicdeployInstance(string $id,  $params, string | array $cmd) : string | array

Run arbitrary shell script on an instance

Parameters
NameTypeDescription
$idstring
$params
$cmdstring | array
Returns
TypeDescription
string | array
methodpublicgetAdapterResult() : array

Get the last result of the adapter

Returns
TypeDescription
array
methodpublicwaitStatusInstance(string $id, string $status, integer $timeout = self::TIMEOUT_STATUS_CHANGE) : boolean

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

Parameters
NameTypeDescription
$idstring
$statusstring
$timeoutinteger
Returns
TypeDescription
boolean
Documentation was generated by phpDocumentor 2.2.0 .