~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/xa_resource_manager.h

  • Committer: Brian Aker
  • Date: 2010-10-28 17:12:01 UTC
  • mfrom: (1887.1.3 merge)
  • Revision ID: brian@tangent.org-20101028171201-baj6l1bnntn1s4ad
Merge in POTFILES changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
5
 
 *  Copyright (C) 2010 Jay Pipes <jaypipes@gmail.com>
 
4
 *  Copyright (C) 2008 Sun Microsystems
 
5
 *  Copyright (c) 2010 Jay Pipes <jaypipes@gmail.com>
6
6
 *
7
7
 *  This program is free software; you can redistribute it and/or modify
8
8
 *  it under the terms of the GNU General Public License as published by
23
23
 
24
24
#include <boost/unordered_set.hpp>
25
25
 
26
 
#include "drizzled/visibility.h"
27
 
 
28
26
namespace drizzled
29
27
{
30
28
 
37
35
 * An abstract interface class which exposes the participation
38
36
 * of implementing classes in distributed transactions in the XA protocol.
39
37
 */
40
 
class DRIZZLED_API XaResourceManager
 
38
class XaResourceManager
41
39
{
42
40
public:
43
41
  XaResourceManager() {}
73
71
    return doXaRecover(append_to, len);
74
72
  }
75
73
 
76
 
  uint64_t getCurrentTransactionId(Session *session)
77
 
  {
78
 
    return doGetCurrentTransactionId(session);
79
 
  }
80
 
 
81
 
  uint64_t getNewTransactionId(Session *session)
82
 
  {
83
 
    return doGetNewTransactionId(session);
84
 
  }
85
 
 
86
74
  typedef ::boost::unordered_set<my_xid> commit_list_set;
87
75
  /** 
88
76
   * The below static class methods wrap the interaction
129
117
   *  for this engine.
130
118
   */
131
119
  virtual int doXaRecover(XID * append_to, size_t len)= 0;
132
 
 
133
 
  virtual uint64_t doGetCurrentTransactionId(Session *session)= 0;
134
 
 
135
 
  virtual uint64_t doGetNewTransactionId(Session *session)= 0;
136
120
};
137
121
 
138
122
} /* namespace plugin */