TProofServ


class description - source file - inheritance tree

class TProofServ : public TApplication

    private:
void RedirectOutput() void Setup() public:
TProofServ TProofServ(int* argc, char** argv) TProofServ TProofServ(TProofServ&) virtual void ~TProofServ() Bool_t Active() TClass* Class() TObject* Get(char* namecycle) const char* GetConfDir() Float_t GetCpuTime() Stat_t GetEntriesProcessed() Int_t GetGroupId() Int_t GetGroupSize() void GetLimits(Int_t dim, Int_t nentries, Int_t* nbins, Float_t* vmin, Float_t* vmax) Int_t GetLogLevel() Bool_t GetNextPacket(Int_t& nentries, Stat_t& firstentry) virtual void GetOptions(int* argc, char** argv) Int_t GetOrdinal() Int_t GetProtocol() Float_t GetRealTime() const char* GetService() TSocket* GetSocket() const char* GetUser() const char* GetVersion() void HandleSocketInput() void HandleUrgentData() void Interrupt() virtual TClass* IsA() Bool_t IsMaster() virtual void Print(Option_t* option) void Reset(char* dir) virtual void Run(Bool_t retrn = kFALSE) void SendLogFile() void SendStatus() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) virtual void Terminate(int status)

Data Members

private:
TString fService service we are running, either "proofserv" or "proofslave" TString fUser user as which we run TString fUserPass encoded user and passwd info for slaves TString fVersion proof server major version TString fConfDir directory containing cluster config information TString fLogDir directory containing log files TSocket* fSocket socket connection to client FILE* fLogFile log file Int_t fProtocol protocol level Int_t fMasterPid pid of master server Int_t fOrdinal slaves (i.e. our) ordinal number, -1 for master Int_t fGroupId our unique id in the active slave group Int_t fGroupSize size of the active slave group Int_t fLogLevel debug logging level Bool_t fMasterServ true if we are a master server Int_t fNcmd command history number Bool_t fInterrupt if true macro execution will be stopped Float_t fRealTime real time spent executing commands Float_t fCpuTime CPU time spent executing commands Stat_t fEntriesProcessed total number of entries processed (obtained via GetNextPacket)

Class Description

                                                                      
 TProofServ                                                           
                                                                      
 TProofServ is the PROOF server. It can act either as the master      
 server or as a slave server, depending on its startup arguments. It  
 receives and handles message coming from the client or from the      
 master server.                                                       
                                                                      


TProofServ(int *argc, char **argv) : TApplication("proofserv", argc, argv)
 Create an application environment. The TProofServ environment provides
 an eventloop via inheritance of TApplication.

~TProofServ()
 Cleanup. Not really necessary since after this dtor there is no
 live anyway.

TObject* Get(const char *namecycle)
 Get object with name "name;cycle" (e.g. "aap;2") from master or client.
 This method is called by TDirectory::Get() in case the object can not
 be found locally.

void GetLimits(Int_t dim, Int_t nentries, Int_t *nbins, Float_t *vmin, Float_t *vmax)
 Get limits of histogram from master. This method is called by
 TTree::TakeEstimate().

Bool_t GetNextPacket(Int_t &nentries, Stat_t &firstentry)
 Get next range of entries to be processed on this server.

void GetOptions(int *argc, char **argv)
 Get and handle command line options.

void HandleSocketInput()
 Handle input coming from the client or from the master server.

void HandleUrgentData()
 Handle Out-Of-Band data sent by the master or client.

void Print(Option_t *)
 Print status of slave server.

void RedirectOutput()
 Redirect stdout to a log file. This log file will be flushed to the
 client or master after each command.

void Reset(const char *dir)
 Reset PROOF environment to be ready for execution of next command.

void Run(Bool_t retrn)
 Main server eventloop.

void SendLogFile()
 Send log file to master.

void SendStatus()
 Send status of slave server to master or client.

void Setup()
 Print the ProofServ logo on standard output.

void Terminate(int status)
 Terminate the proof server.

Bool_t Active()
 Static function that returns kTRUE in case we are a PROOF server.



Inline Functions


        const char* GetService()
        const char* GetConfDir()
        const char* GetUser()
        const char* GetVersion()
              Int_t GetProtocol()
              Int_t GetOrdinal()
              Int_t GetGroupId()
              Int_t GetGroupSize()
              Int_t GetLogLevel()
           TSocket* GetSocket()
            Float_t GetRealTime()
            Float_t GetCpuTime()
               void Interrupt()
             Bool_t IsMaster()
             Stat_t GetEntriesProcessed()
            TClass* Class()
            TClass* IsA()
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
         TProofServ TProofServ(TProofServ&)


Author: Fons Rademakers 16/02/97
Last update: 2.22/01 26/04/99 11.56.30 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.