00001 #ifndef __EDG_WORKLOAD_LOGGING_JOB__ 00002 #define __EDG_WORKLOAD_LOGGING_JOB__ 00003 00004 #ident "$Header: /local/reps/lcgware/workload/logging/client/Job.h,v 1.17 2003/02/03 11:05:45 ljocha Exp $" 00005 00006 #include "edg/workload/common/jobid/JobId.h" 00007 #include "edg/workload/logging/client/Event.h" 00008 #include "edg/workload/logging/client/JobStatus.h" 00009 #include "edg/workload/logging/client/ServerConnection.h" 00010 00011 00017 EWL_BEGIN_NAMESPACE; 00018 00024 class Job { 00025 public: 00026 Job(void); 00027 Job(const edg::workload::common::jobid::JobId &); 00028 ~Job(); 00029 00034 Job & operator= (const edg::workload::common::jobid::JobId &); 00035 00040 static const int STAT_CLASSADS; 00041 static const int STAT_CHILDREN; 00042 static const int STAT_CHILDSTAT; 00045 JobStatus status(int) const; 00046 00048 void log(std::vector<Event> &) const; 00049 const std::vector<Event> log(void) const; 00050 00055 const std::pair<std::string,uint16_t> queryListener(const std::string & name) const; 00056 00057 private: 00058 ServerConnection server; 00059 edg::workload::common::jobid::JobId jobId; 00060 }; 00061 00062 EWL_END_NAMESPACE; 00063 00064 #endif