~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/rabbitmq/rabbitmq_log.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <string>
32
32
#include "rabbitmq_handler.h"
33
33
 
 
34
namespace drizzle_plugin
 
35
{
34
36
 
35
37
/**
36
38
 * @brief
41
43
 *   Connects to rabbitmq server in constructor, publishes messages
42
44
 *   in apply(...). If error occurs, the plugin disables itself.
43
45
 */
44
 
class RabbitMQLog: public drizzled::plugin::TransactionApplier 
 
46
class RabbitMQLog :
 
47
  public drizzled::plugin::TransactionApplier 
45
48
{
46
49
private:
47
 
  RabbitMQHandler* rabbitMQHandler;
 
50
  RabbitMQHandler* _rabbitMQHandler;
 
51
  const std::string _exchange;
 
52
  const std::string _routingkey;
48
53
public:
49
54
 
50
55
  /**
56
61
   *
57
62
   * @param[in] mqHandler name of the plugin, typically rabbitmq_log.
58
63
   */
59
 
  RabbitMQLog(const std::string name_arg, 
60
 
              RabbitMQHandler* mqHandler);
 
64
  RabbitMQLog(const std::string &name,
 
65
              const std::string &exchange,
 
66
              const std::string &routingkey,
 
67
              RabbitMQHandler* mqHandler);
61
68
  ~RabbitMQLog();
62
69
 
63
70
  /**
74
81
 
75
82
};
76
83
 
 
84
} /* namespace drizzle_plugin */
 
85
 
77
86
#endif /* PLUGIN_RABBITMQ_RABBITMQ_LOG_H */