Esempio n. 1
0
 function __construct(&$settings, $key_id, $value, $expire)
 {
     parent::__construct($settings);
     $this->settings =& $settings;
     $this->key_id = $key_id;
     $this->value = $value;
     $this->expire = $expire;
 }
Esempio n. 2
0
 function __construct(&$settings, $bootstrap_nodes)
 {
     parent::__construct($settings);
     $this->settings =& $settings;
     $this->bootstrap_nodes = $bootstrap_nodes;
     if (strlen($settings->own_node_id) !== N / 8) {
         $settings->own_node_id = Node::randomNodeId();
     }
 }
Esempio n. 3
0
 public function __construct()
 {
     $this->namespace = 'doctrine';
     $this->configDoctrine = $this->getDoctrineConfig();
     $this->configDoctrine = $this->configDoctrine['doctrine'];
     $this->Con = Doctrine_Manager::connection();
     $this->setDefaultOptions();
     parent::__construct();
 }
Esempio n. 4
0
 public function __construct($source, $filename, $input, $params)
 {
     // TODO: find out why java won't work with memory limit set to
     // more plausible values.
     $params['memorylimit'] = 0;
     Task::__construct($source, $filename, $input, $params);
     $this->default_params['interpreterargs'] = array("-Xrs", "-Xss8m", "-Xmx200m");
     // Superclass constructor calls subclasses to get filename if it's
     // not provided, so $this->sourceFileName should now be set correctly.
     $extStart = strpos($this->sourceFileName, '.');
     // Start of extension
     $this->mainClassName = substr($this->sourceFileName, 0, $extStart);
 }
Esempio n. 5
0
 function __construct(&$settings, $key_id, $initial_node_list = NULL)
 {
     parent::__construct($settings);
     if ($initial_node_list === NULL) {
         $this->initial_node_list = $settings->kbuckets->closestNodes($key_id, $settings->alpha);
     } else {
         $this->initial_node_list = $initial_node_list;
     }
     assert(get_class($this->initial_node_list) === 'Kademlia\\NodeList');
     $this->settings =& $settings;
     $this->needle_id = Node::hexId2bin($key_id);
     $this->asked_nodes = new NodeList([]);
     $this->found_nodes = new NodeList([]);
     $this->hop = 0;
     $this->values = [];
     $this->previous_distance = NULL;
     $this->min_distance = str_repeat(chr(255), N / 8);
 }
Esempio n. 6
0
 public function __construct($task_id_, $server_, $applications_)
 {
     Logger::debug('main', 'Starting TASK_remove::__construct for task ' . $task_id_);
     parent::__construct($task_id_, $server_);
     $this->applications = $applications_;
 }
Esempio n. 7
0
 public function __construct($source, $filename, $input, $params)
 {
     Task::__construct($source, $filename, $input, $params);
     $this->default_params['interpreterargs'] = array('-BE');
 }
Esempio n. 8
0
 public function __construct($source, $filename, $input, $params)
 {
     Task::__construct($source, $filename, $input, $params);
     $this->default_params['compileargs'] = array('-vew', '-Se');
     // stop on first error
 }
Esempio n. 9
0
 public function __construct($source, $filename, $input, $params)
 {
     Task::__construct($source, $filename, $input, $params);
     $this->default_params['interpreterargs'] = array('--norc', '--no-window-system', '--silent', '-H');
 }
Esempio n. 10
0
 function __construct(&$settings, $node)
 {
     parent::__construct($settings);
     $this->node = $node;
 }
Esempio n. 11
0
 public function __construct($source, $filename, $input, $params)
 {
     Task::__construct($source, $filename, $input, $params);
     $this->default_params['compileargs'] = array('-Wall', '-Werror', '-std=c99', '-x c');
 }
Esempio n. 12
0
 public function __construct($interval, $cb)
 {
     $this->interval_ = $interval;
     parent::__construct((int) (gettimeofday(true) * 1000) + $this->interval_, $cb);
 }
Esempio n. 13
0
 /**
  * @param string $name Tasks name
  * @param array $group
  */
 public function __construct($name, $group)
 {
     parent::__construct($name);
     $this->group = $group;
 }
Esempio n. 14
0
 function __construct(&$settings)
 {
     parent::__construct($settings);
 }
Esempio n. 15
0
 public function __construct($client, $response)
 {
     $task_id = get($response, "task_id");
     parent::__construct($client, $task_id);
     $this->response = $response;
 }