Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TProofNodes.h
Go to the documentation of this file.
1 // @(#)root/proof:$Id$
2 // Author: Sangsu Ryu 2010
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, 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_TProofNodes
13 #define ROOT_TProofNodes
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TProofNodes //
18 // //
19 // PROOF worker nodes information //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #include "TObject.h"
24 
25 class TProof;
26 class TMap;
27 
28 class TProofNodes: public TObject {
29 private:
30  TProof *fProof;
31  TMap *fNodes; // Map of node infos
32  TMap *fActiveNodes; // Map of active node infos
33  Int_t fMaxWrksNode; // Max number of workers per node
34  Int_t fMinWrksNode; // Min number of workers per node
35  Int_t fNNodes; // Number of nodes
36  Int_t fNWrks; // Number of workers
37  Int_t fNActiveWrks; // Number of active workers
38  Int_t fNCores; // Number of total cores
39 
40  void Build();
41 public:
42  TProofNodes(TProof* proof);
43 
44  virtual ~TProofNodes();
45  Int_t ActivateWorkers(Int_t nwrks);
46  Int_t ActivateWorkers(const char *workers);
47  Int_t GetMaxWrksPerNode() const { return fMaxWrksNode; }
48  Int_t GetNWorkersCluster() const { return fNWrks; }
49  Int_t GetNNodes() const { return fNNodes; }
50  Int_t GetNCores() const { return fNCores; }
51  Int_t GetMinWrksPerNode() const { return fMinWrksNode; }
52  Int_t GetNActives() const { return fNActiveWrks; }
53  TMap* GetMapOfNodes() const { return fNodes; }
54  TMap* GetMapOfActiveNodes() const { return fActiveNodes; }
55  void Print(Option_t* option="") const;
56 
57  ClassDef(TProofNodes, 0) //Node and worker information
58 };
59 
60 #endif