44 const char *confdir,
Int_t loglevel,
46 : fCondor(0), fTimer(0)
56 if (!conffile || !conffile[0]) {
58 }
else if (!strncasecmp(conffile,
"condor:", 7)) {
62 if (!confdir || !confdir[0]) {
66 Init(masterurl, conffile, confdir, loglevel);
88 Error(
"StartSlaves",
"Empty Condor image found for system %s",
97 TIter nextclaim(condorclaims);
98 while (
TObject *o = nextclaim()) claims.
Add(o);
107 if (workerList->
GetSize() == 0) {
120 while ((to = next())) {
146 << nSlavesDone << (csl != 0);
161 int nClaims = claims.
GetSize();
185 c->fPerfIdx,
c->fImage,
c->fWorkDir);
188 if (trial < ntries) {
189 if (slave && slave->
IsValid()) {
203 m <<
TString(
"Opening connections to workers") << nClaims
204 << nClaimsDone <<
kTRUE;
214 if (
p &&
p->Value()) {
222 Warning(
"StartSlaves",
"could not create TSlave object!");
228 if (
p &&
p->Value()) {
236 m <<
TString(
"Opening connections to workers") << nClaims
237 << nClaimsDone << slave->
IsValid();
240 Warning(
"StartSlaves",
"could not create TSlave object!");
255 while ((sl = (
TSlave *) nxsl())) {
272 m <<
TString(
"Setting up worker servers") << nSlavesTotal
273 << nSlavesDone << wrkvalid;
289 PDB(kCondor,1)
Info(
"SetActive",
"-- Condor Resume --");
298 PDB(kCondor,1)
Info(
"SetActive",
"-- Delayed Condor Suspend (%d msec / to %lld) --",
313 ad =
"JobUniverse = 5\n";
316 ad +=
"In = \"/dev/null\"\n";
winID h TVirtualViewer3D TVirtualGLPainter p
R__EXTERN TProofServ * gProofServ
const char *const kPROOF_ConfFile
const char *const kPROOF_ConfDir
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Bool_t Resume()
Resume worker.
TList * Claim(Int_t n, const char *cmd)
Claim n virtual machines This function figures out the image and performance index before returning t...
TString GetImage(const char *host) const
Get image of the worker.
void AddAt(TObject *obj, Int_t idx) override
Insert object at position idx in the list.
void Add(TObject *obj) override
TObject * Remove(TObject *obj) override
Remove object from the list.
TObject * At(Int_t idx) const override
Returns the object at position idx. Returns 0 if idx is out of range.
virtual void Add(TSocket *sock, Int_t interest=kRead)
Add socket to the monitor's active list.
Mother of all ROOT objects.
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.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Class used by TMap to store (key,value) pairs.
Bool_t StartSlaves(Bool_t) override
Setup Condor workers using dynamic information.
TProofCondor(const char *masterurl, const char *conffile=kPROOF_ConfFile, const char *confdir=kPROOF_ConfDir, Int_t loglevel=0, const char *alias=0, TProofMgr *mgr=0)
Start proof using condor.
~TProofCondor() override
Clean up Condor PROOF environment.
TString GetJobAd()
Get job Ad.
The PROOF manager interacts with the PROOF server coordinator to create or destroy a PROOF session,...
The purpose of this class is to provide a complete node description for masters, submasters and worke...
const TString & GetImage() const
const TString & GetWorkDir() const
Int_t GetPerfIndex() const
const TString & GetNodeName() const
The purpose of this class is to provide a standard interface to static config files.
TString GetFileName() const
TList * GetWorkers() override
Get the list of worker nodes.
const char * GetOrdinal() const
TSocket * GetSocket() const
void InitMembers()
Default initializations.
Int_t Init(const char *masterurl, const char *conffile, const char *confdir, Int_t loglevel, const char *alias=0)
Start the PROOF environment.
const char * GetConfDir() const
TSlave * CreateSlave(const char *url, const char *ord, Int_t perf, const char *image, const char *workdir)
Create a new TSlave of type TSlave::kSlave.
Int_t GetLogLevel() const
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
virtual TObject * RemoveAt(Int_t idx)
Class describing a PROOF worker server.
TSocket * GetSocket() const
virtual Int_t SetupServ(Int_t stype, const char *conffile)
Init a PROOF slave object.
virtual Bool_t IsValid() const
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
const char * Data() const
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
virtual TTime Now()
Get current time in milliseconds since 0:00 Jan 1 1995.
virtual const char * HostName()
Return the system's host name.
virtual void Sleep(UInt_t milliSec)
Sleep milliSec milli seconds.
virtual const char * TempDirectory() const
Return a user configured or systemwide directory to create temporary files in.
Handles synchronous and a-synchronous timer events.
virtual void Start(Long_t milliSec=-1, Bool_t singleShot=kFALSE)
Starts the timer with a milliSec timeout.
void Reset()
Reset the timer.
This class represents a WWW compatible URL.