TCondor Class Reference

#include <TCondor.h>

Inheritance diagram for TCondor:

TObject TObject List of all members.

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
TListGetVirtualMachines () const
TListClaim (Int_t n, const char *cmd)
TCondorSlaveClaim (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
TListGetVirtualMachines () const
TListClaim (Int_t n, const char *cmd)
TCondorSlaveClaim (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

TCondorSlaveClaimVM (const char *vm, const char *cmd)
TCondorSlaveClaimVM (const char *vm, const char *cmd)

Private Attributes

Bool_t fValid
TString fPool
EState fState
TListfClaims
TListfClaims

Detailed Description

Definition at line 56 of file TCondor.h.


Member Enumeration Documentation

enum TCondor::EState

Definition at line 58 of file TCondor.h.

enum TCondor::EState

Definition at line 58 of file TCondor.h.


Constructor & Destructor Documentation

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]


Member Function Documentation

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]

Definition at line 76 of file TCondor.h.

References fValid.

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().

TList * TCondor::Claim ( Int_t  n,
const char *  cmd 
)

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.

Bool_t TCondor::SetState ( EState  state  ) 

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().

Referenced by Resume(), and Suspend().

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().

Bool_t TCondor::GetVmInfo ( const char *  vm,
TString image,
Int_t perfidx 
) const

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]

void TCondor::Print ( Option_t option = ""  )  const [virtual]

Reimplemented from TObject.

Bool_t TCondor::IsValid (  )  const [inline]

Definition at line 76 of file TCondor.h.

References fValid.

TList* TCondor::GetVirtualMachines (  )  const

TList* TCondor::Claim ( Int_t  n,
const char *  cmd 
)

TCondorSlave* TCondor::Claim ( const char *  vmname,
const char *  cmd 
)

Bool_t TCondor::SetState ( EState  state  ) 

EState TCondor::GetState (  )  const [inline]

Definition at line 83 of file TCondor.h.

References fState.

Bool_t TCondor::Suspend (  ) 

Bool_t TCondor::Resume (  ) 

Bool_t TCondor::Release (  ) 

Bool_t TCondor::GetVmInfo ( const char *  vm,
TString image,
Int_t perfidx 
) const

TString TCondor::GetImage ( const char *  host  )  const


Member Data Documentation

Bool_t TCondor::fValid [private]

Definition at line 62 of file TCondor.h.

Referenced by IsValid().

TString TCondor::fPool [private]

Definition at line 63 of file TCondor.h.

Referenced by GetVirtualMachines(), and Print().

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]

Definition at line 65 of file TCondor.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:35:51 2011 for ROOT_528-00b_version by  doxygen 1.5.1