Cloud/Infrastructure/Adapter.php

Show: PublicProtectedPrivateinherited
    Table of Contents
    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

    >VConstant  HTTP_ADAPTER = 'http_adapter'
    >VConstant  TIMEOUT_STATUS_CHANGE = 30
    The max. amount of time, in seconds, to wait for a status change
    >VConstant  TIME_STEP_STATUS_CHANGE = 5
    The time step, in seconds, for the status change

    Methods

    methodpubliccreateInstance(string $name, array $options) : boolean

    Create a new instance

    Parameters
    NameTypeDescription
    $namestring
    $optionsarray
    Returns
    TypeDescription
    boolean
    methodpublicdeployInstance(string $id, array $param, string | array $cmd) : string | array

    Run arbitrary shell script on an instance

    Parameters
    NameTypeDescription
    $idstring
    $paramarray
    $cmdstring | array
    Returns
    TypeDescription
    string | array
    methodpublicdestroyInstance(string $id) : boolean

    Destroy an instance

    Parameters
    NameTypeDescription
    $idstring
    Returns
    TypeDescription
    boolean
    methodpublicgetAdapter() : object

    Get the adapter instance

    Returns
    TypeDescription
    object
    methodpublicgetAdapterResult() : array

    Get the adapter result

    Returns
    TypeDescription
    array
    methodpublicgetLastHttpRequest() : string

    Get the last HTTP request

    Returns
    TypeDescription
    string
    methodpublicgetLastHttpResponse() : \Zend_Http_Response

    Get the last HTTP response

    Returns
    TypeDescription
    \Zend_Http_Response
    methodpublicimagesInstance() : \ImageList

    Return all the available instances images

    Returns
    TypeDescription
    \ImageList
    methodpubliclistInstances() : \InstanceList

    Return a list of the available instances

    Returns
    TypeDescription
    \InstanceList
    methodpublicmonitorInstance(string $id, string $metric, array $options = null) : array

    Return the system informations about the $metric of an instance

    Parameters
    NameTypeDescription
    $idstring
    $metricstring
    $optionsarray
    Returns
    TypeDescription
    array
    methodpublicpublicDnsInstance(string $id) : string | boolean

    Return the public DNS name of the instance

    Parameters
    NameTypeDescription
    $idstring
    Returns
    TypeDescription
    string | boolean
    methodpublicrebootInstance(string $id) : boolean

    Reboot an instance

    Parameters
    NameTypeDescription
    $idstring
    Returns
    TypeDescription
    boolean
    methodpublicstartInstance(string $id) : boolean

    Start the execution of an instance

    Parameters
    NameTypeDescription
    $idstring
    Returns
    TypeDescription
    boolean
    methodpublicstatusInstance(string $id) : string

    Return the status of an instance

    Parameters
    NameTypeDescription
    $idstring
    Returns
    TypeDescription
    string
    methodpublicstopInstance(string $id) : boolean

    Stop the execution of an instance

    Parameters
    NameTypeDescription
    $idstring
    Returns
    TypeDescription
    boolean
    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
    methodpubliczonesInstance() : array

    Return all the available zones

    Returns
    TypeDescription
    array
    Documentation was generated by phpDocumentor 2.2.0 .