Ejemplo n.º 1
0
 public function actionOverview()
 {
     $this->_view->structure = array();
     foreach ($this->_structure as $cluster) {
         $this->_view->structure[$cluster->getName()] = array();
         $nodes = $cluster->getNodes();
         foreach ($nodes as $node) {
             $this->_view->structure[$cluster->getName()][$node->getName()] = array('ip' => $node->getIp(), 'port' => $node->getPort(), 'state' => $node->getUpState() ? 'UP' : 'DOWN', 'responseTime' => Memcadmin_Misc::formatSecAsmSec($node->getLastResponseTime()));
         }
     }
     return $this;
 }