Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
25class TProof;
26class TMap;
27
28class TProofNodes: public TObject {
29private:
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();
41public:
42 TProofNodes(TProof* proof);
43
44 virtual ~TProofNodes();
46 Int_t ActivateWorkers(const char *workers);
48 Int_t GetNWorkersCluster() const { return fNWrks; }
49 Int_t GetNNodes() const { return fNNodes; }
50 Int_t GetNCores() const { return fNCores; }
52 Int_t GetNActives() const { return fNActiveWrks; }
53 TMap* GetMapOfNodes() const { return fNodes; }
55 void Print(Option_t* option="") const;
56
57 ClassDef(TProofNodes, 0) //Node and worker information
58};
59
60#endif
const char Option_t
Definition RtypesCore.h:66
#define ClassDef(name, id)
Definition Rtypes.h:325
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition TMap.h:40
Mother of all ROOT objects.
Definition TObject.h:41
PROOF worker node information
Definition TProofNodes.h:28
Int_t fMinWrksNode
Definition TProofNodes.h:34
Int_t fNNodes
Definition TProofNodes.h:35
TProof * fProof
Definition TProofNodes.h:30
Int_t ActivateWorkers(Int_t nwrks)
Description: Activate 'nwrks' workers; calls TProof::SetParallel and rebuild the internal lists Input...
Int_t fNCores
Definition TProofNodes.h:38
virtual ~TProofNodes()
Destructor.
Int_t fNActiveWrks
Definition TProofNodes.h:37
Int_t GetNNodes() const
Definition TProofNodes.h:49
TMap * fActiveNodes
Definition TProofNodes.h:32
Int_t GetMinWrksPerNode() const
Definition TProofNodes.h:51
void Build()
Desctiption: Build the node list, which is a list of nodes whose members in turn are lists of workers...
TMap * GetMapOfNodes() const
Definition TProofNodes.h:53
void Print(Option_t *option="") const
Description: Print node information.
Int_t GetNWorkersCluster() const
Definition TProofNodes.h:48
Int_t GetMaxWrksPerNode() const
Definition TProofNodes.h:47
Int_t GetNCores() const
Definition TProofNodes.h:50
TMap * fNodes
Definition TProofNodes.h:31
TMap * GetMapOfActiveNodes() const
Definition TProofNodes.h:54
Int_t fMaxWrksNode
Definition TProofNodes.h:33
Int_t GetNActives() const
Definition TProofNodes.h:52
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition TProof.h:316