ROOT  6.06/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 #ifndef ROOT_TSlave
26 #include "TSlave.h"
27 #endif
28 
29 class TObjString;
30 class TSocket;
31 class TSignalHandler;
32 
33 class TSlaveLite : public TSlave {
34 
35 friend class TProof;
36 
37 private:
39  TSignalHandler *fIntHandler; //interrupt signal handler (ctrl-c)
40 
41  void Init();
42 
43 public:
44  TSlaveLite(const char *ord, Int_t perf,
45  const char *image, TProof *proof, Int_t stype,
46  const char *workdir, const char *msd, Int_t = 1);
47  virtual ~TSlaveLite();
48 
49  void Close(Option_t *opt = "");
50  void DoError(int level, const char *location, const char *fmt,
51  va_list va) const;
52 
53  void Print(Option_t *option="") const;
54  Int_t SetupServ(Int_t stype, const char *conffile);
55 
56  ClassDef(TSlaveLite, 0) //PROOF lite worker server
57 };
58 
59 #endif
void Close(Option_t *opt="")
Close slave socket.
Definition: TSlaveLite.cxx:152
const char Int_t const char TProof Int_t const char const char * msd
Definition: TXSlave.cxx:46
Collectable string class.
Definition: TObjString.h:32
const char Option_t
Definition: RtypesCore.h:62
const char Int_t perf
Definition: TXSlave.cxx:46
Bool_t fValid
Definition: TSlaveLite.h:38
Int_t SetupServ(Int_t stype, const char *conffile)
Init a PROOF slave object.
Definition: TSlaveLite.cxx:102
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:254
const char Int_t const char TProof Int_t stype
Definition: TXSlave.cxx:46
const char * ord
Definition: TXSlave.cxx:46
void DoError(int level, const char *location, const char *fmt, va_list va) const
Interface to ErrorHandler (protected).
const char Int_t const char TProof Int_t const char * workdir
Definition: TXSlave.cxx:46
virtual ~TSlaveLite()
Destroy slave.
Definition: TSlaveLite.cxx:144
void Print(Option_t *option="") const
Printf info about slave.
Definition: TSlaveLite.cxx:165
Definition: TProof.h:339
TSignalHandler * fIntHandler
Definition: TSlaveLite.h:39
void Init()
Init a PROOF worker object. Called via the TSlaveLite ctor.
Definition: TSlaveLite.cxx:77
const char Int_t const char TProof * proof
Definition: TXSlave.cxx:46
Definition: TSlave.h:50
TSlaveLite(const char *ord, Int_t perf, const char *image, TProof *proof, Int_t stype, const char *workdir, const char *msd, Int_t=1)
const char Int_t const char * image
Definition: TXSlave.cxx:46