~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/replication_services.h

Re-org'd the replication stuff into slots.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
  {
43
43
    class Command;
44
44
  }
45
 
}
46
 
 
47
 
void add_replicator(drizzled::plugin::CommandReplicator *replicator);
48
 
void remove_replicator(drizzled::plugin::CommandReplicator *replicator);
49
 
 
50
 
void add_applier(drizzled::plugin::CommandApplier *applier);
51
 
void remove_applier(drizzled::plugin::CommandApplier *applier);
 
45
 
52
46
 
53
47
/**
54
48
 * This is a class which manages transforming internal 
55
49
 * transactional events into GPB messages and sending those
56
50
 * events out through registered replicators and appliers.
57
51
 */
58
 
namespace drizzled
59
 
{
60
52
class ReplicationServices
61
53
{
62
54
public:
103
95
   * Constructor
104
96
   */
105
97
  ReplicationServices();
 
98
 
 
99
  /**
 
100
   * Singleton method
 
101
   * Returns the singleton instance of ReplicationServices
 
102
   */
 
103
  static inline ReplicationServices &singleton()
 
104
  {
 
105
    static ReplicationServices replication_services;
 
106
    return replication_services;
 
107
  }
 
108
 
106
109
  /**
107
110
   * Returns whether the ReplicationServices object
108
111
   * is active.  In other words, does it have both