示例#1
0
 private function statusZeroMQServer()
 {
     if (!$this->_isSiteAdmin()) {
         throw new MethodNotAllowedException();
     }
     App::uses('PubSubTool', 'Tools');
     $pubSubTool = new PubSubTool();
     $result = $pubSubTool->statusCheck();
     if (!empty($result)) {
         $this->set('events', $result['publishCount']);
         $this->set('time', date('Y/m/d H:i:s', $result['timestamp']));
         $this->set('time2', date('Y/m/d H:i:s', $result['timestampSettings']));
     }
     $this->render('ajax/zeromqstatus');
 }
示例#2
0
 public function statusZeroMQServer()
 {
     App::uses('PubSubTool', 'Tools');
     $pubSubTool = new PubSubTool();
     $result = $pubSubTool->statusCheck();
     if (!empty($result)) {
         $this->set('events', $result['publishCount']);
         $this->set('time', date('Y/m/d H:i:s', $result['timestamp']));
         $this->set('time2', date('Y/m/d H:i:s', $result['timestampSettings']));
     }
     $this->render('ajax/zeromqstatus');
 }