Logo ROOT   6.10/09
Reference Guide
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:
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
void Close(Option_t *opt="")
Close slave socket.
Definition: TSlaveLite.cxx:157
Collectable string class.
Definition: TObjString.h:28
const char Option_t
Definition: RtypesCore.h:62
Bool_t fValid
Definition: TSlaveLite.h:36
Int_t SetupServ(Int_t stype, const char *conffile)
Init a PROOF slave object.
Definition: TSlaveLite.cxx:107
Version of TSlave for local worker servers.
Definition: TSlaveLite.h:31
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:297
void DoError(int level, const char *location, const char *fmt, va_list va) const
Interface to ErrorHandler (protected).
Definition: TSlaveLite.cxx:55
virtual ~TSlaveLite()
Destroy slave.
Definition: TSlaveLite.cxx:149
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition: TProof.h:320
TSignalHandler * fIntHandler
Definition: TSlaveLite.h:37
void Init()
Init a PROOF worker object. Called via the TSlaveLite ctor.
Definition: TSlaveLite.cxx:87
void Print(Option_t *option="") const
Printf info about slave.
Definition: TSlaveLite.cxx:170
Class describing a PROOF worker server.
Definition: TSlave.h:46
TSlaveLite(const char *ord, Int_t perf, const char *image, TProof *proof, Int_t stype, const char *workdir, const char *msd, Int_t=1)
Create a PROOF slave object. Called via the TProof ctor.
Definition: TSlaveLite.cxx:64