Logo ROOT  
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
TProofNodes::~TProofNodes
virtual ~TProofNodes()
Destructor.
Definition: TProofNodes.cxx:41
TProofNodes::GetNNodes
Int_t GetNNodes() const
Definition: TProofNodes.h:49
TProofNodes
PROOF worker node information
Definition: TProofNodes.h:28
TProofNodes::fNWrks
Int_t fNWrks
Definition: TProofNodes.h:36
Option_t
const char Option_t
Definition: RtypesCore.h:66
TProofNodes::GetNWorkersCluster
Int_t GetNWorkersCluster() const
Definition: TProofNodes.h:48
TProofNodes::GetNCores
Int_t GetNCores() const
Definition: TProofNodes.h:50
TProofNodes::TProofNodes
TProofNodes(TProof *proof)
Constructor.
Definition: TProofNodes.cxx:30
TProofNodes::fNNodes
Int_t fNNodes
Definition: TProofNodes.h:35
TProofNodes::Print
void Print(Option_t *option="") const
Description: Print node information.
Definition: TProofNodes.cxx:271
TProofNodes::GetNActives
Int_t GetNActives() const
Definition: TProofNodes.h:52
TProofNodes::fNodes
TMap * fNodes
Definition: TProofNodes.h:31
TProofNodes::fActiveNodes
TMap * fActiveNodes
Definition: TProofNodes.h:32
TProofNodes::GetMapOfNodes
TMap * GetMapOfNodes() const
Definition: TProofNodes.h:53
TProofNodes::fNCores
Int_t fNCores
Definition: TProofNodes.h:38
TProofNodes::fMinWrksNode
Int_t fMinWrksNode
Definition: TProofNodes.h:34
TProofNodes::fMaxWrksNode
Int_t fMaxWrksNode
Definition: TProofNodes.h:33
TProofNodes::GetMinWrksPerNode
Int_t GetMinWrksPerNode() const
Definition: TProofNodes.h:51
TProofNodes::fProof
TProof * fProof
Definition: TProofNodes.h:30
TProofNodes::fNActiveWrks
Int_t fNActiveWrks
Definition: TProofNodes.h:37
TProofNodes::GetMapOfActiveNodes
TMap * GetMapOfActiveNodes() const
Definition: TProofNodes.h:54
TObject.h
TProofNodes::ActivateWorkers
Int_t ActivateWorkers(Int_t nwrks)
Description: Activate 'nwrks' workers; calls TProof::SetParallel and rebuild the internal lists Input...
Definition: TProofNodes.cxx:150
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TProof
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition: TProof.h:316
TProofNodes::GetMaxWrksPerNode
Int_t GetMaxWrksPerNode() const
Definition: TProofNodes.h:47
TProofNodes::Build
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
int
TMap
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition: TMap.h:40