#include <TCondor.h>
Inheritance diagram for TCondor:

Public Types | |
| enum | EState |
| enum | EState |
Public Member Functions | |
| TCondor (const char *pool="") | |
| virtual | ~TCondor () |
| void | Print (Option_t *option="") const |
| Bool_t | IsValid () const |
| 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 |
| 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 |
| TCondor (const char *pool="") | |
| virtual | ~TCondor () |
| void | Print (Option_t *option="") const |
| Bool_t | IsValid () const |
| 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 |
| 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 |
Protected Member Functions | |
| TCondorSlave * | ClaimVM (const char *vm, const char *cmd) |
| TCondorSlave * | ClaimVM (const char *vm, const char *cmd) |
Private Attributes | |
| Bool_t | fValid |
| TString | fPool |
| EState | fState |
| TList * | fClaims |
| TList * | fClaims |
Definition at line 56 of file TCondor.h.
| enum TCondor::EState |
| enum TCondor::EState |
| TCondor::TCondor | ( | const char * | pool = "" |
) |
| TCondor::~TCondor | ( | ) | [virtual] |
Definition at line 73 of file TCondor.cxx.
References fClaims, fState, TObject::Info(), kFree, PDB, and Release().
| TCondor::TCondor | ( | const char * | pool = "" |
) |
| virtual TCondor::~TCondor | ( | ) | [virtual] |
| TCondorSlave * TCondor::ClaimVM | ( | const char * | vm, | |
| const char * | cmd | |||
| ) | [protected] |
Definition at line 99 of file TCondor.cxx.
References TSystem::ClosePipe(), TString::Data(), TObject::Error(), TCondorSlave::fClaimID, fclose(), TCondorSlave::fHostname, TCondorSlave::fImage, Form(), TCondorSlave::fPerfIdx, TCondorSlave::fPort, TSystem::GetUid(), gSystem, TString::Index(), TObject::Info(), line, num, TSystem::OpenPipe(), PDB, pipe, XrdMonCtrCollector::port, TString::Remove(), str, TObject::SysError(), TSystem::TempDirectory(), TSystem::TempFileName(), and TSystem::Unlink().
Referenced by Claim().
| void TCondor::Print | ( | Option_t * | option = "" |
) | const [virtual] |
Reimplemented from TObject.
Definition at line 87 of file TCondor.cxx.
References fClaims, fPool, fState, and TCollection::Print().
| Bool_t TCondor::IsValid | ( | ) | const [inline] |
| TList * TCondor::GetVirtualMachines | ( | ) | const |
Definition at line 193 of file TCondor.cxx.
References TSystem::ClosePipe(), TString::Data(), TObject::Error(), Form(), fPool, gSystem, TObject::Info(), l, line, TSystem::OpenPipe(), PDB, pipe, and TObject::SysError().
Referenced by Claim().
Definition at line 231 of file TCondor.cxx.
References TList::Add(), ClaimVM(), TObject::Error(), fClaims, fState, GetVirtualMachines(), GetVmInfo(), i, kActive, and kFree.
Referenced by TProofPEAC::StartSlaves(), and TProofCondor::StartSlaves().
| TCondorSlave * TCondor::Claim | ( | const char * | vmname, | |
| const char * | cmd | |||
| ) |
Definition at line 263 of file TCondor.cxx.
References TList::Add(), ClaimVM(), TObject::Error(), fClaims, fState, kActive, and kFree.
Definition at line 285 of file TCondor.cxx.
References TSystem::ClosePipe(), TString::Data(), TObject::Error(), TCondorSlave::fClaimID, fClaims, Form(), fState, gSystem, TObject::Info(), kFALSE, kSuspended, kTRUE, line, Long64_t, TSystem::Now(), TSystem::OpenPipe(), PDB, pipe, and TObject::SysError().
| EState TCondor::GetState | ( | ) | const [inline] |
Definition at line 83 of file TCondor.h.
References fState.
Referenced by TProofPEAC::SetActive(), and TProofCondor::SetActive().
| Bool_t TCondor::Suspend | ( | ) |
Definition at line 326 of file TCondor.cxx.
References TObject::Error(), fState, kActive, kFALSE, kSuspended, and SetState().
| Bool_t TCondor::Resume | ( | ) |
Definition at line 340 of file TCondor.cxx.
References TObject::Error(), fState, kActive, kFALSE, kSuspended, and SetState().
Referenced by TProofPEAC::SetActive(), and TProofCondor::SetActive().
| Bool_t TCondor::Release | ( | ) |
Definition at line 354 of file TCondor.cxx.
References TSystem::ClosePipe(), TString::Data(), TObject::Error(), TCondorSlave::fClaimID, fClaims, TList::First(), Form(), fState, gSystem, TObject::Info(), kFALSE, kFree, kTRUE, line, TSystem::OpenPipe(), PDB, pipe, TList::Remove(), and TObject::SysError().
Referenced by ~TCondor().
Definition at line 398 of file TCondor.cxx.
References TSystem::ClosePipe(), TString::Data(), TObject::Error(), Form(), gSystem, image, TObject::Info(), kFALSE, kTRUE, line, TSystem::OpenPipe(), PDB, pipe, and TObject::SysError().
Referenced by Claim().
| TString TCondor::GetImage | ( | const char * | host | ) | const |
Definition at line 437 of file TCondor.cxx.
References TSystem::ClosePipe(), TString::Data(), TObject::Error(), Form(), gSystem, image, TObject::Info(), line, TSystem::OpenPipe(), PDB, pipe, and TObject::SysError().
Referenced by TProofPEAC::StartSlaves(), and TProofCondor::StartSlaves().
| TCondorSlave* TCondor::ClaimVM | ( | const char * | vm, | |
| const char * | cmd | |||
| ) | [protected] |
| Bool_t TCondor::IsValid | ( | ) | const [inline] |
| TList* TCondor::GetVirtualMachines | ( | ) | const |
| TCondorSlave* TCondor::Claim | ( | const char * | vmname, | |
| const char * | cmd | |||
| ) |
| EState TCondor::GetState | ( | ) | const [inline] |
| Bool_t TCondor::Suspend | ( | ) |
| Bool_t TCondor::Resume | ( | ) |
| Bool_t TCondor::Release | ( | ) |
| TString TCondor::GetImage | ( | const char * | host | ) | const |
Bool_t TCondor::fValid [private] |
TString TCondor::fPool [private] |
EState TCondor::fState [private] |
Definition at line 64 of file TCondor.h.
Referenced by Claim(), GetState(), Print(), Release(), Resume(), SetState(), Suspend(), and ~TCondor().
TList* TCondor::fClaims [private] |
Definition at line 65 of file TCondor.h.
Referenced by Claim(), Print(), Release(), SetState(), and ~TCondor().
TList* TCondor::fClaims [private] |
1.5.1