Logo ROOT  
Reference Guide
TCondor.h
Go to the documentation of this file.
1 // @(#)root/proof:$Id$
2 // Author: Maarten Ballintijn 06/12/03
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TCondor
13 #define ROOT_TCondor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TCondor //
18 // //
19 // Interface to the Condor system. TCondor provides a (partial) API for //
20 // querying and controlling the Condor system, including experimental //
21 // extensions like COD (computing on demand) //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 #include "TObject.h"
26 #include "TString.h"
27 
28 
29 class TList;
30 
31 
32 //------------------------------------------------------------------------
33 
34 class TCondorSlave : public TObject {
35 public:
43 
44  void Print(Option_t *option="") const;
45 
46  ClassDef(TCondorSlave,0) // Describes a claimed slave
47 };
48 
49 
50 //------------------------------------------------------------------------
51 
52 class TCondor : public TObject {
53 public:
55 
56 private:
57 
58  Bool_t fValid; //access to Condor
59  TString fPool; //the condor pool to be accessed
60  EState fState; //our claim state
61  TList *fClaims; //list of claims we manage
62 
63 protected:
64  TCondorSlave *ClaimVM(const char *vm, const char *cmd);
65 
66 public:
67  TCondor(const char *pool = "");
68  virtual ~TCondor();
69 
70 
71  void Print(Option_t *option="") const;
72  Bool_t IsValid() const { return fValid; }
73 
74  TList *GetVirtualMachines() const;
75 
76  TList *Claim(Int_t n, const char *cmd);
77  TCondorSlave *Claim(const char *vmname, const char *cmd);
78  Bool_t SetState(EState state);
79  EState GetState() const {return fState;}
80  Bool_t Suspend();
81  Bool_t Resume();
82  Bool_t Release();
83 
84  Bool_t GetVmInfo(const char *vm, TString &image, Int_t &perfidx) const;
85  TString GetImage(const char *host) const;
86 
87 
88  ClassDef(TCondor,0) // Interface to the Condor System
89 };
90 
91 #endif
n
const Int_t n
Definition: legend1.C:16
TCondor
Definition: TCondor.h:52
TCondor::Release
Bool_t Release()
Release worker.
Definition: TCondor.cxx:357
TCondorSlave
Definition: TCondor.h:34
TCondor::GetVmInfo
Bool_t GetVmInfo(const char *vm, TString &image, Int_t &perfidx) const
Get info about worker status.
Definition: TCondor.cxx:401
TCondor::Print
void Print(Option_t *option="") const
Print master status.
Definition: TCondor.cxx:89
TCondor::GetVirtualMachines
TList * GetVirtualMachines() const
Get the names of the virtual machines in the pool.
Definition: TCondor.cxx:194
TCondor::Suspend
Bool_t Suspend()
Suspend worker.
Definition: TCondor.cxx:329
Int_t
int Int_t
Definition: RtypesCore.h:45
TCondor::kFree
@ kFree
Definition: TCondor.h:54
TCondor::EState
EState
Definition: TCondor.h:54
TString
Definition: TString.h:136
TCondorSlave::Print
void Print(Option_t *option="") const
Print worker status.
Definition: TCondor.cxx:479
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
TCondor::~TCondor
virtual ~TCondor()
Cleanup Condor interface.
Definition: TCondor.cxx:75
TString.h
bool
TCondorSlave::fPort
Int_t fPort
Definition: TCondor.h:37
TCondor::ClaimVM
TCondorSlave * ClaimVM(const char *vm, const char *cmd)
Claim a VirtualMachine for PROOF usage.
Definition: TCondor.cxx:101
TCondor::GetState
EState GetState() const
Definition: TCondor.h:79
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TCondorSlave::fPerfIdx
Int_t fPerfIdx
Definition: TCondor.h:38
TCondorSlave::fImage
TString fImage
Definition: TCondor.h:39
TCondor::GetImage
TString GetImage(const char *host) const
Get image of the worker.
Definition: TCondor.cxx:440
TCondor::SetState
Bool_t SetState(EState state)
Set the state of workers.
Definition: TCondor.cxx:288
TCondor::IsValid
Bool_t IsValid() const
Definition: TCondor.h:72
TCondor::TCondor
TCondor(const char *pool="")
Create Condor interface object.
Definition: TCondor.cxx:42
TCondor::kActive
@ kActive
Definition: TCondor.h:54
TCondorSlave::fWorkDir
TString fWorkDir
Definition: TCondor.h:42
TCondor::fClaims
TList * fClaims
Definition: TCondor.h:61
TCondor::fValid
Bool_t fValid
Definition: TCondor.h:58
TObject.h
TCondor::Resume
Bool_t Resume()
Resume worker.
Definition: TCondor.cxx:343
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TCondor::fState
EState fState
Definition: TCondor.h:60
TCondorSlave::fOrdinal
TString fOrdinal
Definition: TCondor.h:41
TCondor::kSuspended
@ kSuspended
Definition: TCondor.h:54
TCondorSlave::fClaimID
TString fClaimID
Definition: TCondor.h:40
TCondorSlave::fHostname
TString fHostname
Definition: TCondor.h:36
TCondor::Claim
TList * Claim(Int_t n, const char *cmd)
Claim n virtual machines This function figures out the image and performance index before returning t...
Definition: TCondor.cxx:233
TCondor::fPool
TString fPool
Definition: TCondor.h:59
TList
Definition: TList.h:44
int