public function __construct($options = array())
 {
     parent::__construct($options);
     //X_Debug::i(var_export($options->toArray(), true));
     $this->http_command = $this->options->commander->http->get('command', 'http://{%host%}:{%port%}/requests/status.xml{%command%}');
     $host = $this->options->commander->http->get('host', '127.0.0.1');
     $port = $this->options->commander->http->get('port', '8080');
     $this->http_host = $host;
     $this->http_port = $port;
     $this->http_timeout = (int) $this->options->commander->http->get('timeout', 5);
     $this->http_command = str_replace(array('{%host%}', '{%port%}'), array($host, $port), $this->http_command);
 }
 public function __construct($options = array())
 {
     parent::__construct($options);
     if (X_Env::isWindows()) {
         $this->nc_command = $this->options->get('commander', new Zend_Config(array()))->get('nc_command', 'echo {%command%} | "' . dirname(__FILE__) . '/nc.exe" {%host%} {%port%} -w 1');
     } else {
         $this->nc_command = $this->options->get('commander', new Zend_Config(array()))->get('nc_command', 'echo {%command%} | nc {%host%} {%port%}');
     }
     $host = $this->options->get('commander', new Zend_Config(array()))->get('nc_host', '127.0.0.1');
     $port = $this->options->get('commander', new Zend_Config(array()))->get('nc_port', '4212');
     $this->nc_command = str_replace(array('{%host%}', '{%port%}'), array($host, $port), $this->nc_command);
 }