Samchon Framework for CPP  1.0.0
samchon::templates::distributed::DSInvokeHistory Class Reference

#include <DSInvokeHistory.hpp>

Collaboration diagram for samchon::templates::distributed::DSInvokeHistory:

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 ()
 

Detailed Description

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.

Class Diagram

Templates - Distributed System

Author
Jeongho Nam http://samchon.org

Definition at line 33 of file DSInvokeHistory.hpp.

Constructor & Destructor Documentation

samchon::templates::distributed::DSInvokeHistory::DSInvokeHistory ( DistributedSystem system)
inline

Construct from a DistributedSystem.

Parameters
systemThe DistributedSystem object who sent the Invoke message.

Definition at line 54 of file DSInvokeHistory.hpp.

samchon::templates::distributed::DSInvokeHistory::DSInvokeHistory ( DistributedSystem system,
DistributedProcess process,
std::shared_ptr< protocol::Invoke invoke,
double  weight 
)
inline

Initilizer Constructor.

Parameters
systemThe DistributedSystem object who sent the Invoke message.
processThe DistributedProcess object who sent the Invoke message.
invokeAn Invoke message requesting the distributed process.
weightWeight of resource which indicates how heavy this Invoke message is.

Definition at line 68 of file DSInvokeHistory.hpp.

References samchon::templates::distributed::DistributedProcess::getSystemArray().

Here is the call graph for this function:

Member Function Documentation

auto samchon::templates::distributed::DSInvokeHistory::getSystem ( ) const -> DistributedSystem*
inline

Get the related DistributedSystem object.

Definition at line 103 of file DSInvokeHistory.hpp.

auto samchon::templates::distributed::DSInvokeHistory::getProcess ( ) const -> DistributedProcess*
inline

Get the related DistributedProcess object.

Definition at line 111 of file DSInvokeHistory.hpp.

auto samchon::templates::distributed::DSInvokeHistory::getWeight ( ) const -> double
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().

Here is the call graph for this function:


The documentation for this class was generated from the following file: