From: Roland Haeder Date: Tue, 4 Feb 2014 19:52:52 +0000 (+0100) Subject: Renamed method to better naming scheme ('bootstrapping' node or 'bootstrap node'?). X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ce431b2aa2a797d132a19715f01d899fb7bb2c36;p=hub.git Renamed method to better naming scheme ('bootstrapping' node or 'bootstrap node'?). Signed-off-by: Roland Haeder --- diff --git a/application/hub/main/nodes/boot/class_HubBootNode.php b/application/hub/main/nodes/boot/class_HubBootNode.php index b0ab5adb4..29f84ac7a 100644 --- a/application/hub/main/nodes/boot/class_HubBootNode.php +++ b/application/hub/main/nodes/boot/class_HubBootNode.php @@ -59,7 +59,7 @@ class HubBootNode extends BaseHubNode implements NodeHelper, Registerable { */ public function doBootstrapping () { // Now check if the IP address matches one of the bootstrap nodes - if ($this->ifAddressMatchesBootstrappingNodes($this->getConfigInstance()->detectServerAddress())) { + if ($this->ifAddressMatchesBootstrapNodes($this->getConfigInstance()->detectServerAddress())) { // Get our port from configuration $ourPort = $this->getConfigInstance()->getConfigEntry('node_listen_port'); @@ -69,12 +69,12 @@ class HubBootNode extends BaseHubNode implements NodeHelper, Registerable { // Is the port the same? if ($bootPort == $ourPort) { // It is the same! - self::createDebugInstance(__CLASS__)->debugOutput('BOOTSTRAP: IP/port matches bootstrapping node ' . $this->getBootIpPort() . '.'); + self::createDebugInstance(__CLASS__)->debugOutput('BOOTSTRAP: IP/port matches bootstrap node ' . $this->getBootIpPort() . '.'); // Now, does the mode match if ($this->getRequestInstance()->getRequestElement('mode') == self::NODE_TYPE_BOOT) { // Output debug message - self::createDebugInstance(__CLASS__)->debugOutput('BOOTSTRAP: Our node is a valid bootstrapping node.'); + self::createDebugInstance(__CLASS__)->debugOutput('BOOTSTRAP: Our node is a valid bootstrap node.'); } else { // Output warning self::createDebugInstance(__CLASS__)->debugOutput('BOOTSTRAP: WARNING: Mismatching mode ' . $this->getRequestInstance()->getRequestElement('mode') . '!=' . BaseHubNode::NODE_TYPE_BOOT . ' detected.'); diff --git a/application/hub/main/nodes/class_BaseHubNode.php b/application/hub/main/nodes/class_BaseHubNode.php index c3e4b7d21..027091571 100644 --- a/application/hub/main/nodes/class_BaseHubNode.php +++ b/application/hub/main/nodes/class_BaseHubNode.php @@ -37,7 +37,7 @@ class BaseHubNode extends BaseHubSystem implements Updateable, AddableCriteria { const OBJECT_LIST_SEPARATOR = ','; /** - * IP/port number of bootstrapping node + * IP/port number of bootstrap node */ private $bootIpPort = ''; @@ -200,12 +200,12 @@ class BaseHubNode extends BaseHubSystem implements Updateable, AddableCriteria { } /** - * Checks whether the given IP address matches one of the bootstrapping nodes + * Checks whether the given IP address matches one of the bootstrap nodes * * @param $remoteAddr IP address to checkout against our bootstrapping list * @return $isFound Whether the IP is found */ - protected function ifAddressMatchesBootstrappingNodes ($remoteAddr) { + protected function ifAddressMatchesBootstrapNodes ($remoteAddr) { // By default nothing is found $isFound = FALSE;