~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/logging.h

  • Committer: Monty Taylor
  • Date: 2010-08-12 20:27:32 UTC
  • mto: (1720.1.5 build)
  • mto: This revision was merged to the branch mainline in revision 1722.
  • Revision ID: mordred@inaugust.com-20100812202732-9kzchbkvkyki4n3u
Merged libdrizzle directly into tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 *  Definitions required for Query Logging plugin
5
5
 *
6
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
6
 *  Copyright (C) 2008 Sun Microsystems
7
7
 *
8
8
 *  This program is free software; you can redistribute it and/or modify
9
9
 *  it under the terms of the GNU General Public License as published by
26
26
 
27
27
#include <string>
28
28
 
29
 
#include "drizzled/visibility.h"
30
 
 
31
29
namespace drizzled
32
30
{
33
31
class Session;
35
33
namespace plugin
36
34
{
37
35
 
38
 
class DRIZZLED_API Logging : public Plugin
 
36
class Logging : public Plugin
39
37
{
40
38
  Logging();
41
39
  Logging(const Logging &);
53
51
  virtual bool pre(Session *) {return false;}
54
52
  virtual bool post(Session *) {return false;}
55
53
  virtual bool postEnd(Session*) {return false;}
56
 
  virtual bool resetGlobalScoreboard() {return false;}
57
54
 
58
55
  static bool addPlugin(Logging *handler);
59
56
  static void removePlugin(Logging *handler);
60
57
  static bool preDo(Session *session);
61
58
  static bool postDo(Session *session);
62
59
  static bool postEndDo(Session *session);
63
 
  static bool resetStats(Session *session);
64
60
};
65
61
 
66
62
} /* namespace plugin */