~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/default_replicator/default_replicator.h

Added code necessary for building plugins dynamically.
Merged in changes from lifeless to allow autoreconf to work.
Touching plugin.ini files now triggers a rebuid - so config/autorun.sh is no
longer required to be run after touching those.
Removed the duplicate plugin names - also removed the issue that getting them
different would silently fail weirdly later.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 *
24
24
 * Defines the API of the default replicator.
25
25
 *
26
 
 * @see drizzled/plugin/replicator.h
27
 
 * @see drizzled/plugin/applier.h
 
26
 * @see drizzled/plugin/transaction_replicator.h
 
27
 * @see drizzled/plugin/transaction_applier.h
28
28
 */
29
29
 
30
30
#ifndef PLUGIN_DEFAULT_REPLICATOR_DEFAULT_REPLICATOR_H
31
31
#define PLUGIN_DEFAULT_REPLICATOR_DEFAULT_REPLICATOR_H
32
32
 
33
33
#include <drizzled/atomics.h>
34
 
#include <drizzled/plugin/command_replicator.h>
35
 
#include <drizzled/plugin/command_applier.h>
 
34
#include <drizzled/plugin/transaction_replicator.h>
36
35
 
37
36
#include <vector>
38
37
#include <string>
39
38
 
40
 
class DefaultReplicator: public drizzled::plugin::CommandReplicator
 
39
class DefaultReplicator: public drizzled::plugin::TransactionReplicator
41
40
{
42
41
public:
43
42
  explicit DefaultReplicator(std::string name_arg)
44
 
    : drizzled::plugin::CommandReplicator(name_arg) {}
 
43
    : drizzled::plugin::TransactionReplicator(name_arg) {}
45
44
 
46
45
  /** Destructor */
47
46
  ~DefaultReplicator() {}
55
54
  virtual void disable();
56
55
 
57
56
  /**
58
 
   * Replicate a Command message to an Applier.
 
57
   * Replicate a Transaction message to an Applier.
59
58
   *
60
59
   * @note
61
60
   *
67
66
   * the supplied message to their own controlled memory storage
68
67
   * area.
69
68
   *
70
 
   * @param Command message to be replicated
 
69
   * @param Transaction message to be replicated
71
70
   */
72
 
  void replicate(drizzled::plugin::CommandApplier *in_applier, drizzled::message::Command &to_replicate);
 
71
  void replicate(drizzled::plugin::TransactionApplier *in_applier, drizzled::message::Transaction &to_replicate);
73
72
  
74
73
};
75
74