/usr/include/root/TCondor.h is in libroot-proof-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | // @(#)root/proof:$Id$
// Author: Maarten Ballintijn 06/12/03
/*************************************************************************
* Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TCondor
#define ROOT_TCondor
//////////////////////////////////////////////////////////////////////////
// //
// TCondor //
// //
// Interface to the Condor system. TCondor provides a (partial) API for //
// querying and controlling the Condor system, including experimental //
// extensions like COD (computing on demand) //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TList;
//------------------------------------------------------------------------
class TCondorSlave : public TObject {
public:
TString fHostname;
Int_t fPort;
Int_t fPerfIdx;
TString fImage;
TString fClaimID;
TString fOrdinal;
TString fWorkDir;
void Print(Option_t *option="") const;
ClassDef(TCondorSlave,0) // Describes a claimed slave
};
//------------------------------------------------------------------------
class TCondor : public TObject {
public:
enum EState { kFree, kSuspended, kActive };
private:
Bool_t fValid; //access to Condor
TString fPool; //the condor pool to be accessed
EState fState; //our claim state
TList *fClaims; //list of claims we manage
protected:
TCondorSlave *ClaimVM(const char *vm, const char *cmd);
public:
TCondor(const char *pool = "");
virtual ~TCondor();
void Print(Option_t *option="") const;
Bool_t IsValid() const { return fValid; }
TList *GetVirtualMachines() const;
TList *Claim(Int_t n, const char *cmd);
TCondorSlave *Claim(const char *vmname, const char *cmd);
Bool_t SetState(EState state);
EState GetState() const {return fState;}
Bool_t Suspend();
Bool_t Resume();
Bool_t Release();
Bool_t GetVmInfo(const char *vm, TString &image, Int_t &perfidx) const;
TString GetImage(const char *host) const;
ClassDef(TCondor,0) // Interface to the Condor System
};
#endif
|