MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
consumer.hpp
1
/*
2
Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; version 2 of the License.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program; if not, write to the Free Software
15
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16
*/
17
18
#ifndef CONSUMER_HPP
19
#define CONSUMER_HPP
20
21
#include "Restore.hpp"
22
#include "
ndb_nodegroup_map.h
"
23
24
#include "../../../../sql/ha_ndbcluster_tables.h"
25
26
class
BackupConsumer
{
27
public
:
28
BackupConsumer
() {}
29
virtual
~
BackupConsumer
() { }
30
virtual
bool
init(Uint32 tableCompabilityMask) {
return
true
;}
31
virtual
bool
object(Uint32 tableType,
const
void
*) {
return
true
;}
32
virtual
bool
table(
const
TableS
&){
return
true
;}
33
virtual
bool
endOfTables() {
return
true
; }
34
virtual
void
tuple(
const
TupleS
&, Uint32 fragId){}
35
virtual
void
tuple_free(){}
36
virtual
void
endOfTuples(){}
37
virtual
void
logEntry(
const
LogEntry
&){}
38
virtual
void
endOfLogEntrys(){}
39
virtual
bool
finalize_table(
const
TableS
&){
return
true
;}
40
virtual
bool
rebuild_indexes(
const
TableS
&) {
return
true
;}
41
virtual
bool
createSystable(
const
TableS
&){
return
true
;}
42
virtual
bool
update_apply_status(
const
RestoreMetaData
&metaData){
return
true
;}
43
virtual
bool
report_started(
unsigned
backup_id,
unsigned
node_id)
44
{
return
true
;}
45
virtual
bool
report_meta_data(
unsigned
backup_id,
unsigned
node_id)
46
{
return
true
;}
47
virtual
bool
report_data(
unsigned
backup_id,
unsigned
node_id)
48
{
return
true
;}
49
virtual
bool
report_log(
unsigned
backup_id,
unsigned
node_id)
50
{
return
true
;}
51
virtual
bool
report_completed(
unsigned
backup_id,
unsigned
node_id)
52
{
return
true
;}
53
NODE_GROUP_MAP
*m_nodegroup_map;
54
uint m_nodegroup_map_len;
55
virtual
bool
has_temp_error() {
return
false
;}
56
virtual
bool
table_equal(
const
TableS
&) {
return
true
; }
57
virtual
bool
table_compatible_check(
const
TableS
&) {
return
true
;}
58
};
59
60
#endif
storage
ndb
tools
restore
consumer.hpp
Generated on Sat Nov 9 2013 01:28:37 for MySQL 5.6.14 Source Code Document by
1.8.1.2