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());
virtual ~TProofNodes()
Destructor.
const char * GetName() const
Returns name of object.
Collectable string class.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
void Add(TObject *obj)
This function may not be used (but we need to provide it since it is a pure virtual in TCollection)...
const char * GetOrdinal() const
Int_t GetClientProtocol() const
void Print(Option_t *option="") const
Description: Print node information.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
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...
TList * GetListOfSlaveInfos()
Returns list of TSlaveInfo's. In case of error return 0.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.
void SetName(const char *name)
TString & Remove(Ssiz_t pos)
Class used by TMap to store (key,value) pairs.
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 ...
This class controls a Parallel ROOT Facility, PROOF, cluster.
Mother of all ROOT objects.
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
TObject * FindObject(const char *keyname) const
Check if a (key,value) pair exists with keyname as name of the key.
virtual void Add(TObject *obj)
Int_t GetRemoteProtocol() const
Int_t SetParallel(Int_t nodes=-1, Bool_t random=kFALSE)
Tell PROOF how many slaves to use in parallel.
TObject * GetValue(const char *keyname) const
Returns a pointer to the value associated with keyname as name of the key.
Int_t Atoi() const
Return integer value of string.
void Build()
Desctiption: Build the node list, which is a list of nodes whose members in turn are lists of workers...
Bool_t IsDigit() const
Returns true if all characters in string are digits (0-9) or white spaces, i.e.
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
virtual const char * GetName() const
Returns name of object.
virtual Int_t GetSize() const
Int_t DeactivateWorker(const char *ord, Bool_t save=kTRUE)
Remove the worker identified by the ordinal number 'ord' from the the active list.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual const char * GetName() const
Return name of this collection.
PROOF worker node information.