Rosetta
Public Member Functions | Private Attributes | List of all members
basic::mpi::DbMoverMessageListener Class Reference

#include <DbMoverMessageListener.hh>

Inheritance diagram for basic::mpi::DbMoverMessageListener:
Inheritance graph
[legend]

Public Member Functions

 DbMoverMessageListener ()
 
void receive (std::string const &data) override
 receive the protocol id and batch id from the slave More...
 
bool request (std::string const &identifier, std::string &return_data) override
 check to see if we have a protocol id and batch id. If we have them then tell them to the slave. If we don't have them then tell the slave to make them More...
 
void deserialize_data (std::string const &data)
 
- Public Member Functions inherited from utility::VirtualBase
 VirtualBase ()=default
 Default constructor. More...
 
virtual ~VirtualBase ()=default
 The virtual destructor is one of the main reasons for the VirtualBase class. More...
 
 VirtualBase (VirtualBase const &)=default
 
 VirtualBase (VirtualBase &&)=default
 
VirtualBaseoperator= (VirtualBase const &)=default
 
VirtualBaseoperator= (VirtualBase &&)=default
 

Private Attributes

numeric::Size protocol_id_
 
std::map< std::string, numeric::Sizebatch_ids_
 

Constructor & Destructor Documentation

◆ DbMoverMessageListener()

basic::mpi::DbMoverMessageListener::DbMoverMessageListener ( )

Member Function Documentation

◆ deserialize_data()

void basic::mpi::DbMoverMessageListener::deserialize_data ( std::string const &  data)

◆ receive()

void basic::mpi::DbMoverMessageListener::receive ( std::string const &  data)
overridevirtual

receive the protocol id and batch id from the slave

Implements basic::mpi::MessageListener.

References data, deserialize_data(), and basic::mpi::TR.

◆ request()

bool basic::mpi::DbMoverMessageListener::request ( std::string const &  identifier,
std::string &  return_data 
)
overridevirtual

check to see if we have a protocol id and batch id. If we have them then tell them to the slave. If we don't have them then tell the slave to make them

Implements basic::mpi::MessageListener.

References batch_ids_, protocol_id_, and utility::to_string().

Member Data Documentation

◆ batch_ids_

std::map<std::string, numeric::Size> basic::mpi::DbMoverMessageListener::batch_ids_
private

Referenced by deserialize_data(), and request().

◆ protocol_id_

numeric::Size basic::mpi::DbMoverMessageListener::protocol_id_
private

Referenced by deserialize_data(), and request().


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