Drizzled Public API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
transaction_replicator.h
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
*
4
* Copyright (C) 2008-2009 Sun Microsystems, Inc.
5
* Copyright (C) 2010 Jay Pipes
6
*
7
* Authors:
8
*
9
* Jay Pipes <jaypipes@gmail.com>
10
*
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; version 2 of the License.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
*/
24
25
#pragma once
26
27
#include <drizzled/plugin/replication.h>
28
#include <drizzled/plugin/plugin.h>
29
30
#include <
drizzled/visibility.h
>
31
41
namespace
drizzled
{
42
namespace
plugin
{
43
47
class
DRIZZLED_API
TransactionReplicator
:
public
Plugin
48
{
49
public
:
50
explicit
TransactionReplicator
(std::string name_arg)
51
:
Plugin
(name_arg,
"TransactionReplicator"
)
52
{
53
}
54
71
virtual
ReplicationReturnCode replicate(
TransactionApplier
*in_applier,
72
Session
&session,
73
message::Transaction
&to_replicate)= 0;
74
static
bool
addPlugin(
TransactionReplicator
*replicator);
75
static
void
removePlugin(
TransactionReplicator
*replicator);
76
};
77
78
}
/* namespace plugin */
79
}
/* namespace drizzled */
80
drizzled::plugin::TransactionApplier
Definition:
transaction_applier.h:46
drizzled
TODO: Rename this file - func.h is stupid.
Definition:
abort_exception.h:27
drizzled::Session
Definition:
session.h:81
drizzled::plugin::TransactionReplicator
Definition:
transaction_replicator.h:47
drizzled::message::Transaction
Definition:
transaction.pb.h:2381
drizzled::plugin::Plugin
Definition:
plugin.h:34
DRIZZLED_API
#define DRIZZLED_API
Definition:
visibility.h:62
visibility.h
Visibility Control Macros.
plugin
Definition:
engine.cc:41
drizzled
plugin
transaction_replicator.h
Generated on Thu Dec 4 2014 10:50:04 for drizzle by
1.8.8