Samchon Framework for CPP  1.0.0
DistributedSystemArrayMediator.hpp
1 #pragma once
2 #include <samchon/API.hpp>
3 
4 #include <samchon/protocol/master/DistributedSystemArray.hpp>
5 
6 namespace samchon
7 {
8 namespace protocol
9 {
10 namespace master
11 {
12  class DistributedSlaveSystemMediator;
13 
33  class SAMCHON_FRAMEWORK_API DistributedSystemArrayMediator
34  : public virtual DistributedSystemArray
35  {
36  private:
38 
39  protected:
44 
45  public:
46  /* ------------------------------------------------------------------
47  CONSTRUCTORS
48  ------------------------------------------------------------------ */
54 
55  virtual void construct(std::shared_ptr<library::XML>) override;
56 
57  protected:
64  virtual auto createSlave() const->DistributedSlaveSystemMediator* = 0;
65 
66  /* ------------------------------------------------------------------
67  PROCESS
68  ------------------------------------------------------------------ */
69  public:
70  virtual void start() override;
71 
72  virtual auto toXML() const->std::shared_ptr<library::XML> override;
73  };
74 };
75 };
76 };
A mediator of distributed system between master and slaves.
Definition: RWMutex.hpp:4
An array of distributed system drivers.
An Entity and a container of children Entity objects.
Definition: EntityGroup.hpp:52
Top level namespace of products built from samchon.
Definition: ByteArray.hpp:7
DistributedSlaveSystemMediator * slave
A slave system for mediation.