Instance of an infrastructure service
package | Zend_Cloud |
---|---|
subpackage | Infrastructure |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct(\Adapter $adapter, array $data = null
) : void
\Adapter
array
deploy($params, string|array $cmd) : string | array
string
array
string
array
destroy() : boolean
boolean
getAttribute($key) : \misc | false
\misc
false
getAttributes() : array
array
getCpu() : string
string
getId() : string
string
getImageId() : string
string
getLaunchTime() : string
string
getName() : string
string
getPublicDns() : string
string
getRamSize() : string
string
getStatus() : string | boolean
string
boolean
getStorageSize() : string
string
getZone() : string
string
monitor(string $metric, null|array $options = null
) : array | boolean
string
null
array
array
boolean
reboot() : boolean
boolean
start() : boolean
boolean
stop() : boolean
boolean
waitStatus(string $status, integer $timeout = \Adapter::TIMEOUT_STATUS_CHANGE
) : boolean
string
integer
boolean
$adapter : \Zend_Cloud_Infrastructure_Adapter
$attributeRequired : array
array(self::INSTANCE_ID, self::INSTANCE_STATUS, self::INSTANCE_IMAGEID, self::INSTANCE_ZONE)
$attributes : array
INSTANCE_CPU = 'cpu'
INSTANCE_ID = 'id'
INSTANCE_IMAGEID = 'imageId'
INSTANCE_LAUNCHTIME = 'launchTime'
INSTANCE_NAME = 'name'
INSTANCE_PUBLICDNS = 'publicDns'
INSTANCE_RAM = 'ram'
INSTANCE_STATUS = 'status'
INSTANCE_STORAGE = 'storageSize'
INSTANCE_ZONE = 'zone'
MONITOR_CPU = 'CpuUsage'
MONITOR_DISK = 'DiskUsage'
MONITOR_DISK_READ = 'DiskRead'
MONITOR_DISK_WRITE = 'DiskWrite'
MONITOR_END_TIME = 'EndTime'
MONITOR_NETWORK_IN = 'NetworkIn'
MONITOR_NETWORK_OUT = 'NetworkOut'
MONITOR_RAM = 'RamUsage'
MONITOR_START_TIME = 'StartTime'
SSH_PASSPHRASE = 'passphrase'
SSH_PASSWORD = 'password'
SSH_PRIVATE_KEY = 'privateKey'
SSH_PUBLIC_KEY = 'publicKey'
SSH_USERNAME = 'username'
STATUS_PENDING = 'pending'
STATUS_REBOOTING = 'rebooting'
STATUS_REBUILD = 'rebuild'
STATUS_RUNNING = 'running'
STATUS_SHUTTING_DOWN = 'shutting-down'
STATUS_STOPPED = 'stopped'
STATUS_TERMINATED = 'terminated'