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 ErrorHandler(int level, const char *location, const char *fmt, va_list va)
General error handler function. It calls the user set error handler.
const Int_t kPROOF_Protocol
char * Form(const char *fmt,...)
void Printf(const char *fmt,...)
R__EXTERN TSystem * gSystem
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
@ kInvalidObject
if object ctor succeeded but object should not be used
This class controls a Parallel ROOT Facility, PROOF, cluster.
static const TString & GetBinDir()
Get the binary directory in the installation. Static utility function.
Version of TSlave for local worker servers.
Int_t SetupServ(Int_t stype, const char *conffile)
Init a PROOF slave object.
virtual ~TSlaveLite()
Destroy slave.
void Print(Option_t *option="") const
Printf info about slave.
void Close(Option_t *opt="")
Close slave socket.
void DoError(int level, const char *location, const char *fmt, va_list va) const
Interface to ErrorHandler (protected).
void Init()
Init a PROOF worker object. Called via the TSlaveLite ctor.
TSignalHandler * fIntHandler
Class describing a PROOF worker server.
const char * GetWorkDir() const
Float_t GetRealTime() const
Long64_t GetBytesRead() const
const char * GetSessionTag() const
const char * GetArchCompiler() const
const char * GetROOTVersion() const
Float_t GetCpuTime() const
UInt_t GetBytesRecv() const
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
UInt_t GetBytesSent() const
virtual void Close(Option_t *opt="")
Close the socket.
const char * Data() const
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
virtual int GetPid()
Get process id.
virtual Int_t Exec(const char *shellcmd)
Execute a command.
virtual const char * HostName()
Return the system's host name.