ROOT  6.06/09
Reference Guide
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 #ifndef ROOT_TObject
24 #include "TObject.h"
25 #endif
26 
27 class TProof;
28 class TMap;
29 
30 class TProofNodes: public TObject {
31 private:
33  TMap *fNodes; // Map of node infos
34  TMap *fActiveNodes; // Map of active node infos
35  Int_t fMaxWrksNode; // Max number of workers per node
36  Int_t fMinWrksNode; // Min number of workers per node
37  Int_t fNNodes; // Number of nodes
38  Int_t fNWrks; // Number of workers
39  Int_t fNActiveWrks; // Number of active workers
40  Int_t fNCores; // Number of total cores
41 
42  void Build();
43 public:
45 
46  virtual ~TProofNodes();
48  Int_t ActivateWorkers(const char *workers);
49  Int_t GetMaxWrksPerNode() const { return fMaxWrksNode; }
50  Int_t GetNWorkersCluster() const { return fNWrks; }
51  Int_t GetNNodes() const { return fNNodes; }
52  Int_t GetNCores() const { return fNCores; }
53  Int_t GetMinWrksPerNode() const { return fMinWrksNode; }
54  Int_t GetNActives() const { return fNActiveWrks; }
55  TMap* GetMapOfNodes() const { return fNodes; }
56  TMap* GetMapOfActiveNodes() const { return fActiveNodes; }
57  void Print(Option_t* option="") const;
58 
59  ClassDef(TProofNodes, 0) //Node and worker information
60 };
61 
62 #endif
virtual ~TProofNodes()
Destructor.
Definition: TProofNodes.cxx:42
const char Option_t
Definition: RtypesCore.h:62
Int_t GetMinWrksPerNode() const
Definition: TProofNodes.h:53
Int_t fNNodes
Definition: TProofNodes.h:37
int Int_t
Definition: RtypesCore.h:41
Int_t fNWrks
Definition: TProofNodes.h:38
TMap * GetMapOfActiveNodes() const
Definition: TProofNodes.h:56
Int_t GetNActives() const
Definition: TProofNodes.h:54
void Print(Option_t *option="") const
Description: Print node information.
TMap * fNodes
Definition: TProofNodes.h:33
Int_t GetMaxWrksPerNode() const
Definition: TProofNodes.h:49
#define ClassDef(name, id)
Definition: Rtypes.h:254
TProofNodes(TProof *proof)
Int_t GetNWorkersCluster() const
Definition: TProofNodes.h:50
Int_t fMinWrksNode
Definition: TProofNodes.h:36
Int_t GetNNodes() const
Definition: TProofNodes.h:51
Int_t fMaxWrksNode
Definition: TProofNodes.h:35
Int_t GetNCores() const
Definition: TProofNodes.h:52
TProof * fProof
Definition: TProofNodes.h:32
TMap * fActiveNodes
Definition: TProofNodes.h:34
Int_t ActivateWorkers(Int_t nwrks)
Description: Activate 'nwrks' workers; calls TProof::SetParallel and rebuild the internal lists Input...
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition: TMap.h:44
Int_t fNActiveWrks
Definition: TProofNodes.h:39
Definition: TProof.h:339
Int_t fNCores
Definition: TProofNodes.h:40
TMap * GetMapOfNodes() const
Definition: TProofNodes.h:55
Mother of all ROOT objects.
Definition: TObject.h:58
const char Int_t const char TProof * proof
Definition: TXSlave.cxx:46
void Build()
Desctiption: Build the node list, which is a list of nodes whose members in turn are lists of workers...
Definition: TProofNodes.cxx:56