Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TDSetProxy.cxx
Go to the documentation of this file.
1// @(#)root/proof:$Id$
2// Author: Maarten Ballintijn 12/03/02
3
4/*************************************************************************
5 * Copyright (C) 1995-2001, 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//////////////////////////////////////////////////////////////////////////
13// //
14// TDSetProxy //
15// //
16// TDSet proxy for use on slaves. //
17// //
18//////////////////////////////////////////////////////////////////////////
19
20#include "TDSetProxy.h"
21#include "TProofServ.h"
22
23
25
26////////////////////////////////////////////////////////////////////////////////
27/// Constructor
28
30{
31 fServ = 0;
32}
33
34////////////////////////////////////////////////////////////////////////////////
35/// Constructor
36
37TDSetProxy::TDSetProxy(const char *type, const char *objname, const char *dir)
38 : TDSet(type,objname,dir)
39{
40 fServ = 0;
41 fCurrent = 0;
42}
43
44////////////////////////////////////////////////////////////////////////////////
45/// Set the reference TProofServ instance
46
48{
49 fServ = serv;
50 fCurrent = 0;
51}
52
53////////////////////////////////////////////////////////////////////////////////
54/// Reset this instance
55
57{
58 delete fCurrent; fCurrent = 0;
59}
60
61////////////////////////////////////////////////////////////////////////////////
62/// Get the next packet
63
65{
66 fCurrent = fServ->GetNextPacket(totalEntries);
67
68 // Check log file length (before processing the next packet, so we have the
69 // chance to keep the latest logs)
71
72 return fCurrent;
73}
long long Long64_t
Definition RtypesCore.h:73
#define ClassImp(name)
Definition Rtypes.h:364
int type
Definition TGX11.cxx:121
Manages an element of a TDSet.
Definition TDSet.h:66
void SetProofServ(TProofServ *serv)
Set the reference TProofServ instance.
void Reset()
Reset this instance.
TDSetElement * Next(Long64_t totalEntries=-1)
Get the next packet.
TDSetProxy()
Constructor.
TProofServ * fServ
Definition TDSetProxy.h:32
This class implements a data set to be used for PROOF processing.
Definition TDSet.h:153
TDSetElement * fCurrent
iterator on fElements
Definition TDSet.h:182
Class providing the PROOF server.
Definition TProofServ.h:66
void TruncateLogFile()
Truncate the log file to the 80% of the required max size if this is set.
TDSetElement * GetNextPacket(Long64_t totalEntries=-1)
Get next range of entries to be processed on this server.