Samchon Framework for CPP
1.0.0
|
#include <DSInvokeHistory.hpp>
Public Member Functions | |
DSInvokeHistory (DistributedSystem *system) | |
DSInvokeHistory (DistributedSystem *system, DistributedProcess *process, std::shared_ptr< protocol::Invoke > invoke, double weight) | |
auto | getSystem () const -> DistributedSystem * |
auto | getProcess () const -> DistributedProcess * |
auto | getWeight () const -> double |
Public Member Functions inherited from samchon::templates::slave::InvokeHistory | |
InvokeHistory () | |
InvokeHistory (std::shared_ptr< protocol::Invoke > invoke) | |
virtual auto | key () const -> size_t override |
Get a key that can identify the Entity uniquely. More... | |
auto | getUID () const -> size_t |
auto | getListener () const -> std::string |
auto | computeElapsedTime () const -> long long |
void | complete () |
History of an Invoke message.
The PRInvokeHistory is a class archiving history log of an Invoke message which requests the distributed process, created whenever DistributedProcess.sendData is called.
When the distributed process has completed, then complete() is called and the elapsed time is determined. The elapsed time is utilized for computation of performance index and resource index of related objects.
Templates - Distributed System
Definition at line 33 of file DSInvokeHistory.hpp.
|
inline |
Construct from a DistributedSystem.
system | The DistributedSystem object who sent the Invoke message. |
Definition at line 54 of file DSInvokeHistory.hpp.
|
inline |
Initilizer Constructor.
system | The DistributedSystem object who sent the Invoke message. |
process | The DistributedProcess object who sent the Invoke message. |
invoke | An Invoke message requesting the distributed process. |
weight | Weight of resource which indicates how heavy this Invoke message is. |
Definition at line 68 of file DSInvokeHistory.hpp.
References samchon::templates::distributed::DistributedProcess::getSystemArray().
|
inline |
Get the related DistributedSystem object.
Definition at line 103 of file DSInvokeHistory.hpp.
|
inline |
Get the related DistributedProcess object.
Definition at line 111 of file DSInvokeHistory.hpp.
|
inline |
Get weight.
Gets weight of resource which indicates how heavy this Invoke message is. Default is 1.
Definition at line 121 of file DSInvokeHistory.hpp.
References samchon::templates::slave::InvokeHistory::key().