// Try to bootstrap the node and pass the request instance to it for
// extra arguments which mostly override config entries or enable special
// features within the hub (none is ready at this development stage)
+ $this->getDebugInstance()->output('BOOTSTRAP: Beginning with bootstrap...');
$nodeInstance->doBootstrapping();
+ $this->getDebugInstance()->output('BOOTSTRAP: Bootstrap finished.');
// ----------------------- Init all query queues ----------------------
// After the bootstrap is done we need to initialize the queues which
* @todo add some more special bootstrap things for this boot node
*/
public function doBootstrapping () {
- // Output message
- $this->getDebugInstance()->output('BOOTSTRAP: Beginning with bootstrap...');
-
// Call generic (parent) bootstrapping method first
parent::doGenericBootstrapping();
// Now check if the IP address matches one of the bootstrap nodes
if ($this->ifAddressMatchesBootstrappingNodes($_SERVER['SERVER_ADDR'])) {
// Get our port from configuration
- $ourPort = $this->getConfigInstance()->readConfig('node_listen_port');
+ $ourPort = $this->getConfigInstance()->readConfig('node_tcp_listen_port');
// Is the port the same?
if (substr($this->bootIpPort, -strlen($ourPort), strlen($ourPort)) == $ourPort) {
// This might not be all...
$this->partialStub('Please implement more bootsrapping steps.');
-
- // Output message
- $this->getDebugInstance()->output('BOOTSTRAP: Bootstrap finished.');
}
/**
* @todo Implement this method
*/
public function doBootstrapping () {
- // Output message
- $this->getDebugInstance()->output('BOOTSTRAP: Beginning with bootstrap...');
-
// Call generic (parent) bootstrapping method first
parent::doGenericBootstrapping();
$this->partialStub('Please implement this method.');
-
- // Output message
- $this->getDebugInstance()->output('BOOTSTRAP: Bootstrap finished.');
}
/**
* @todo Implement this method
*/
public function doBootstrapping () {
- // Output message
- $this->getDebugInstance()->output('BOOTSTRAP: Beginning with bootstrap...');
-
// Call generic (parent) bootstrapping method first
parent::doGenericBootstrapping();
$this->partialStub('Please implement this method.');
-
- // Output message
- $this->getDebugInstance()->output('BOOTSTRAP: Bootstrap finished.');
}
/**
* @todo Implement this method
*/
public function doBootstrapping () {
- // Output message
- $this->getDebugInstance()->output('BOOTSTRAP: Beginning with bootstrap...');
-
// Call generic (parent) bootstrapping method first
parent::doGenericBootstrapping();
$this->partialStub('Please implement this method.');
-
- // Output message
- $this->getDebugInstance()->output('BOOTSTRAP: Bootstrap finished.');
}
/**