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())) {
144 m <<
TString(
"Creating COD Claim") << workerList->GetSize()
145 << nSlavesDone << (csl != 0);
160 int nClaims = claims.
GetSize();
187 if (trial < ntries) {
188 if (slave && slave->
IsValid()) {
202 m <<
TString(
"Opening connections to workers") << nClaims
203 << nClaimsDone <<
kTRUE;
210 claims.
AddAt(p, idx);
213 if (p && p->
Value()) {
221 Warning(
"StartSlaves",
"could not create TSlave object!");
227 if (p && p->
Value()) {
235 m <<
TString(
"Opening connections to workers") << nClaims
236 << nClaimsDone << slave->
IsValid();
239 Warning(
"StartSlaves",
"could not create TSlave object!");
254 while ((sl = (
TSlave *) nxsl())) {
271 m <<
TString(
"Setting up worker servers") << nSlavesTotal
272 << nSlavesDone << wrkvalid;
288 PDB(kCondor,1)
Info(
"SetActive",
"-- Condor Resume --");
297 PDB(kCondor,1)
Info(
"SetActive",
"-- Delayed Condor Suspend (%d msec / to %lld) --",
312 ad =
"JobUniverse = 5\n";
315 ad +=
"In = \"/dev/null\"\n";
virtual void AddAt(TObject *obj, Int_t idx)
Insert object at position idx in the list.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
void Reset()
Reset the timer.
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
This class represents a WWW compatible URL.
TString GetImage(const char *host) const
Get image of the worker.
The PROOF manager interacts with the PROOF server coordinator to create or destroy a PROOF session...
TSocket * GetSocket() const
Int_t GetPerfIndex() const
virtual void Add(TSocket *sock, Int_t interest=kRead)
Add socket to the monitor's active list.
const TString & GetImage() const
virtual TObject * RemoveAt(Int_t idx)
const char * GetConfDir() const
TList * GetWorkers()
Get the list of worker nodes.
virtual Bool_t IsValid() const
virtual void Sleep(UInt_t milliSec)
Sleep milliSec milli seconds.
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.
TSocket * GetSocket() const
Bool_t StartSlaves(Bool_t)
Setup Condor workers using dynamic information.
Int_t GetLogLevel() const
virtual void Start(Long_t milliSec=-1, Bool_t singleShot=kFALSE)
Starts the timer with a milliSec timeout.
TList * Claim(Int_t n, const char *cmd)
Claim n virtual machines This function figures out the image and performance index before returning t...
Int_t Init(const char *masterurl, const char *conffile, const char *confdir, Int_t loglevel, const char *alias=0)
Start the PROOF environment.
virtual const char * TempDirectory() const
Return a user configured or systemwide directory to create temporary files in.
const char *const kPROOF_ConfFile
void InitMembers()
Default initializations.
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 TTime Now()
Get current time in milliseconds since 0:00 Jan 1 1995.
The purpose of this class is to provide a complete node description for masters, submasters and worke...
const TString & GetNodeName() const
R__EXTERN TSystem * gSystem
TString GetFileName() const
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.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
const char *const kPROOF_ConfDir
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
char * Form(const char *fmt,...)
virtual ~TProofCondor()
Clean up Condor PROOF environment.
Handles synchronous and a-synchronous timer events.
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
TString GetJobAd()
Get job Ad.
Class used by TMap to store (key,value) pairs.
virtual const char * HostName()
Return the system's host name.
Mother of all ROOT objects.
The purpose of this class is to provide a standard interface to static config files.
R__EXTERN TProofServ * gProofServ
const TString & GetWorkDir() const
virtual void Add(TObject *obj)
virtual Bool_t ExpandPathName(TString &path)
Expand a pathname getting rid of special shell characters like ~.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Class describing a PROOF worker server.
Bool_t Resume()
Resume worker.
const char * GetOrdinal() const
virtual Int_t SetupServ(Int_t stype, const char *conffile)
Init a PROOF slave object.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
const char * Data() const