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:80
#define ClassImp(name)
Definition Rtypes.h:377
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
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.