class
#include <eckit/distributed/Consumer.h>
Consumer
Base classes
- class Actor
Public types
- enum MessageTags { READY, WORK, SHUTDOWN, OPEN, WRITE, CLOSE, STATISTICS, BYE }
Public static functions
- static auto tagName(int) -> const char*
Constructors, destructors, conversion operators
Public functions
- void consume(Message& message) pure virtual
- void failure(Message& message) virtual
- void shutdown(Message& message) virtual
- void finalise() pure virtual
- void messageFromWorker(Message& message, int worker) const virtual
- void messageFromWriter(Message& message, int worker) const virtual
- void sendStatisticsToProducer(const Message& message) const virtual
- void sendMessageToNextWorker(const Message& message) const virtual
- void getNextWorkMessage(Message& message) const virtual
- void getNextWriteMessage(Message& message) const virtual
- void sendToWriter(int writer, const Message& message) const virtual
- void sendShutDownMessage() const virtual
Private functions
- void run() virtual
- void getNextMessage(Message& message) const pure virtual
Enum documentation
enum eckit:: distributed:: Consumer:: MessageTags
#include <eckit/distributed/Actor.h>
Function documentation
static const char* eckit:: distributed:: Consumer:: tagName(int)
#include <eckit/distributed/Actor.h>
void eckit:: distributed:: Consumer:: finalise() pure virtual
#include <eckit/distributed/Actor.h>
void eckit:: distributed:: Consumer:: messageFromWorker(Message& message,
int worker) const virtual
#include <eckit/distributed/Actor.h>
void eckit:: distributed:: Consumer:: messageFromWriter(Message& message,
int worker) const virtual
#include <eckit/distributed/Actor.h>
void eckit:: distributed:: Consumer:: sendStatisticsToProducer(const Message& message) const virtual
#include <eckit/distributed/Actor.h>
void eckit:: distributed:: Consumer:: sendMessageToNextWorker(const Message& message) const virtual
#include <eckit/distributed/Actor.h>
void eckit:: distributed:: Consumer:: getNextWorkMessage(Message& message) const virtual
#include <eckit/distributed/Actor.h>
void eckit:: distributed:: Consumer:: getNextWriteMessage(Message& message) const virtual
#include <eckit/distributed/Actor.h>
void eckit:: distributed:: Consumer:: sendToWriter(int writer,
const Message& message) const virtual
#include <eckit/distributed/Actor.h>
void eckit:: distributed:: Consumer:: sendShutDownMessage() const virtual
#include <eckit/distributed/Actor.h>