public function getClusterNameForIndex($index)
 {
     try {
         $random_server = $this->getRandomNodeForIndex($index);
         $credentials = $this->getCredentialsForIndex($index);
         $sys_manager = new SystemManager($random_server, $credentials, 1500, 1500);
         return $sys_manager->describe_cluster_name();
     } catch (TException $e) {
         return null;
     }
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     //$this->MySql =  MySqldb::getInstance();
 }