MUQ  0.4.3
muq::SamplingAlgorithms::PhonebookClient Class Reference

High-level wrapper for communicating with the phonebook process. More...

#include <Phonebook.h>

Detailed Description

High-level wrapper for communicating with the phonebook process.

This wraps communication with the phonebook in an easy to use interface. Needed for example by sampling worker processes to announce when samples are available to be collected.

Definition at line 393 of file Phonebook.h.

Public Member Functions

 PhonebookClient (std::shared_ptr< parcer::Communicator > comm, int phonebookRank)
 
int Query (std::shared_ptr< MultiIndex > remoteIndex, std::shared_ptr< MultiIndex > sourceIndex, bool high_priority)
 
std::vector< int > GetWorkgroups (std::shared_ptr< MultiIndex > modelIndex)
 
std::shared_ptr< MultiIndex > LargestIndex ()
 
void Register (std::shared_ptr< MultiIndex > modelIndex, int rank)
 
void UnRegister (std::shared_ptr< MultiIndex > modelIndex, int rank)
 
void SetWorkerReady (std::shared_ptr< MultiIndex > modelIndex, int rank)
 
void SchedulingDone ()
 
void SchedulingStop ()
 

Constructor & Destructor Documentation

◆ PhonebookClient()

muq::SamplingAlgorithms::PhonebookClient::PhonebookClient ( std::shared_ptr< parcer::Communicator >  comm,
int  phonebookRank 
)
inline

Definition at line 397 of file Phonebook.h.

Member Function Documentation

◆ GetWorkgroups()

std::vector<int> muq::SamplingAlgorithms::PhonebookClient::GetWorkgroups ( std::shared_ptr< MultiIndex >  modelIndex)
inline

◆ LargestIndex()

std::shared_ptr<MultiIndex> muq::SamplingAlgorithms::PhonebookClient::LargestIndex ( )
inline

◆ Query()

int muq::SamplingAlgorithms::PhonebookClient::Query ( std::shared_ptr< MultiIndex >  remoteIndex,
std::shared_ptr< MultiIndex >  sourceIndex,
bool  high_priority 
)
inline

◆ Register()

void muq::SamplingAlgorithms::PhonebookClient::Register ( std::shared_ptr< MultiIndex >  modelIndex,
int  rank 
)
inline

◆ SchedulingDone()

void muq::SamplingAlgorithms::PhonebookClient::SchedulingDone ( )
inline

◆ SchedulingStop()

void muq::SamplingAlgorithms::PhonebookClient::SchedulingStop ( )
inline

◆ SetWorkerReady()

void muq::SamplingAlgorithms::PhonebookClient::SetWorkerReady ( std::shared_ptr< MultiIndex >  modelIndex,
int  rank 
)
inline

◆ UnRegister()

void muq::SamplingAlgorithms::PhonebookClient::UnRegister ( std::shared_ptr< MultiIndex >  modelIndex,
int  rank 
)
inline

Member Data Documentation

◆ comm

std::shared_ptr<parcer::Communicator> muq::SamplingAlgorithms::PhonebookClient::comm
private

◆ phonebookRank

int muq::SamplingAlgorithms::PhonebookClient::phonebookRank
private

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