Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TSlaveLite.h
Go to the documentation of this file.
1 // @(#)root/proof:$Id$
2 // Author: G. Ganis Mar 2008
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_TSlaveLite
13 #define ROOT_TSlaveLite
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TSlaveLite //
19 // //
20 // This is the version of TSlave for local worker servers. //
21 // See TSlave for details. //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 #include "TSlave.h"
26 
27 class TObjString;
28 class TSocket;
29 class TSignalHandler;
30 
31 class TSlaveLite : public TSlave {
32 
33 friend class TProof;
34 
35 private:
36  Bool_t fValid;
37  TSignalHandler *fIntHandler; //interrupt signal handler (ctrl-c)
38 
39  void Init();
40 
41 public:
42  TSlaveLite(const char *ord, Int_t perf,
43  const char *image, TProof *proof, Int_t stype,
44  const char *workdir, const char *msd, Int_t = 1);
45  virtual ~TSlaveLite();
46 
47  void Close(Option_t *opt = "");
48  void DoError(int level, const char *location, const char *fmt,
49  va_list va) const;
50 
51  void Print(Option_t *option="") const;
52  Int_t SetupServ(Int_t stype, const char *conffile);
53 
54  ClassDef(TSlaveLite, 0) //PROOF lite worker server
55 };
56 
57 #endif