00001 // @(#)root/alien:$Id: TAlienJobStatus.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Jan Fiete Grosse-Oetringhaus 06/10/2004 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TAlienJobStatus 00013 #define ROOT_TAlienJobStatus 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TAlienJobStatus // 00018 // // 00019 // Alien implementation of TGridJobStatus. // 00020 // // 00021 ////////////////////////////////////////////////////////////////////////// 00022 00023 #ifndef ROOT_TGridJobStatus 00024 #include "TGridJobStatus.h" 00025 #endif 00026 #ifndef ROOT_TMap 00027 #include "TMap.h" 00028 #endif 00029 00030 class TAlienJob; 00031 class TAlienMasterJob; 00032 00033 00034 class TAlienJobStatus : public TGridJobStatus { 00035 00036 friend class TAlienJob; 00037 friend class TAlienMasterJob; 00038 00039 private: 00040 TMap fStatus; // Contains the status information of the job. 00041 // In the Alien implementation this is a string, string map. 00042 TString fJdlTag; // JdlTag 00043 00044 void ClearSetStatus(const char *status); 00045 00046 public: 00047 TAlienJobStatus() { } 00048 TAlienJobStatus(TMap *status); 00049 virtual ~TAlienJobStatus(); 00050 00051 const char *GetJdlKey(const char *key); 00052 const char *GetKey(const char *key); 00053 00054 virtual EGridJobStatus GetStatus() const; 00055 virtual void Print(Option_t *) const; 00056 00057 void PrintJob(Bool_t full = kTRUE) const; 00058 00059 Bool_t IsFolder() const { return kTRUE;} 00060 void Browse(TBrowser *b); 00061 00062 ClassDef(TAlienJobStatus,1) // Alien implementation of TGridJobStatus 00063 }; 00064 00065 #endif