Exemple #1
0
 /**
  * Reboot an instance
  *
  * @param string $id
  * @return boolean
  */
 public function rebootInstance($id)
 {
     $this->resetError();
     $result = $this->rackspace->rebootServer($id, true);
     if ($result === false) {
         $this->setError();
     }
     return $result;
 }
Exemple #2
0
 /**
  * Test hard reboot the server
  */
 public function testHardRebootServer()
 {
     $this->assertTrue($this->rackspace->rebootServer(self::$serverId, true));
 }
Exemple #3
0
 /**
  * Reboot the server
  * 
  * @return boolean 
  */
 public function reboot($hard=false)
 {
     return $this->service->rebootServer($this->id,$hard);
 }
Exemple #4
0
 /**
  * Test hard reboot the server
  */
 public function testHardRebootServer()
 {
     $this->assertTrue(self::$rackspace->rebootServer(self::$serverId,true));
     $this->assertTrue(self::waitForStatus('active'));
 }
Exemple #5
0
 /**
  * Reboot an instance
  *
  * @param string $id
  * @return boolean
  */ 
 public function rebootInstance($id)
 {
     return $this->rackspace->rebootServer($id,true);
 }