00001 // @(#)root/net:$Id: TSQLMonitoring.h 23091 2008-04-09 15:04:27Z rdm $ 00002 // Author: J.F. Grosse-Oetringhaus, G.Ganis 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TSQLMonitoring 00013 #define ROOT_TSQLMonitoring 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TSQLMonitoringWriter // 00018 // // 00019 // SQL implementation of TVirtualMonitoringWriter. // 00020 // // 00021 ////////////////////////////////////////////////////////////////////////// 00022 00023 #ifndef ROOT_TVirtualMonitoring 00024 #include "TVirtualMonitoring.h" 00025 #endif 00026 #ifndef ROOT_TString 00027 #include "TString.h" 00028 #endif 00029 00030 00031 class TSQLServer; 00032 00033 00034 class TSQLMonitoringWriter : public TVirtualMonitoringWriter { 00035 00036 private: 00037 TSQLServer *fDB; // SQL database where to write 00038 TString fTable; // SQL table name 00039 00040 TSQLMonitoringWriter(const TSQLMonitoringWriter&); // not implemented 00041 TSQLMonitoringWriter& operator=(const TSQLMonitoringWriter&); // not implemented 00042 00043 public: 00044 TSQLMonitoringWriter(const char *serv, const char *user, const char *pass, const char *table); 00045 virtual ~TSQLMonitoringWriter(); 00046 00047 Bool_t SendParameters(TList *values, const char * /*identifier*/); 00048 00049 ClassDef(TSQLMonitoringWriter, 0) // Sending monitoring data to a SQL DB 00050 }; 00051 00052 #endif