Samchon Framework for CPP  1.0.0
samchon::templates::parallel::MediatorWebServer Class Reference

#include <MediatorWebServer.hpp>

Collaboration diagram for samchon::templates::parallel::MediatorWebServer:

Public Member Functions

 MediatorWebServer (external::base::ExternalSystemArrayBase *system_array, int port)
 
- Public Member Functions inherited from samchon::templates::parallel::MediatorServer
 MediatorServer (external::base::ExternalSystemArrayBase *system_array, int port)
 
virtual void start () override
 
- Public Member Functions inherited from samchon::templates::parallel::MediatorSystem
 MediatorSystem (external::base::ExternalSystemArrayBase *systemArray)
 
virtual ~MediatorSystem ()=default
 
template<class SystemArray >
auto getSystemArray () const -> SystemArray *
 
- Public Member Functions inherited from samchon::protocol::IProtocol
virtual void replyData (std::shared_ptr< Invoke >)=0
 
virtual void sendData (std::shared_ptr< Invoke >)=0
 
- Public Member Functions inherited from samchon::protocol::Server
 Server ()
 
virtual ~Server ()
 
virtual void open (int port)
 
virtual void close ()
 
- Public Member Functions inherited from samchon::protocol::WebServer
 WebServer ()
 

Additional Inherited Members

- Protected Member Functions inherited from samchon::protocol::Server
virtual void addClient (std::shared_ptr< ClientDriver >)=0
 

Detailed Description

A mediator server, driver for the master client.

The MediatorWebServer is a class opening a server accepting the master client, following the web-socket protocol.

[Inherited] MediatorSystem}

A mediator, the master driver.

The MediatorSystem is an abstract class helping ParallelSystemArrayMediator can be a slave system. The MediatorSystem interacts and communicates with the master system as a role of slave.

This MediatorSystem object is created in ParallelSystemArrayMediator.createMediator. Override the method and return one of them, which are derived from this MediatorSystem class, considering which type and protocol the master system follows:

When the master orders a parallel process to this slave, then the MediatorSystem delivers the parallel process to its parent ParallelSystemArrayMediator object. The ParallelSystemArrayMediator object distributes the parallel process to its slaves system, ParallelSystem objects. When the parallel process has completed, then MediatorSystem reports the result to its master.

Class Diagram

Templates - Parallel System, Distributed System

Author
Jeongho Nam http://samchon.org

Definition at line 22 of file MediatorWebServer.hpp.

Constructor & Destructor Documentation

samchon::templates::parallel::MediatorWebServer::MediatorWebServer ( external::base::ExternalSystemArrayBase *  system_array,
int  port 
)
inline

Initializer Constructor.

Parameters
systemArrayThe parent ParallelSystemArrayMediator object.
portPort number of server to open.

Definition at line 36 of file MediatorWebServer.hpp.


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