1 #include <samchon/protocol/master/ParallelSystem.hpp> 3 #include <samchon/protocol/master/ParallelSystemArray.hpp> 4 #include <samchon/protocol/master/PRInvokeHistoryArray.hpp> 5 #include <samchon/protocol/master/PRInvokeHistory.hpp> 7 #include <samchon/library/XML.hpp> 8 #include <samchon/protocol/Invoke.hpp> 18 ParallelSystem::ParallelSystem()
27 ParallelSystem::~ParallelSystem()
37 if (xml->hasProperty(
"performance"))
38 this->
performance = xml->getProperty<
double>(
"performance");
53 if (invoke->getListener() ==
"reportInvokeHistory")
56 invokeHistory.
construct(invoke->at(0)->getValueAsXML());
58 string uid = to_string(invokeHistory.
getUID());
68 history->
construct(invoke->at(0)->getValueAsXML());
77 shared_ptr<Invoke> invoke,
size_t index,
size_t size
80 shared_ptr<Invoke> myInvoke(
new Invoke(*invoke));
81 myInvoke->emplace_back(
new InvokeParameter(
"invoke_history_index", index));
82 myInvoke->emplace_back(
new InvokeParameter(
"invoke_history_size", size));
PRInvokeHistoryArray * historyArray
A list of history log for reported Invoke messages.
auto has(const std::string &key) const -> bool
Indicates whether a container has an object having the specified identifier.
A history log of an Invoke message on a master.
virtual void construct(std::shared_ptr< library::XML >) override
Construct data of the Entity from an XML object.
void sendPieceData(PRMasterHistory *, std::shared_ptr< Invoke >, size_t, size_t)
Send a message with segmentation index.
virtual auto createChild(std::shared_ptr< library::XML >) -> ExternalSystemRole *override
Factory method of a child Entity.
virtual auto toXML() const -> std::shared_ptr< library::XML > override
Get an XML object represents the EntityGroup.
Package for external system, within the framework of master.
virtual void _replyData(std::shared_ptr< Invoke >) override
A method for pre-processing replied Invoke message.
A history of an Invoke message.
virtual void sendData(std::shared_ptr< Invoke >)
Sends message to a related system.
virtual void replyData(std::shared_ptr< Invoke >) override
Handling replied message from an external system.
ParallelSystemArray * systemArray
A master that the system is belonged to.
An Entity and a container of children Entity objects.
virtual auto TAG() const -> std::string
A tag name when represented by XML.
Package of network protocol and libraries.
PRInvokeHistoryArray * progressArray
A list of invoke messages on progress.
An array of PRInvokeHistory.
A role belongs to an external system.
Standard message of network I/O.
virtual void construct(std::shared_ptr< library::XML >) override
Construct data of the Entity from an XML object.
virtual void construct(std::shared_ptr< library::XML >) override
Construct data of the Entity from an XML object.
auto getUID() const -> size_t
Get uid.
virtual auto toXML() const -> std::shared_ptr< library::XML > override
Get an XML object represents the EntityGroup.
XML is a class representing xml object.
A parameter of an Invoke.
double performance
A performance index.
virtual void construct(std::shared_ptr< library::XML > xml)
Construct data of the Entity from an XML object.
auto get(const std::string &key) -> value_type &
Access the element by specified identifier(key).