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.18 2004/06/14 16:09:39 dhsmith 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 00058 void setParam(edg_wll_ContextParam, int); 00059 void setParam(edg_wll_ContextParam, const std::string); 00060 void setParam(edg_wll_ContextParam, const struct timeval &); 00061 00062 int getParamInt(edg_wll_ContextParam) const; 00063 std::string getParamString(edg_wll_ContextParam) const; 00064 struct timeval getParamTime(edg_wll_ContextParam) const; 00065 00066 private: 00067 ServerConnection server; 00068 edg::workload::common::jobid::JobId jobId; 00069 }; 00070 00071 EWL_END_NAMESPACE; 00072 00073 #endif