31 : fProof(proof), fNodes(0), fActiveNodes(0),
32 fMaxWrksNode(-1), fMinWrksNode(-1),
33 fNNodes(0), fNWrks(0), fNActiveWrks(0), fNCores(0)
58 Warning(
"Build",
"the PROOF instance is undefined or invalid! Cannot continue");
70 TIter nxtslave(slaves);
103 while ((key = nxk()) != 0) {
125 actnode->
Add(si_copy);
130 actnode->
Add(si_copy);
136 Warning(
"Build",
"could not get list for node '%s'", key->
GetName());
155 Warning(
"ActivateWorkers",
"requested %d got %d", nwrks, nw);
188 Error(
"ActivateWorkers",
"wrongly formatted argument: %s - cannot continue", workers);
192 Int_t ret = nworkersnode;
198 while ((key = nxk()) != 0) {
200 TIter nxtworker(node);
201 Int_t nactiveworkers = 0;
203 if (nactiveworkers < nworkersnode) {
223 Warning(
"ActivateWorkers",
"could not get list for node '%s'", key->
GetName());
227 if (!todeactivate.
IsNull()) {
231 if (!toactivate.
IsNull()) {
236 Warning(
"ActivateWorkers",
"could not get the requested number of workers per node (%d)",
246 while ((key = nxkn()) != 0) {
248 TIter nxtworker(node);
249 Int_t nactiveworkers = 0;
253 if (nactiveworkers != nworkersnode) {
254 Warning(
"ActivateWorkers",
"only %d (out of %d requested) workers "
255 "were activated on node %s",
256 nactiveworkers, nworkersnode, node->
GetName());
260 Warning(
"ActivateWorkers",
"could not get list for node '%s'", key->
GetName());
275 while ((key = nxk()) != 0) {
280 Warning(
"Print",
"could not get list for node '%s'", key->
GetName());
void SetName(const char *name)
const char * GetName() const override
Return name of this collection.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
void Print(Option_t *option="") const override
Default print for collections, calls Print(option, 1).
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
void Add(TObject *obj) override
TObject * First() const override
Return the first object in the list. Returns 0 when list is empty.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
void Add(TObject *obj) override
This function may not be used (but we need to provide it since it is a pure virtual in TCollection).
TObject * FindObject(const char *keyname) const override
Check if a (key,value) pair exists with keyname as name of the key.
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
Collectable string class.
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Class used by TMap to store (key,value) pairs.
PROOF worker node information
void Print(Option_t *option="") const override
Description: Print node information.
Int_t ActivateWorkers(Int_t nwrks)
Description: Activate 'nwrks' workers; calls TProof::SetParallel and rebuild the internal lists Input...
TProofNodes(TProof *proof)
Constructor.
void Build()
Desctiption: Build the node list, which is a list of nodes whose members in turn are lists of workers...
~TProofNodes() override
Destructor.
This class controls a Parallel ROOT Facility, PROOF, cluster.
Int_t GetClientProtocol() const
Int_t ActivateWorker(const char *ord, Bool_t save=kTRUE)
Make sure that the worker identified by the ordinal number 'ord' is in the active list.
Int_t GetRemoteProtocol() const
Int_t SetParallel(Int_t nodes=-1, Bool_t random=kFALSE)
Tell PROOF how many slaves to use in parallel.
Int_t DeactivateWorker(const char *ord, Bool_t save=kTRUE)
Remove the worker identified by the ordinal number 'ord' from the the active list.
TList * GetListOfSlaveInfos()
Returns list of TSlaveInfo's. In case of error return 0.
const char * GetName() const override
Returns name of object.
const char * GetOrdinal() const
Int_t Atoi() const
Return integer value of string.
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.
Bool_t IsDigit() const
Returns true if all characters in string are digits (0-9) or white spaces, i.e.
TString & Remove(Ssiz_t pos)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.