31 #include "RConfigure.h"
56 const
char *fmt, va_list va)
const
66 const char *workdir,
const char *msd,
Int_t) :
TSlave()
92 cmd.
Form(
". %s/worker-%s.env; export ROOTBINDIR=\"%s\"; %s/proofserv proofslave lite %d %d 0&",
95 cmd.
Form(
". %s/worker-%s.env; export ROOTBINDIR=\"%s/bin\"; %s/bin/proofserv proofslave lite %d %d 0&",
101 Error(
"Init",
"an error occured while executing 'proofserv'");
119 Error(
"SetupServ",
"failed to receive slave startup message");
135 Error(
"SetupServ",
"failed to receive unique session tag");
177 const char *sst[] = {
"invalid" ,
"valid",
"inactive" };
void Close(Option_t *opt="")
Close slave socket.
virtual int GetPid()
Get process id.
const char Int_t const char TProof Int_t const char const char * msd
Float_t GetCpuTime() const
const char * GetSessionTag() const
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
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.
UInt_t GetBytesSent() const
UInt_t GetBytesRecv() const
const char * Data() const
const char * GetROOTVersion() const
virtual const char * Getenv(const char *env)
Get environment variable.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
const char * GetWorkDir() const
const char Int_t const char TProof Int_t const char * workdir
virtual void Close(Option_t *opt="")
Close the socket.
R__EXTERN TSystem * gSystem
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
virtual ~TSlaveLite()
Destroy slave.
char * Form(const char *fmt,...)
virtual Int_t Exec(const char *shellcmd)
Execute a command.
const Int_t kPROOF_Protocol
virtual const char * HostName()
Return the system's host name.
void Print(Option_t *option="") const
Printf info about slave.
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 Int_t const char TProof * proof
typedef void((*Func_t)())
void ErrorHandler(int level, const char *location, const char *fmt, va_list va)
General error handler function. It calls the user set error handler.
const char * GetArchCompiler() const
Class describing a PROOF worker server.
Float_t GetRealTime() 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)
Long64_t GetBytesRead() const
const char Int_t const char * image