// Import application-specific stuff
use Hub\Discovery\Node\BaseNodeDiscovery;
+use Hub\Factory\Tag\Package\PackageTagsFactory;
use Hub\Network\Package\NetworkPackage;
// Import framework stuff
use Hub\Network\Receive\Receivable;
// Import framework stuff
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
use CoreFramework\Filter\BaseFilter;
/**
// Import application-specific stuff
use Hub\Filter\Node\BaseNodeFilter;
use Hub\Network\Receive\Receivable;
+use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
// Import framework stuff
use CoreFramework\Filter\Filterable;
// Import application-specific stuff
use Hub\Filter\Node\BaseNodeFilter;
use Hub\Network\Receive\Receivable;
+use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
// Import framework stuff
use CoreFramework\Filter\Filterable;
// Import application-specific stuff
use Hub\Filter\Node\BaseNodeFilter;
use Hub\Network\Receive\Receivable;
+use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
// Import framework stuff
use CoreFramework\Filter\Filterable;
// Import application-specific stuff
use Hub\Filter\Node\BaseNodeFilter;
use Hub\Network\Receive\Receivable;
+use Hub\Tag\Tagable;
// Import framework stuff
use CoreFramework\Filter\Filterable;
*/
public function processMessage (array $messageData, Receivable $packageInstance) {
// Process generic
- $this->genericProcessMessage(BaseTag::TAG_SELF_CONNECT, $messageData, $packageInstance);
+ $this->genericProcessMessage(Tagable::TAG_SELF_CONNECT, $messageData, $packageInstance);
}
/**
// Import application-specific stuff
use Hub\Factory\Node\NodeObjectFactory;
use Hub\Network\Receive\Receivable;
+use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
// Import framework stuff
use CoreFramework\Criteria\Storing\StoreableCriteria;
// Import application-specific stuff
use Hub\Factory\Dht\DhtObjectFactory;
use Hub\Network\Receive\Receivable;
+use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
// Import framework stuff
use CoreFramework\Criteria\Storing\StoreableCriteria;
// Import application-specific stuff
use Hub\Factory\Node\NodeObjectFactory;
use Hub\Network\Receive\Receivable;
+use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
// Import framework stuff
use CoreFramework\Criteria\Storing\StoreableCriteria;
namespace Hub\Handler\Data;
// Import application-specific stuff
+use Hub\Factory\Node\NodeObjectFactory;
use Hub\Network\Deliver\Deliverable;
// Import framework stuff
// Import application-specific stuff
use Hub\Container\Socket\StorableSocket;
+use Hub\Factory\Node\NodeObjectFactory;
use Hub\Network\Package\NetworkPackage;
// Import framework stuff
use Hub\Helper\BaseHubSystemHelper;
use Hub\Network\Package\NetworkPackage;
+// Import framework stuff
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+
/**
* A Bootstrap Dht helper class
*
use Hub\Helper\BaseHubSystemHelper;
use Hub\Network\Package\NetworkPackage;
+// Import framework stuff
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+
/**
* A PublishingEntry Dht helper class
*
use Hub\Helper\Node\NodeHelper;
use Hub\Network\Package\NetworkPackage;
+// Import framework stuff
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+
/**
* A helper class for announcing this node to other nodes
*
// Import application-specific stuff
use Hub\Helper\Node\NodeHelper;
+// Import framework stuff
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+
/**
* A AnnouncementMessageAnswer node helper class
*
// Import application-specific stuff
use Hub\Helper\Node\NodeHelper;
+// Import framework stuff
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+
/**
* A DhtBootstrapMessageAnswer node helper class
*
// Import application-specific stuff
use Hub\Helper\Node\NodeHelper;
+// Import framework stuff
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+
/**
* A RequestNodeListMessageAnswer node helper class
*
// Import application-specific stuff
use Hub\Helper\Node\NodeHelper;
use Hub\Network\Package\NetworkPackage;
+use Hub\Tag\Tagable;
+
+// Import framework stuff
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
/**
* A SelfConnect hub helper class
$this->setRecipientType(NetworkPackage::NETWORK_TARGET_SELF);
// Set package tags
- $this->setPackageTags(array(BaseTag::TAG_SELF_CONNECT));
+ $this->setPackageTags(array(Tagable::TAG_SELF_CONNECT));
}
/**
use Hub\Helper\Node\NodeHelper;
use Hub\Network\Package\NetworkPackage;
+// Import framework stuff
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
+
/**
* A ??? hub helper class
*
// Import application-specific stuff
use Hub\Container\Socket\StorableSocket;
use Hub\Factory\Information\Connection\ConnectionInfoFactory;
+use Hub\Factory\Node\NodeObjectFactory;
use Hub\Generic\BaseHubSystem;
use Hub\Network\Package\NetworkPackage;
use Hub\Pool\Peer\PoolablePeer;
namespace Hub\Listener\Socket;
// Import application-specific stuff
+use Hub\Factory\Tag\Package\PackageTagsFactory;
use Hub\Listener\BaseListenerDecorator;
use Hub\Listener\Listenable;
namespace Hub\Listener\Client\Tcp;
// Import application-specific stuff
+use Hub\Factory\Tag\Package\PackageTagsFactory;
use Hub\Listener\BaseListenerDecorator;
use Hub\Listener\Listenable;
namespace Hub\Listener\Hub\Tcp;
// Import application-specific stuff
+use Hub\Factory\Tag\Package\PackageTagsFactory;
use Hub\Listener\BaseListenerDecorator;
use Hub\Listener\Listenable;
namespace Hub\Listener\Client\Udp;
// Import application-specific stuff
+use Hub\Factory\Tag\Package\PackageTagsFactory;
use Hub\Listener\BaseListenerDecorator;
use Hub\Listener\Listenable;
namespace Hub\Listener\Hub\Udp;
// Import application-specific stuff
+use Hub\Factory\Tag\Package\PackageTagsFactory;
use Hub\Listener\BaseListenerDecorator;
use Hub\Listener\Listenable;
// Import hub-specific stuff
use Hub\Database\Frontend\Node\Dht\NodeDistributedHashTableDatabaseWrapper;
use Hub\Database\Frontend\Node\Information\NodeInformationDatabaseWrapper;
+use Hub\Factory\Registry\Object\ObjectTypeRegistryFactory;
use Hub\Factory\State\Node\NodeStateFactory;
use Hub\Locator\Node\LocateableNode;
use Hub\Generic\BaseHubSystem;
use Hub\Network\Package\NetworkPackage;
use Hub\Network\Receive\Receivable;
+use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+use Hub\Template\Engine\Xml\ObjectRegistry\XmlObjectRegistryTemplateEngine;
use Hub\Tools\HubTools;
// Import framework stuff
use Hub\Network\Networkable;
use Hub\Network\Package\Fragment\PackageFragmenter;
use Hub\Network\Receive\Receivable;
+use Hub\Tag\Tagable;
use Hub\Tools\HubTools;
// Import framework stuff
$nodeId = HubTools::resolveNodeIdBySessionId($messageData[self::MESSAGE_ARRAY_SENDER]);
// Is 'claim_reward' the message type?
- if (in_array(BaseTag::TAG_CLAIM_MINING_REWARD, $messageData[self::MESSAGE_ARRAY_TAGS])) {
+ if (in_array(Tagable::TAG_CLAIM_MINING_REWARD, $messageData[self::MESSAGE_ARRAY_TAGS])) {
/*
* Then don't feed this message to the miner as this causes an
* endless loop of mining.
// Import framework stuff
use CoreFramework\Factory\Database\Wrapper\DatabaseWrapperFactory;
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
use CoreFramework\Registry\Registerable;
use CoreFramework\State\Stateable;
<?php
// Own namespace
-namespace Hub\Registry\ObjectType;
+namespace Hub\Registry\Object;
// Imported framework stuff
use CoreFramework\Registry\BaseRegistry;
namespace Hub\State\Node;
// Import framework stuff
+use Hub\Factory\Node\NodeObjectFactory;
use Hub\Factory\State\Node\NodeStateFactory;
// Import framework stuff
<?php
+// Own namespace
+namespace Hub\Tag\;
+
+// Import application-specific stuff
+use Hub\Tag\BaseTag;
+use Hub\Tag\Tagable;
+
/**
* A ??? tags class
*
<?php
// Own namespace
-namespace Hub\Tag\Network;
+namespace Hub\Tag\Package;
// Import application-specific stuff
+use Hub\Factory\Registry\Object\ObjectTypeRegistryFactory;
use Hub\Listener\Listenable;
use Hub\Network\Package\NetworkPackage;
+use Hub\Tag\BaseTag;
+use Hub\Tag\Tagable;
+use Hub\Template\Engine\Xml\ObjectRegistry\XmlObjectRegistryTemplateEngine;
// Import framework stuff
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
use CoreFramework\Registry\Registry;
/**
// Own namespace
namespace Hub\Node\Task\Initialization\Tag;
+// Import application-specific stuff
+use Hub\Factory\Tag\Package\PackageTagsFactory;
+
// Import framework stuff
use CoreFramework\Task\BaseTask;
use CoreFramework\Task\Taskable;
<?php
// Own namespace
-namespace Hub\Node\TemplateEngine\Xml\Announcement;
+namespace Hub\Template\Engine\Xml\Announcement;
+
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
// Import framework stuff
use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
/**
* An Announcement template engine class for XML templates
<?php
// Own namespace
-namespace Hub\Node\TemplateEngine\Xml\Answer\Announcement;
+namespace Hub\Template\Engine\Xml\Answer\Announcement;
+
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
// Import framework stuff
use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
/**
* An AnnouncementAnswer template engine class for XML templates
<?php
+// Own namespace
+namespace Hub\Template\Engine\Xml\Network\Answer\;
+
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+
+// Import framework stuff
+use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
+
/**
* An ??? answer template engine class for XML templates
*
<?php
// Own namespace
-namespace Hub\Node\TemplateEngine\Xml\Answer;
+namespace Hub\Template\Engine\Xml\Network\Answer;
+
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
// Import framework stuff
use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
/**
* An generic answer template engine class for XML templates
<?php
// Own namespace
-namespace Hub\Node\TemplateEngine\Xml\Answer\Dht\Bootstrap;
+namespace Hub\Template\Engine\Xml\Answer\Dht\Bootstrap;
+
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
// Import framework stuff
use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
/**
* An DhtBootstrapAnswer template engine class for XML templates
<?php
// Own namespace
-namespace Hub\Node\TemplateEngine\Xml\Answer\Request\NodeList;
+namespace Hub\Template\Engine\Xml\Answer\Request\NodeList;
+
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
// Import framework stuff
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
/**
* A RequestNodeListAnswer template engine class for XML templates
<?php
+// Own namespace
+namespace Hub\Template\Engine\Xml\;
+
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
+
+// Import framework stuff
+use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
+
/**
* An ??? template engine class for XML templates
*
<?php
// Own namespace
-namespace Hub\TemplateEngine\Xml;
+namespace Hub\Template\Engine\Xml;
// Import framework stuff
use CoreFramework\Bootstrap\FrameworkBootstrap;
use CoreFramework\Factory\ObjectFactory;
+use CoreFramework\Factory\Template\XmlTemplateEngineFactory;
use CoreFramework\Registry\Registry;
+use CoreFramework\Template\Engine\BaseTemplateEngine;
/**
* A generic XML template engine class
<?php
// Own namespace
-namespace Hub\Node\TemplateEngine\Xml\SelfConnect;
+namespace Hub\Template\Engine\Xml\SelfConnect;
+
+// Import application-specific stuff
+use Hub\Tag\Tagable;
+use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
// Import framework stuff
use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
/**
* An SelfConnect template engine class for XML templates
$templateInstance = new XmlSelfConnectTemplateEngine();
// Init template instance
- $templateInstance->initXmlTemplateEngine('node', BaseTag::TAG_SELF_CONNECT);
+ $templateInstance->initXmlTemplateEngine('node', Tagable::TAG_SELF_CONNECT);
// Return the prepared instance
return $templateInstance;
<?php
// Own namespace
-namespace Hub\Node\TemplateEngine\Xml\Dht\Bootstrap;
+namespace Hub\Template\Engine\Xml\Dht\Bootstrap;
+
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
// Import framework stuff
use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
/**
* An Bootstrap template engine class for XML templates
<?php
// Own namespace
-namespace Hub\Node\TemplateEngine\Xml\Request\NodeList;
+namespace Hub\Template\Engine\Xml\Request\NodeList;
+
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
// Import framework stuff
use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
/**
* An RequestNodeListEntry template engine class for XML templates
<?php
// Own namespace
-namespace Hub\Node\TemplateEngine\Xml\ObjectRegistry;
+namespace Hub\Template\Engine\Xml\ObjectRegistry;
+
+// Import application-specific stuff
+use Hub\Factory\Registry\Object\ObjectTypeRegistryFactory;
+use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
// Import framework stuff
use CoreFramework\Registry\Registry;
use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
/**
* An ObjectRegistry template engine class for XML templates
<?php
// Own namespace
-namespace Hub\Cruncher\TemplateEngine\Xml\TestUnit;
+namespace Hub\Cruncher\Template\Engine\Xml\TestUnit;
+
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
// Import framework stuff
use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
/**
* An TestUnit template engine class for XML templates
<?php
// Own namespace
-namespace Hub\Node\TemplateEngine\Xml\Dht\Publish;
+namespace Hub\Template\Engine\Xml\Dht\Publish;
+
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
// Import framework stuff
use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
/**
* An PublishEntry template engine class for XML templates
<?php
// Own namespace
-namespace Hub\Node\TemplateEngine\Xml\Request\NodeList;
+namespace Hub\Template\Engine\Xml\Request\NodeList;
+
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\BaseXmlTemplateEngine;
// Import framework stuff
use CoreFramework\Registry\Registerable;
+use CoreFramework\Template\CompileableTemplate;
/**
* An RequestNodeList template engine class for XML templates
$cfg->setConfigEntry('node_request_node_list_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
// CFG: NODE-OBJECT-REGISTRY-TEMPLATE-CLASS
-$cfg->setConfigEntry('node_object_registry_template_class', 'XmlObjectRegistryTemplateEngine');
+$cfg->setConfigEntry('node_object_registry_template_class', 'Hub\Template\Engine\Xml\ObjectRegistry\XmlObjectRegistryTemplateEngine');
// CFG: NODE-OBJECT-REGISTRY-TEMPLATE-EXTENSION
$cfg->setConfigEntry('node_object_registry_template_extension', '.xml');
$cfg->setConfigEntry('node_object_registry_stacker_class', 'CoreFramework\Stacker\FiLoStacker');
// CFG: NODE-OBJECT-TYPE-REGISTRY-CLASS
-$cfg->setConfigEntry('node_object_type_registry_class', 'ObjectTypeRegistry');
+$cfg->setConfigEntry('node_object_type_registry_class', 'Hub\Registry\Object\ObjectTypeRegistry');
// CFG: DHT-BOOTSTRAP-TEMPLATE-TYPE
$cfg->setConfigEntry('node_dht_bootstrap_template_type', 'xml/dht_bootstrap');
$cfg->setConfigEntry('recipient_list_class', 'RecipientList');
// CFG: PACKAGE-TAGS-CLASS
-$cfg->setConfigEntry('package_tags_class', 'PackageTags');
+$cfg->setConfigEntry('package_tags_class', 'Hub\Tag\Package\PackageTags');
// CFG: TCP-CONNECTION-HELPER-CLASS
$cfg->setConfigEntry('tcp_connection_helper_class', 'TcpConnectionHelper');
// Own namespace
namespace Hub\Dht;
+// Import application-specific stuff
+use Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEngine;
+
// Import framework stuff
use CoreFramework\Generic\FrameworkException;
// Call parent exception constructor
parent::__construct($message, $code);
}
-}
-// [EOF]
-?>
+}
-Subproject commit 8180df9650994694ac2db841d91b6bfa2d83d36f
+Subproject commit 3e5fae60e3629d3b12cef0bb786f1db7994044ab