~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/command_applier.h

  • Committer: Brian Aker
  • Date: 2009-09-21 23:40:18 UTC
  • mfrom: (1039.5.63 replication)
  • Revision ID: brian@gaz-20090921234018-gd9kqdyigwxtik9z
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
22
22
 */
23
23
 
24
 
#ifndef DRIZZLED_PLUGIN_APPLIER_H
25
 
#define DRIZZLED_PLUGIN_APPLIER_H
 
24
#ifndef DRIZZLED_PLUGIN_COMMAND_APPLIER_H
 
25
#define DRIZZLED_PLUGIN_COMMAND_APPLIER_H
26
26
 
27
27
/**
28
 
 * @file Defines the API for an Applier
 
28
 * @file Defines the API for a CommandApplier
29
29
 *
30
 
 * An Applier applies an event it has received from a Replicator (via 
31
 
 * a replicator's replicate() call, or it has read using a Reader's read()
 
30
 * A CommandApplier applies an event it has received from a CommandReplicator (via 
 
31
 * a replicator's replicate() call, or it has read using a CommandReader's read()
32
32
 * call.
33
33
 */
34
34
 
49
49
/**
50
50
 * Base class for appliers of Command messages
51
51
 */
52
 
class Applier
 
52
class CommandApplier
53
53
{
54
54
public:
55
 
  Applier() {}
56
 
  virtual ~Applier() {}
 
55
  CommandApplier() {}
 
56
  virtual ~CommandApplier() {}
57
57
  /**
58
58
   * Apply something to a target.
59
59
   *
69
69
   *
70
70
   * @param Command message to be replicated
71
71
   */
72
 
  virtual void apply(drizzled::message::Command *to_apply)= 0;
 
72
  virtual void apply(const message::Command &to_apply)= 0;
73
73
  /** 
74
74
   * An applier plugin should override this with its
75
75
   * internal method for determining if it is active or not.