Logo ROOT  
Reference Guide
TAlienJobStatus.h
Go to the documentation of this file.
1// @(#)root/alien:$Id$
2// Author: Jan Fiete Grosse-Oetringhaus 06/10/2004
3
4/*************************************************************************
5 * Copyright (C) 1995-2004, 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_TAlienJobStatus
13#define ROOT_TAlienJobStatus
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// TAlienJobStatus //
18// //
19// Alien implementation of TGridJobStatus. //
20// //
21//////////////////////////////////////////////////////////////////////////
22
23#include "TGridJobStatus.h"
24#include "TMap.h"
25
26class TAlienJob;
27class TAlienMasterJob;
28
29
31
32friend class TAlienJob;
33friend class TAlienMasterJob;
34
35private:
36 TMap fStatus; // Contains the status information of the job.
37 // In the Alien implementation this is a string, string map.
38 TString fJdlTag; // JdlTag
39
40 void ClearSetStatus(const char *status);
41
42public:
44 TAlienJobStatus(TMap *status);
45 virtual ~TAlienJobStatus();
46
47 const char *GetJdlKey(const char *key);
48 const char *GetKey(const char *key);
49
50 virtual EGridJobStatus GetStatus() const;
51 virtual void Print(Option_t *) const;
52
53 void PrintJob(Bool_t full = kTRUE) const;
54
55 Bool_t IsFolder() const { return kTRUE;}
56 void Browse(TBrowser *b);
57
58 ClassDef(TAlienJobStatus,1) // Alien implementation of TGridJobStatus
59};
60
61#endif
#define b(i)
Definition: RSha256.hxx:100
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kTRUE
Definition: RtypesCore.h:87
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:326
const char * GetJdlKey(const char *key)
Return the JDL key.
void PrintJob(Bool_t full=kTRUE) const
Prints this job.
const char * GetKey(const char *key)
Return a key.
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
virtual void Print(Option_t *) const
Prints the job information.
virtual EGridJobStatus GetStatus() const
Gets the status of the job reduced to the subset defined in TGridJobStatus.
void Browse(TBrowser *b)
Browser interface to ob status.
void ClearSetStatus(const char *status)
virtual ~TAlienJobStatus()
Cleanup.
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition: TMap.h:40
Basic string class.
Definition: TString.h:131