ROOT  6.06/09
Reference Guide
TProofServLite.h
Go to the documentation of this file.
1 // @(#)root/proofx:$Id$
2 // Author: G. Ganis Oct 2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TProofServLite
13 #define ROOT_TProofServLite
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TProofServLite //
18 // //
19 // TProofServLite is the version of the PROOF worker server for local //
20 // running. The client starts directly the desired number of these //
21 // workers; the master and daemons are eliminated, optimizing the number//
22 // of messages exchanged and created / destroyed. //
23 // //
24 //////////////////////////////////////////////////////////////////////////
25 
26 #ifndef ROOT_TProofServ
27 #include "TProofServ.h"
28 #endif
29 
30 class TProofServLiteInterruptHandler;
31 
32 class TProofServLite : public TProofServ {
33 
34 private:
35  TProofServLiteInterruptHandler *fInterruptHandler;
36  TString fSockPath; // unix socket path
37 
38  Bool_t fTerminated; //true if Terminate() has been already called
39 
40  Int_t Setup();
41  Int_t SetupOnFork(const char *ord);
42 
43 public:
44  TProofServLite(Int_t *argc, char **argv, FILE *flog = 0);
45  virtual ~TProofServLite();
46 
48 
49  void HandleFork(TMessage *mess);
50 
51  //void HandleUrgentData();
52  void HandleSigPipe();
53  void HandleTermination();
54 
55  void Terminate(Int_t status);
56 
57  ClassDef(TProofServLite,0) //PROOF-Lite Server Application Interface
58 };
59 
60 #endif
void HandleSigPipe()
Called when the client is not alive anymore; terminate the session.
Int_t Setup()
Print the ProofServ logo on standard output.
Basic string class.
Definition: TString.h:137
TAlienJobStatus * status
Definition: TAlienJob.cxx:51
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Int_t CreateServer()
Finalize the server setup.
#define ClassDef(name, id)
Definition: Rtypes.h:254
const char * ord
Definition: TXSlave.cxx:46
TString flog
Definition: pq2main.cxx:37
Int_t SetupOnFork(const char *ord)
Finalize the server setup afetr forking.
TProofServLite(Int_t *argc, char **argv, FILE *flog=0)
Main constructor.
TProofServLiteInterruptHandler * fInterruptHandler
void HandleFork(TMessage *mess)
Cloning itself via fork.
virtual ~TProofServLite()
Cleanup.
void Terminate(Int_t status)
Terminate the proof server.
void HandleTermination()
Called when the client is not alive anymore; terminate the session.