throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
} // END - if
- // Implement this!
- $this->partialStub('Please implement this method.');
+ // --------------------- Hub-id acquirement phase ---------------------
+ // Acquire a hub-id. This step generates on first launch a new one and
+ // on any later launches it will restore the hub-id from the database.
+ // A passed 'nickname=xxx' argument will be used to add some
+ // 'personality' to the hub.
+ $nodeInstance->bootstrapAcquireHubId();
}
}
throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
} // END - if
- // Implement this!
- $this->partialStub('Please implement this method.');
+ // ------------------- More generic bootstrap steps -------------------
+ // Generate the session id which will only be stored in RAM and kept for
+ // the whole "session".
+ $nodeInstance->bootstrapGenerateSessionId();
}
}
throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
} // END - if
- // Implement this!
- $this->partialStub('Please implement this method.');
+ // Restore a previously downloaded bootstrap-node list.
+ $nodeInstance->bootstrapRestoreNodeList();
}
}
* @todo add some more special bootstrap things for this boot node
*/
public function doBootstrapping () {
- // Call generic (parent) bootstrapping method first
- parent::bootstrapGenericBootstrapping();
-
// Now check if the IP address matches one of the bootstrap nodes
if ($this->ifAddressMatchesBootstrappingNodes($_SERVER['SERVER_ADDR'])) {
// Get our port from configuration
$this->debugOutput(' ');
}
- /**
- * Do generic things for bootup phase. This can be e.g. checking if the
- * right node mode is selected for this hub's IP number.
- *
- * @return void
- * @todo This method is maybe not yet finished.
- */
- protected function bootstrapGenericBootstrapping () {
- // --------------------- Hub-id acquirement phase ---------------------
- // Acquire a hub-id. This step generates on first launch a new one and
- // on any later launches it will restore the hub-id from the database.
- // A passed 'nickname=xxx' argument will be used to add some
- // 'personality' to the hub.
- $this->bootstrapAcquireHubId();
-
- // ------------------- More generic bootstrap steps -------------------
- // Generate the session id which will only be stored in RAM and kept for
- // the whole "session".
- $this->bootstrapGenerateSessionId();
-
- // Restore a previously downloaded bootstrap-node list.
- $this->bootstrapRestoreNodeList();
-
- // @TODO Add some generic bootstrap steps
- $this->partialStub('Add some generic bootstrap steps here.');
- }
-
/**
* Generic method to acquire a hub-id. On first run this generates a new one
* based on many pseudo-random data. On any later run, unless the id
* @todo Implement this method
*/
public function doBootstrapping () {
- // Call generic (parent) bootstrapping method first
- parent::bootstrapGenericBootstrapping();
$this->partialStub('Please implement this method.');
}
* @todo Implement this method
*/
public function doBootstrapping () {
- // Call generic (parent) bootstrapping method first
- parent::bootstrapGenericBootstrapping();
$this->partialStub('Please implement this method.');
}
* @todo Implement this method
*/
public function doBootstrapping () {
- // Call generic (parent) bootstrapping method first
- parent::bootstrapGenericBootstrapping();
$this->partialStub('Please implement this method.');
}