forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TXProofServ.h
73 lines (54 loc) · 2.5 KB
/
TXProofServ.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// @(#)root/proofx:$Id$
// Author: G. Ganis Oct 2005
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TXProofServ
#define ROOT_TXProofServ
//////////////////////////////////////////////////////////////////////////
// //
// TXProofServ //
// //
// TXProofServ is the XRD version of the PROOF server. It differs from //
// TProofServ only for the underlying connection technology //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TProofServ
#include "TProofServ.h"
#endif
#ifndef ROOT_TXHandler
#include "TXHandler.h"
#endif
class TXProofServInterruptHandler;
class TXSocketHandler;
class TXProofServ : public TProofServ, public TXHandler {
private:
TXProofServInterruptHandler *fInterruptHandler;
TXSocketHandler *fInputHandler;
TString fSockPath;
Bool_t fTerminated; //true if Terminate() has been already called
Int_t LockSession(const char *sessiontag, TProofLockPath **lck);
Int_t Setup();
public:
TXProofServ(Int_t *argc, char **argv, FILE *flog = 0);
virtual ~TXProofServ();
Int_t CreateServer();
// Disable / Enable read timeout
void DisableTimeout();
void EnableTimeout();
EQueryAction GetWorkers(TList *workers, Int_t &prioritychange,
Bool_t resume = kFALSE);
Bool_t HandleError(const void *in = 0); // Error Handler
Bool_t HandleInput(const void *in = 0); // Input handler
void HandleUrgentData();
void HandleSigPipe();
void HandleTermination();
void ReleaseWorker(const char *ord);
void Terminate(Int_t status);
ClassDef(TXProofServ,0) //XRD PROOF Server Application Interface
};
#endif