getProof.C File Reference

#include "Bytes.h"
#include "Getline.h"
#include "TEnv.h"
#include "TProof.h"
#include "TSocket.h"
#include "TString.h"
#include "TSystem.h"

Go to the source code of this file.

Classes

struct  clnt_HS_t
struct  srv_HS_t

Functions

Int_t getXrootdPid (Int_t port, const char *subdir="xpdtut")
Int_t checkXrootdAt (Int_t port, const char *host="localhost")
Int_t checkXproofdAt (Int_t port, const char *host="localhost")
Int_t startXrootdAt (Int_t port, const char *exportdirs=0, Bool_t force=kFALSE)
Int_t killXrootdAt (Int_t port, const char *id=0)
TProofgetProof (const char *url="proof://localhost:40000", Int_t nwrks=-1, const char *dir=0, const char *opt="ask", Bool_t dyn=kFALSE, Bool_t tutords=kFALSE)

Variables

const char * refloc = "proof://localhost:40000"


Function Documentation

Int_t checkXproofdAt ( Int_t  port,
const char *  host = "localhost" 
)

Definition at line 436 of file getProof.C.

References gDebug, host2net(), int, len, srv_HS_t::msglen, srv_HS_t::msgval, net2host(), Printf(), srv_HS_t::protover, s, and type.

Referenced by getProof().

Int_t checkXrootdAt ( Int_t  port,
const char *  host = "localhost" 
)

Definition at line 375 of file getProof.C.

References gDebug, host2net(), len, net2host(), Printf(), s, and type.

Referenced by runProof(), and startXrootdAt().

TProof* getProof ( const char *  url = "proof://localhost:40000",
Int_t  nwrks = -1,
const char *  dir = 0,
const char *  opt = "ask",
Bool_t  dyn = kFALSE,
Bool_t  tutords = kFALSE 
)

Definition at line 40 of file getProof.C.

References TSystem::AccessPathName(), TProof::AddEnvVar(), checkXproofdAt(), TString::Data(), dir(), TString::EndsWith(), TSystem::Exec(), fclose(), fopen, TString::Form(), Form(), fprintf(), UserGroup_t::fUser, gEnv, TSystem::Getenv(), Getline(), TSystem::GetUid(), TSystem::GetUserInfo(), getXrootdPid(), gSystem, TSystem::HostName(), TString::IsNull(), kExecutePermission, kFALSE, kTRUE, kWritePermission, TSystem::mkdir(), TProof::Open(), p, Printf(), refloc, s, TEnv::SetValue(), TSystem::Sleep(), t, TSystem::TempDirectory(), u, and TSystem::Which().

Int_t getXrootdPid ( Int_t  port,
const char *  subdir = "xpdtut" 
)

Definition at line 339 of file getProof.C.

References TSystem::ClosePipe(), TString::Data(), TString::Form(), fp, gSystem, line, TSystem::OpenPipe(), and Printf().

Referenced by getProof(), killXrootdAt(), and startXrootdAt().

Int_t killXrootdAt ( Int_t  port,
const char *  id = 0 
)

Definition at line 594 of file getProof.C.

References TSystem::Exec(), Form(), getXrootdPid(), gSystem, and Printf().

Referenced by stressProof().

Int_t startXrootdAt ( Int_t  port,
const char *  exportdirs = 0,
Bool_t  force = kFALSE 
)

Definition at line 504 of file getProof.C.

References TSystem::AccessPathName(), checkXrootdAt(), d, TString::Data(), dirs(), TSystem::Exec(), TString::Form(), Form(), Getline(), getXrootdPid(), gSystem, kFALSE, kTRUE, TSystem::mkdir(), Printf(), and TSystem::Sleep().

Referenced by runProof().


Variable Documentation

const char* refloc = "proof://localhost:40000"

Definition at line 38 of file getProof.C.

Referenced by getProof().


Generated on Tue Jul 5 16:09:36 2011 for ROOT_528-00b_version by  doxygen 1.5.1