Zend Framework  1.12
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Zend_Cloud_Infrastructure_Adapter_Ec2 Class Reference

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 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.
 
 getAdapter ()
 Get the adapter.
 
 getLastHttpRequest ()
 Get last HTTP request.
 
 getLastHttpResponse ()
 Get the last HTTP response.
 
- Public Member Functions inherited from Zend_Cloud_Infrastructure_Adapter_AbstractAdapter
 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 AWS_ACCESS_KEY = 'aws_accesskey'
 AWS constants.
 
const AWS_SECRET_KEY = 'aws_secretkey'
 
const AWS_REGION = 'aws_region'
 
const AWS_SECURITY_GROUP = 'securityGroup'
 

Protected Attributes

 $ec2
 
 $ec2Image
 
 $ec2Zone
 
 $ec2Monitor
 
 $accessKey
 
 $accessSecret
 
 $region
 
 $mapStatus
 
 $mapMetrics
 
- Protected Attributes inherited from Zend_Cloud_Infrastructure_Adapter_AbstractAdapter
 $adapterResult
 
 $validMetrics
 

Constructor & Destructor Documentation

__construct (   $options = array())

Constructor.

Parameters
array | Zend_Config$options
Returns
void

Member Function Documentation

createInstance (   $name,
  $options 
)

Create a new instance.

Parameters
string$name
array$options
Returns
Instance|boolean

Implements Zend_Cloud_Infrastructure_Adapter.

destroyInstance (   $id)

Destroy an instance.

Parameters
string$id
Returns
boolean

Implements Zend_Cloud_Infrastructure_Adapter.

getAdapter ( )
getLastHttpRequest ( )

Get last HTTP request.

Returns
string

Implements Zend_Cloud_Infrastructure_Adapter.

getLastHttpResponse ( )

Get the last HTTP response.

Returns
Zend_Http_Response

Implements Zend_Cloud_Infrastructure_Adapter.

imagesInstance ( )

Return a list of all the available instance images.

Returns
ImageList

Implements Zend_Cloud_Infrastructure_Adapter.

listInstances ( )

Return a list of the available instancies.

Returns
Zend_Cloud_Infrastructure_InstanceList

Implements Zend_Cloud_Infrastructure_Adapter.

monitorInstance (   $id,
  $metric,
  $options = null 
)

Return the system information about the $metric of an instance.

Parameters
string$id
string$metric
null | array$options
Returns
array

Implements Zend_Cloud_Infrastructure_Adapter.

publicDnsInstance (   $id)

Return the public DNS name of the instance.

Parameters
string$id
Returns
string|boolean

Implements Zend_Cloud_Infrastructure_Adapter.

rebootInstance (   $id)

Reboot an instance.

Parameters
string$id
Returns
boolean

Implements Zend_Cloud_Infrastructure_Adapter.

startInstance (   $id)

Start an instance.

Parameters
string$id
Returns
boolean

Implements Zend_Cloud_Infrastructure_Adapter.

statusInstance (   $id)

Return the status of an instance.

Parameters
string
Returns
string|boolean

Implements Zend_Cloud_Infrastructure_Adapter.

stopInstance (   $id)

Stop an instance.

Parameters
string$id
Returns
boolean

Implements Zend_Cloud_Infrastructure_Adapter.

zonesInstance ( )

Return all the available zones.

Returns
array

Implements Zend_Cloud_Infrastructure_Adapter.

Member Data Documentation

$accessKey
protected
$accessSecret
protected
$ec2
protected
$ec2Image
protected
$ec2Monitor
protected
$ec2Zone
protected
$mapMetrics
protected
$mapStatus
protected
$region
protected
const AWS_ACCESS_KEY = 'aws_accesskey'

AWS constants.

const AWS_REGION = 'aws_region'
const AWS_SECRET_KEY = 'aws_secretkey'
const AWS_SECURITY_GROUP = 'securityGroup'