31#include "RConfigure.h"
55 const char *fmt, va_list va)
const
65 const char *workdir,
const char *msd,
Int_t) :
TSlave()
90 cmd.
Form(
". %s/worker-%s.env; export ROOTBINDIR=\"%s\"; %s/proofserv proofslave lite %d %d 0&",
95 Error(
"Init",
"an error occured while executing 'proofserv'");
113 Error(
"SetupServ",
"failed to receive slave startup message");
129 Error(
"SetupServ",
"failed to receive unique session tag");
171 const char *sst[] = {
"invalid" ,
"valid",
"inactive" };
void ErrorHandler(int level, const char *location, const char *fmt, std::va_list va)
General error handler function. It calls the user set error handler.
const Int_t kPROOF_Protocol
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
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.
void Close(Option_t *opt="") override
Close slave socket.
void DoError(int level, const char *location, const char *fmt, va_list va) const override
Interface to ErrorHandler (protected).
void Print(Option_t *option="") const override
Printf info about slave.
~TSlaveLite() override
Destroy slave.
Int_t SetupServ(Int_t stype, const char *conffile) override
Init a PROOF slave object.
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.