31 #include "RConfigure.h" 56 const
char *fmt, va_list va)
const 66 const char *workdir,
const char *msd,
Int_t) :
TSlave()
91 cmd.
Form(
". %s/worker-%s.env; export ROOTBINDIR=\"%s\"; %s/proofserv proofslave lite %d %d 0&",
96 Error(
"Init",
"an error occured while executing 'proofserv'");
114 Error(
"SetupServ",
"failed to receive slave startup message");
130 Error(
"SetupServ",
"failed to receive unique session tag");
172 const char *sst[] = {
"invalid" ,
"valid",
"inactive" };
void Close(Option_t *opt="")
Close slave socket.
virtual int GetPid()
Get process id.
UInt_t GetBytesRecv() const
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
Float_t GetCpuTime() const
const char * GetROOTVersion() const
Int_t SetupServ(Int_t stype, const char *conffile)
Init a PROOF slave object.
Version of TSlave for local worker servers.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
const char * GetSessionTag() const
virtual void Close(Option_t *opt="")
Close the socket.
R__EXTERN TSystem * gSystem
UInt_t GetBytesSent() const
if object ctor succeeded but object should not be used
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
virtual ~TSlaveLite()
Destroy slave.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
char * Form(const char *fmt,...)
virtual Int_t Exec(const char *shellcmd)
Execute a command.
const Int_t kPROOF_Protocol
Float_t GetRealTime() const
virtual const char * HostName()
Return the system's host name.
This class controls a Parallel ROOT Facility, PROOF, cluster.
TSignalHandler * fIntHandler
void Init()
Init a PROOF worker object. Called via the TSlaveLite ctor.
const char * GetWorkDir() const
typedef void((*Func_t)())
const char * GetArchCompiler() const
void Print(Option_t *option="") const
Printf info about slave.
void ErrorHandler(int level, const char *location, const char *fmt, va_list va)
General error handler function. It calls the user set error handler.
static const TString & GetBinDir()
Get the binary directory in the installation. Static utility function.
Class describing a PROOF worker server.
Long64_t GetBytesRead() const
TSlaveLite(const char *ord, Int_t perf, const char *image, TProof *proof, Int_t stype, const char *workdir, const char *msd, Int_t=1)
Create a PROOF slave object. Called via the TProof ctor.
const char * Data() const