TJAlienJobStatus.h 1.63 KB
Newer Older
Nikola Hardi's avatar
Nikola Hardi committed
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
/*
 * TJAlienJobStatus.h
 *
 *  Created on: Sep 4, 2014
 *      Author: Tatianka Tothova
 */

#ifndef ROOT_TJAlienJobStatus
#define ROOT_TJAlienJobStatus

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TJAlienJobStatus                                                      //
//                                                                      //
// JAliEn implementation of TGridJobStatus.                              //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGridJobStatus
#include "TGridJobStatus.h"
#endif
#ifndef ROOT_TMap
#include "TMap.h"
#endif

26
27
class TJAlienJob;
class TJAlienMasterJob;
28

Nikola Hardi's avatar
Nikola Hardi committed
29
30
class TJAlienJobStatus : public TGridJobStatus {

31
32
friend class TJAlienJob;
friend class TJAlienMasterJob;
33

Nikola Hardi's avatar
Nikola Hardi committed
34
private:
35
36
37
    TMap fStatus;     // Contains the status information of the job.
                      // In the Alien implementation this is a string, string map.
    TString fJdlTag;  // JdlTag
Nikola Hardi's avatar
Nikola Hardi committed
38
39

public:
40
41
42
    TJAlienJobStatus() {};
    TJAlienJobStatus(TMap *status);
    virtual ~TJAlienJobStatus();
Nikola Hardi's avatar
Nikola Hardi committed
43

44
45
    const char *GetJdlKey(const char *key);
    const char *GetKey(const char *key);
Nikola Hardi's avatar
Nikola Hardi committed
46

47
48
49
50
51
52
53
54
    virtual TGridJobStatus::EGridJobStatus GetStatus() const;
    virtual void Print(Option_t *) const;
    virtual void PrintJob(Bool_t full) const;
    
    Bool_t IsFolder() const { return kTRUE;}
    void Browse(TBrowser *b);

    ClassDef(TJAlienJobStatus,1)  // JAliEn implementation of TGridJobStatus
Nikola Hardi's avatar
Nikola Hardi committed
55
56
57
};

#endif /* ROOT_TJAlienJobStatus */