Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#include "TProofServ.h"
27
29
30class TProofServLite : public TProofServ {
31
32private:
34 TString fSockPath; // unix socket path
35
36 Bool_t fTerminated; //true if Terminate() has been already called
37
38 Int_t Setup() override;
39 Int_t SetupOnFork(const char *ord);
40
41public:
42 TProofServLite(Int_t *argc, char **argv, FILE *flog = 0);
43 ~TProofServLite() override;
44
45 Int_t CreateServer() override;
46
47 void HandleFork(TMessage *mess) override;
48
49 //void HandleUrgentData();
50 void HandleSigPipe() override;
51 void HandleTermination() override;
52
53 void Terminate(Int_t status) override;
54
55 ClassDefOverride(TProofServLite,0) //PROOF-Lite Server Application Interface
56};
57
58#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Version of the PROOF worker server for local running.
void HandleSigPipe() override
Called when the client is not alive anymore; terminate the session.
~TProofServLite() override
Cleanup.
Int_t Setup() override
Print the ProofServ logo on standard output.
TProofServLiteInterruptHandler * fInterruptHandler
Int_t SetupOnFork(const char *ord)
Finalize the server setup afetr forking.
void HandleFork(TMessage *mess) override
Cloning itself via fork.
void HandleTermination() override
Called when the client is not alive anymore; terminate the session.
void Terminate(Int_t status) override
Terminate the proof server.
Int_t CreateServer() override
Finalize the server setup.
Class providing the PROOF server.
Definition TProofServ.h:66
friend class TProofServLite
Definition TProofServ.h:68
Basic string class.
Definition TString.h:139