00001 #ifndef __EDG_WORKLOAD_LOGGING_CLIENT_JOB_HPP__
00002 #define __EDG_WORKLOAD_LOGGING_CLIENT_JOB_HPP__
00003
00004 #ident "$Header: /cvs/glite/org.glite.lb.client-interface/interface/Attic/Job.h,v 1.5.22.1 2010/03/16 09:12:22 zsustr Exp $"
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "glite/wmsutils/jobid/JobId.h"
00024
00025 #include "glite/lb/Event.h"
00026 #include "glite/lb/JobStatus.h"
00027 #include "glite/lb/ServerConnection.h"
00028
00029
00035 EWL_BEGIN_NAMESPACE
00036
00050 class Job {
00051 public:
00056 Job(void);
00057
00065 Job(const glite::wmsutils::jobid::JobId &jobid);
00066
00067
00072 ~Job();
00073
00083 Job & operator= (const glite::wmsutils::jobid::JobId &jobid);
00084
00085
00086
00087
00088
00089 static const int STAT_CLASSADS;
00092 static const int STAT_CHILDREN;
00095 static const int STAT_CHILDSTAT;
00108 JobStatus status(int flags) const;
00109
00118 void log(std::vector<Event> &events) const;
00119
00128 const std::vector<Event> log(void) const;
00129
00139 const std::pair<std::string,uint16_t> queryListener(const std::string &name) const;
00140
00149 void setParam(edg_wll_ContextParam ctx, int val);
00150
00159 void setParam(edg_wll_ContextParam ctx, const std::string val);
00160
00169 void setParam(edg_wll_ContextParam ctx, const struct timeval &val);
00170
00179 int getParamInt(edg_wll_ContextParam ctx) const;
00180
00189 std::string getParamString(edg_wll_ContextParam ctx) const;
00190
00199 struct timeval getParamTime(edg_wll_ContextParam ctx) const;
00200
00201 private:
00202 ServerConnection server;
00203 glite::wmsutils::jobid::JobId jobId;
00204 };
00205
00206 EWL_END_NAMESPACE
00207
00208 #endif