Logo ROOT  
Reference Guide
TProofMonSender.h
Go to the documentation of this file.
1 // @(#)root/proofplayer:$Id$
2 // Author: G.Ganis July 2011
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, 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_TProofMonSender
13 #define ROOT_TProofMonSender
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TProofMonSender //
18 // //
19 // Provides the interface for PROOF monitoring to different writers. //
20 // Allows to decouple the information sent from the backend. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #include "TNamed.h"
25 
26 class TDSet;
27 class TList;
28 class TPerfStat;
29 
30 class TProofMonSender : public TNamed {
31 
32 protected:
33  Int_t fSummaryVrs; // Version of the summary 'table'
34  Int_t fDataSetInfoVrs; // Version of the dataset info 'table'
35  Int_t fFileInfoVrs; // Version of the file info 'table'
36  enum EConfigBits { // TProofMonSender status/config bits
37  kSendSummary = BIT(15), // Toggle sending of summary
38  kSendDataSetInfo = BIT(16), // Toggle sending of dataset info
39  kSendFileInfo = BIT(17) // Toggle sending of files info
40  };
41 
42  // Auxilliary class describing dataset multiplets
43  class TDSetPlet : public TNamed {
44  public:
48  TDSetPlet(const char *name, TDSet *ds = 0) :
49  TNamed(name, ""), fFiles(0), fMissing(0), fDSet(ds) { }
50  virtual ~TDSetPlet() { }
51  };
52 
53 public:
54 
55  TProofMonSender(const char *n = "Abstract",
56  const char *t = "ProofMonSender") : TNamed(n,t),
62  virtual ~TProofMonSender() { }
63 
64  // This changes the send control options
65  Int_t SetSendOptions(const char *);
66 
67  // Object validity
69 
70  // Summary record
71  virtual Int_t SendSummary(TList *, const char *) = 0;
72 
73  // Information about the dataset(s) processed
74  virtual Int_t SendDataSetInfo(TDSet *, TList *, const char *, const char *) = 0;
75 
76  // Detailed information about files
77  virtual Int_t SendFileInfo(TDSet *, TList *, const char *, const char *) = 0;
78 
79  ClassDef(TProofMonSender,0); // Interface for PROOF monitoring
80 };
81 
82 #endif
n
const Int_t n
Definition: legend1.C:16
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
TObject::TestBit
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
Definition: TObject.h:172
TProofMonSender::TDSetPlet
Definition: TProofMonSender.h:43
TNamed.h
TProofMonSender::TDSetPlet::fFiles
Int_t fFiles
Definition: TProofMonSender.h:45
TProofMonSender::IsValid
Bool_t IsValid() const
Definition: TProofMonSender.h:68
Int_t
int Int_t
Definition: RtypesCore.h:45
TProofMonSender::TDSetPlet::fMissing
Int_t fMissing
Definition: TProofMonSender.h:46
TProofMonSender::kSendSummary
@ kSendSummary
Definition: TProofMonSender.h:37
TProofMonSender::~TProofMonSender
virtual ~TProofMonSender()
Definition: TProofMonSender.h:62
bool
TProofMonSender::fDataSetInfoVrs
Int_t fDataSetInfoVrs
Definition: TProofMonSender.h:34
TProofMonSender::TDSetPlet::fDSet
TDSet * fDSet
Definition: TProofMonSender.h:47
TProofMonSender::EConfigBits
EConfigBits
Definition: TProofMonSender.h:36
TObject::ResetBit
void ResetBit(UInt_t f)
Definition: TObject.h:171
TProofMonSender::kSendFileInfo
@ kSendFileInfo
Definition: TProofMonSender.h:39
TObject::SetBit
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Definition: TObject.cxx:696
TNamed
Definition: TNamed.h:29
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TProofMonSender::SendFileInfo
virtual Int_t SendFileInfo(TDSet *, TList *, const char *, const char *)=0
BIT
#define BIT(n)
Definition: Rtypes.h:85
TProofMonSender::TDSetPlet::~TDSetPlet
virtual ~TDSetPlet()
Definition: TProofMonSender.h:50
TProofMonSender::SendDataSetInfo
virtual Int_t SendDataSetInfo(TDSet *, TList *, const char *, const char *)=0
TDSet
Definition: TDSet.h:153
TObject::kInvalidObject
@ kInvalidObject
if object ctor succeeded but object should not be used
Definition: TObject.h:68
TProofMonSender::TDSetPlet::TDSetPlet
TDSetPlet(const char *name, TDSet *ds=0)
Definition: TProofMonSender.h:48
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TProofMonSender
Definition: TProofMonSender.h:30
name
char name[80]
Definition: TGX11.cxx:110
TProofMonSender::SendSummary
virtual Int_t SendSummary(TList *, const char *)=0
TProofMonSender::TProofMonSender
TProofMonSender(const char *n="Abstract", const char *t="ProofMonSender")
Definition: TProofMonSender.h:55
TProofMonSender::SetSendOptions
Int_t SetSendOptions(const char *)
Parse send options from string 'sendopts'.
Definition: TProofMonSender.cxx:43
TProofMonSender::fSummaryVrs
Int_t fSummaryVrs
Definition: TProofMonSender.h:33
TProofMonSender::kSendDataSetInfo
@ kSendDataSetInfo
Definition: TProofMonSender.h:38
TProofMonSender::fFileInfoVrs
Int_t fFileInfoVrs
Definition: TProofMonSender.h:35
TList
Definition: TList.h:44
int