Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#include "TVirtualMonitoring.h"
24#include "TString.h"
25
26
27class TSQLServer;
28
29
31
32private:
33 TSQLServer *fDB; // SQL database where to write
34 TString fTable; // SQL table name
35
36 Long64_t fMaxBulkSize; // Max packet size for insertions
37
38 Bool_t fVerbose; // Verbosity toggle
39
42
43public:
44 TSQLMonitoringWriter(const char *serv, const char *user, const char *pass, const char *table);
45 virtual ~TSQLMonitoringWriter();
46
47 Bool_t SendParameters(TList *values, const char * /*identifier*/) override;
48
49 void Verbose(Bool_t onoff) override { fVerbose = onoff; }
50
51 ClassDefOverride(TSQLMonitoringWriter, 0) // Sending monitoring data to a SQL DB
52};
53
54#endif
long long Long64_t
Definition RtypesCore.h:80
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
A doubly linked list.
Definition TList.h:38
virtual ~TSQLMonitoringWriter()
Destructor.
Bool_t SendParameters(TList *values, const char *) override
Register query log using the information in the list which is in the form TParameter(<par>,...
void Verbose(Bool_t onoff) override
TSQLMonitoringWriter(const TSQLMonitoringWriter &)=delete
TSQLMonitoringWriter & operator=(const TSQLMonitoringWriter &)=delete
Basic string class.
Definition TString.h:139