/usr/include/root/TVirtualMonitoring.h is in libroot-core-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | // @(#)root/base:$Id$
// Author: Andreas-Joachim Peters 15/05/2006
/*************************************************************************
* Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TVirtualMonitoring
#define ROOT_TVirtualMonitoring
//////////////////////////////////////////////////////////////////////////
// //
// TVirtualMonitoring //
// //
// Provides the interface for Monitoring plugins. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
#ifndef ROOT_TList
#include "TList.h"
#endif
#ifndef ROOT_TMap
#include "TMap.h"
#endif
class TFile;
class TVirtualMonitoringWriter : public TNamed {
private:
TVirtualMonitoringWriter(const TVirtualMonitoringWriter&); // Not implemented
TVirtualMonitoringWriter& operator=(const TVirtualMonitoringWriter&); // Not implemented
Double_t fValue; // double monitor value
protected:
TList *fTmpOpenPhases; // To store open phases when there is not yet an object
public:
TVirtualMonitoringWriter() : TNamed(), fValue(0), fTmpOpenPhases(0) { }
TVirtualMonitoringWriter(const char *name, Double_t value)
: TNamed(name, ""), fValue(value), fTmpOpenPhases(0) { }
virtual ~TVirtualMonitoringWriter() { if (fTmpOpenPhases) delete fTmpOpenPhases; }
// TFile related info. In general they are gathered and sent only sometimes as summaries
virtual Bool_t SendFileCloseEvent(TFile * /*file*/)
{ MayNotUse("SendFileCloseEvent"); return kFALSE; }
virtual Bool_t SendFileReadProgress(TFile * /*file*/)
{ MayNotUse("SendFileReadProgress"); return kFALSE; }
virtual Bool_t SendFileWriteProgress(TFile * /*file*/)
{ MayNotUse("SendFileWriteProgress"); return kFALSE; }
virtual Bool_t SendParameters(TList * /*valuelist*/, const char * /*identifier*/ = 0)
{ MayNotUse("SendParameters"); return kFALSE; }
virtual Bool_t SendInfoTime() { MayNotUse("SendInfoTime"); return kFALSE; }
virtual Bool_t SendInfoUser(const char * /*user*/ = 0) { MayNotUse("SendInfoUser"); return kFALSE; }
virtual Bool_t SendInfoDescription(const char * /*jobtag*/) { MayNotUse("SendInfoDescription"); return kFALSE; }
virtual Bool_t SendInfoStatus(const char * /*status*/) { MayNotUse("SendInfoStatus"); return kFALSE; }
// An Open might have several phases, and the timings might be interesting
// to report
// The info is only gathered into openphasestime, and sent when forcesend=kTRUE
virtual Bool_t SendFileOpenProgress(TFile * /*file*/, TList * /*openphases*/,
const char * /*openphasename*/,
Bool_t /*forcesend*/ = kFALSE )
{ MayNotUse("SendFileOpenProgress"); return kFALSE; }
virtual Bool_t SendProcessingStatus(const char * /*status*/, Bool_t /*restarttimer*/ = kFALSE)
{ MayNotUse("SendProcessingStatus"); return kFALSE; }
virtual Bool_t SendProcessingProgress(Double_t /*nevent*/, Double_t /*nbytes*/, Bool_t /*force*/ = kFALSE)
{ MayNotUse("SendProcessingProgress"); return kFALSE; }
virtual void SetLogLevel(const char * /*loglevel*/ = "WARNING")
{ MayNotUse("SetLogLevel"); };
virtual void Verbose(Bool_t /*onoff*/) { MayNotUse("Verbose"); }
ClassDef(TVirtualMonitoringWriter,0) // ABC for Sending Monitoring Information
};
class TVirtualMonitoringReader : public TNamed {
public:
TVirtualMonitoringReader( const char * /*serviceurl*/ ="") { }
virtual ~TVirtualMonitoringReader() { }
virtual void DumpResult() { MayNotUse("DumpResult"); }
virtual void GetValues(const char * /*farmName*/, const char * /*clusterName*/,
const char * /*nodeName*/, const char * /*paramName*/,
Long_t /*min*/, Long_t /*max*/, Bool_t /*debug*/ = kFALSE)
{ MayNotUse("GetValues"); }
virtual void GetLastValues(const char * /*farmName*/, const char * /*clusterName*/,
const char * /*nodeName*/, const char * /*paramName*/,
Bool_t /*debug*/ =kFALSE)
{ MayNotUse("GetLastValues"); }
virtual void ProxyValues(const char * /*farmName*/, const char * /*clusterName*/,
const char * /*nodeName*/, const char * /*paramName*/,
Long_t /*min*/, Long_t /*max*/, Long_t /*lifetime*/)
{ MayNotUse("ProxyValues"); }
virtual TMap *GetMap() { MayNotUse("GetMap"); return 0; }
virtual void DeleteMap(TMap * /*map*/) { MayNotUse("DeleteMap"); }
ClassDef(TVirtualMonitoringReader, 1) // ABC for Reading Monitoring Information
};
R__EXTERN TVirtualMonitoringWriter *gMonitoringWriter;
R__EXTERN TVirtualMonitoringReader *gMonitoringReader;
#endif
|