Hermes
0.9.5-beta
Hierarchical Distributed I/O Buffering System
|
Functions | |
hapi::Status | mpiInit (int argc, char **argv) |
Helper function to initialize MPI. More... | |
hapi::Status | connect (const std::string &config_file) |
Connects to the Hermes instance. More... | |
hapi::Status | connect () |
Connects to the Hermes instance. More... | |
hapi::Status | disconnect () |
Connects from the Hermes instance. More... | |
hapi::Status | attach (const std::string &topic) |
Attaches to a topic, creating it if it doesnt exists. More... | |
hapi::Status | detach (const std::string &topic) |
Detaches from the topic. Cleaning up all metadata. More... | |
hapi::Status | publish (const std::string &topic, const std::vector< unsigned char > &message) |
Puts a message to a topic. More... | |
std::pair< std::vector< unsigned char >, hapi::Status > | subscribe (const std::string &topic) |
Retrieves the next message from the topic. More... | |
Standard header Dependent library headers Internal headers
hapi::Status hermes::pubsub::mpiInit | ( | int | argc, |
char ** | argv | ||
) |
Helper function to initialize MPI.
hapi::Status hermes::pubsub::connect | ( | const std::string & | config_file | ) |
Connects to the Hermes instance.
config_file | Path to the config file of Hermes |
hapi::Status hermes::pubsub::connect | ( | ) |
Connects to the Hermes instance.
hapi::Status hermes::pubsub::disconnect | ( | ) |
Connects from the Hermes instance.
hapi::Status hermes::pubsub::attach | ( | const std::string & | topic | ) |
Attaches to a topic, creating it if it doesnt exists.
topic | The name of the topic |
hapi::Status hermes::pubsub::detach | ( | const std::string & | topic | ) |
Detaches from the topic. Cleaning up all metadata.
topic | The name of the topic |
hapi::Status hermes::pubsub::publish | ( | const std::string & | topic, |
const std::vector< unsigned char > & | message | ||
) |
Puts a message to a topic.
topic | The name of the topic |
message | the data buffer |
std::pair< hapi::Blob, hapi::Status > hermes::pubsub::subscribe | ( | const std::string & | topic | ) |
Retrieves the next message from the topic.
topic | The name of the topic |