22 const std::string vers;
23 const std::vector<std::string> tags;
29 std::cout <<
"Constructing libadiak_json_plugin" << std::endl;
32 int publish(std::shared_ptr<builder_api> b) {
37 auto jstr = b->serialize();
38 adiak::value(
"adc_event", adiak::jsonstring(jstr));
42 int config(
const std::map< std::string, std::string >& m) {
46 int config(
const std::map< std::string, std::string >& m, std::string_view env_prefix) {
69 std::string_view
name()
const {
70 return "libadiak_json";
78 std::cout <<
"Destructing libadiak_json_plugin" << std::endl;
Terminal output publisher_api implementation. This plugin sends messages to libadiak synchronously....
std::string_view name() const
const std::map< const std::string, const std::string > & get_option_defaults()
Look up the settable options and their defaults.
int config(const std::map< std::string, std::string > &m, std::string_view env_prefix)
Configure the plugin with the options given and the corresponding environment variables.
int config(const std::map< std::string, std::string > &m)
Configure the plugin with the options given.
void finalize()
Stop publishing and release any resources held for managing publication.
void resume()
Resume publishing Duplicate calls are allowed.
std::string_view version() const
int initialize()
Ready the plugin to publish following the configuration options set or defaulted.
int publish(std::shared_ptr< builder_api > b)
Publish the content of the builder.
void pause()
Pause publishing until a call to resume. Duplicate calls are allowed.
Publisher plugin interface.
std::map< const std::string, const std::string > libadiak_json_defaults