99
1010/** 
1111 * Adapter interface for infrastructure service 
12-  *   
12+  * 
1313 * @package    Zend_Cloud 
1414 * @subpackage Infrastructure 
1515 * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 
1616 * @license    http://framework.zend.com/license/new-bsd     New BSD License 
1717 */ 
18- interface  Zend_Cloud_Infrastructure_Adapter  
19- {  
20-     const  HTTP_ADAPTER  = 'http_adapter ' ;  
18+ interface  Zend_Cloud_Infrastructure_Adapter
19+ {
20+     const  HTTP_ADAPTER  = 'http_adapter ' ;
2121
2222    /** 
2323     * The max. amount of time, in seconds, to wait for a status change 
@@ -33,135 +33,135 @@ interface Zend_Cloud_Infrastructure_Adapter
3333     * Return a list of the available instances 
3434     * 
3535     * @return InstanceList 
36-      */   
37-     public  function  listInstances ();  
38-   
36+      */ 
37+     public  function  listInstances ();
38+ 
3939    /** 
4040     * Return the status of an instance 
4141     * 
4242     * @param  string $id 
4343     * @return string 
44-      */   
45-     public  function  statusInstance ($ id  
44+      */ 
45+     public  function  statusInstance ($ id
4646
4747    /** 
4848     * Wait for status $status with a timeout of $timeout seconds 
49-      *   
49+      * 
5050     * @param  string $id 
5151     * @param  string $status 
52-      * @param  integer $timeout   
52+      * @param  integer $timeout 
5353     * @return boolean 
5454     */ 
5555    public  function  waitStatusInstance ($ id$ status$ timeoutself ::TIMEOUT_STATUS_CHANGE );
56-      
56+ 
5757    /** 
5858     * Return the public DNS name of the instance 
59-      *   
59+      * 
6060     * @param  string $id 
61-      * @return string|boolean   
61+      * @return string|boolean 
6262     */ 
6363    public  function  publicDnsInstance ($ id
64-      
64+ 
6565    /** 
6666     * Reboot an instance 
6767     * 
6868     * @param string $id 
6969     * @return boolean 
70-      */   
71-     public  function  rebootInstance ($ id  
72-   
70+      */ 
71+     public  function  rebootInstance ($ id
72+ 
7373    /** 
7474     * Create a new instance 
7575     * 
7676     * @param  string $name 
7777     * @param  array $options 
7878     * @return boolean 
79-      */   
80-     public  function  createInstance ($ name$ options  
81-   
79+      */ 
80+     public  function  createInstance ($ name$ options
81+ 
8282    /** 
8383     * Stop the execution of an instance 
8484     * 
8585     * @param  string $id 
8686     * @return boolean 
87-      */   
88-     public  function  stopInstance ($ id  
89-   
87+      */ 
88+     public  function  stopInstance ($ id
89+ 
9090    /** 
9191     * Start the execution of an instance 
9292     * 
9393     * @param  string $id 
9494     * @return boolean 
95-      */   
96-     public  function  startInstance ($ id  
97-   
95+      */ 
96+     public  function  startInstance ($ id
97+ 
9898    /** 
9999     * Destroy an instance 
100100     * 
101101     * @param  string $id 
102102     * @return boolean 
103-      */   
104-     public  function  destroyInstance ($ id  
105-   
103+      */ 
104+     public  function  destroyInstance ($ id
105+ 
106106    /** 
107107     * Return all the available instances images 
108108     * 
109109     * @return ImageList 
110-      */   
111-     public  function  imagesInstance ();  
112-      
110+      */ 
111+     public  function  imagesInstance ();
112+ 
113113    /** 
114114     * Return all the available zones 
115-      *   
115+      * 
116116     * @return array 
117117     */ 
118118    public  function  zonesInstance ();
119-      
119+ 
120120    /** 
121121     * Return the system informations about the $metric of an instance 
122122     * 
123123     * @param  string $id 
124124     * @param  string $metric 
125125     * @param  array $options 
126126     * @return array 
127-      */   
128-     public  function  monitorInstance ($ id$ metric$ optionsnull );  
129-   
127+      */ 
128+     public  function  monitorInstance ($ id$ metric$ optionsnull );
129+ 
130130    /** 
131131     * Run arbitrary shell script on an instance 
132132     * 
133133     * @param  string $id 
134134     * @param  array $param 
135135     * @param  string|array $cmd 
136136     * @return string|array 
137-      */   
137+      */ 
138138    public  function  deployInstance ($ id$ param$ cmd
139-              
139+ 
140140    /** 
141141     * Get the adapter instance 
142-      *   
142+      * 
143143     * @return object 
144144     */ 
145145    public  function  getAdapter ();
146-      
146+ 
147147    /** 
148148     * Get the adapter result 
149-      *   
149+      * 
150150     * @return array 
151151     */ 
152152    public  function  getAdapterResult ();
153-      
153+ 
154154    /** 
155155     * Get the last HTTP response 
156-      *   
156+      * 
157157     * @return Zend_Http_Response 
158158     */ 
159159    public  function  getLastHttpResponse ();
160-      
160+ 
161161    /** 
162162     * Get the last HTTP request 
163-      *   
163+      * 
164164     * @return string 
165165     */ 
166166    public  function  getLastHttpRequest ();
167- }  
167+ }
0 commit comments