Logo ROOT   6.14/05
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 #include "TObject.h"
24 
25 class TProof;
26 class TMap;
27 
28 class TProofNodes: public TObject {
29 private:
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();
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
Int_t GetMaxWrksPerNode() const
Definition: TProofNodes.h:47
virtual ~TProofNodes()
Destructor.
Definition: TProofNodes.cxx:41
const char Option_t
Definition: RtypesCore.h:62
Int_t fNNodes
Definition: TProofNodes.h:35
int Int_t
Definition: RtypesCore.h:41
Int_t fNWrks
Definition: TProofNodes.h:36
void Print(Option_t *option="") const
Description: Print node information.
TMap * fNodes
Definition: TProofNodes.h:31
#define ClassDef(name, id)
Definition: Rtypes.h:320
Int_t GetNWorkersCluster() const
Definition: TProofNodes.h:48
Int_t GetNCores() const
Definition: TProofNodes.h:50
TProofNodes(TProof *proof)
Constructor.
Definition: TProofNodes.cxx:30
Int_t GetNActives() const
Definition: TProofNodes.h:52
Int_t fMinWrksNode
Definition: TProofNodes.h:34
Int_t fMaxWrksNode
Definition: TProofNodes.h:33
TMap * GetMapOfNodes() const
Definition: TProofNodes.h:53
TMap * GetMapOfActiveNodes() const
Definition: TProofNodes.h:54
TProof * fProof
Definition: TProofNodes.h:30
TMap * fActiveNodes
Definition: TProofNodes.h:32
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:40
Int_t fNActiveWrks
Definition: TProofNodes.h:37
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition: TProof.h:316
Int_t fNCores
Definition: TProofNodes.h:38
Int_t GetMinWrksPerNode() const
Definition: TProofNodes.h:51
Mother of all ROOT objects.
Definition: TObject.h:37
Int_t GetNNodes() const
Definition: TProofNodes.h:49
void Build()
Desctiption: Build the node list, which is a list of nodes whose members in turn are lists of workers...
Definition: TProofNodes.cxx:55
PROOF worker node information.
Definition: TProofNodes.h:28