ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TSQLMonitoring.h
Go to the documentation of this file.
1 // @(#)root/net:$Id$
2 // Author: J.F. Grosse-Oetringhaus, G.Ganis
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TSQLMonitoring
13 #define ROOT_TSQLMonitoring
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TSQLMonitoringWriter //
18 // //
19 // SQL implementation of TVirtualMonitoringWriter. //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_TVirtualMonitoring
24 #include "TVirtualMonitoring.h"
25 #endif
26 #ifndef ROOT_TString
27 #include "TString.h"
28 #endif
29 
30 
31 class TSQLServer;
32 
33 
35 
36 private:
37  TSQLServer *fDB; // SQL database where to write
38  TString fTable; // SQL table name
39 
40  Long64_t fMaxBulkSize; // Max packet size for insertions
41 
42  Bool_t fVerbose; // Verbosity toggle
43 
44  TSQLMonitoringWriter(const TSQLMonitoringWriter&); // not implemented
45  TSQLMonitoringWriter& operator=(const TSQLMonitoringWriter&); // not implemented
46 
47 public:
48  TSQLMonitoringWriter(const char *serv, const char *user, const char *pass, const char *table);
49  virtual ~TSQLMonitoringWriter();
50 
51  Bool_t SendParameters(TList *values, const char * /*identifier*/);
52 
53  void Verbose(Bool_t onoff) { fVerbose = onoff; }
54 
55  ClassDef(TSQLMonitoringWriter, 0) // Sending monitoring data to a SQL DB
56 };
57 
58 #endif
long long Long64_t
Definition: RtypesCore.h:69
void Verbose(Bool_t onoff)
Bool_t SendParameters(TList *values, const char *)
Register query log using the information in the list which is in the form TParameter(<par>,<value>) or TNamed(<name>,<string>).
std::vector< double > values
Definition: TwoHistoFit2D.C:32
Basic string class.
Definition: TString.h:137
bool Bool_t
Definition: RtypesCore.h:59
TSQLMonitoringWriter & operator=(const TSQLMonitoringWriter &)
#define ClassDef(name, id)
Definition: Rtypes.h:254
TSQLMonitoringWriter(const TSQLMonitoringWriter &)
A doubly linked list.
Definition: TList.h:47
virtual ~TSQLMonitoringWriter()
Destructor.