High-level wrapper for communicating with the phonebook process. More...
#include <Phonebook.h>
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 () |
|
inline |
Definition at line 397 of file Phonebook.h.
|
inline |
Definition at line 410 of file Phonebook.h.
References comm, muq::SamplingAlgorithms::ControlTag, muq::SamplingAlgorithms::GET_WORKGROUPS, and phonebookRank.
|
inline |
Definition at line 420 of file Phonebook.h.
References comm, muq::SamplingAlgorithms::ControlTag, muq::SamplingAlgorithms::GET_LARGEST_INDEX, and phonebookRank.
|
inline |
Definition at line 402 of file Phonebook.h.
References comm, muq::SamplingAlgorithms::ControlTag, muq::SamplingAlgorithms::GET_WORKGROUP, and phonebookRank.
|
inline |
Definition at line 425 of file Phonebook.h.
References comm, muq::SamplingAlgorithms::ControlTag, phonebookRank, and muq::SamplingAlgorithms::SET_WORKGROUP.
|
inline |
Definition at line 445 of file Phonebook.h.
References comm, muq::SamplingAlgorithms::ControlTag, phonebookRank, and muq::SamplingAlgorithms::SCHEDULING_DONE.
|
inline |
Definition at line 448 of file Phonebook.h.
References comm, muq::SamplingAlgorithms::ControlTag, phonebookRank, and muq::SamplingAlgorithms::SCHEDULING_STOP.
|
inline |
Definition at line 439 of file Phonebook.h.
References comm, muq::SamplingAlgorithms::ControlTag, phonebookRank, and muq::SamplingAlgorithms::SET_WORKER_READY.
|
inline |
Definition at line 431 of file Phonebook.h.
References comm, muq::SamplingAlgorithms::ControlTag, phonebookRank, and muq::SamplingAlgorithms::UNSET_WORKGROUP.
|
private |
Definition at line 453 of file Phonebook.h.
Referenced by GetWorkgroups(), LargestIndex(), Query(), Register(), SchedulingDone(), SchedulingStop(), SetWorkerReady(), and UnRegister().
|
private |
Definition at line 454 of file Phonebook.h.
Referenced by GetWorkgroups(), LargestIndex(), Query(), Register(), SchedulingDone(), SchedulingStop(), SetWorkerReady(), and UnRegister().