Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members

Job.h

Go to the documentation of this file.
00001 #ifndef __EDG_WORKLOAD_LOGGING_CLIENT_JOB_HPP__
00002 #define __EDG_WORKLOAD_LOGGING_CLIENT_JOB_HPP__
00003 
00004 #ident "$Header: /cvs/jra1mw/org.glite.lb.client-interface/interface/Job.h,v 1.5 2005/08/03 09:30:10 akrenek Exp $"
00005 
00006 #include "glite/wmsutils/jobid/JobId.h"
00007 
00008 #include "glite/lb/Event.h"
00009 #include "glite/lb/JobStatus.h"
00010 #include "glite/lb/ServerConnection.h"
00011 
00012 
00018 EWL_BEGIN_NAMESPACE
00019 
00033 class Job {
00034 public:
00039         Job(void);
00040         
00048         Job(const glite::wmsutils::jobid::JobId &jobid);
00049 
00050 
00055         ~Job();
00056   
00066         Job & operator= (const glite::wmsutils::jobid::JobId &jobid);
00067 
00068         /*
00069          * Status retrieval bitmasks. Used ORed as Job::status() argument,
00070          * determine which status fields are actually retrieved.
00071          */
00072         static const int STAT_CLASSADS;       
00075         static const int STAT_CHILDREN;       
00078         static const int STAT_CHILDSTAT;      
00091         JobStatus status(int flags) const;
00092   
00101         void log(std::vector<Event> &events) const;
00102 
00111         const std::vector<Event> log(void) const;
00112   
00122         const std::pair<std::string,uint16_t> queryListener(const std::string &name) const;
00123   
00132         void setParam(edg_wll_ContextParam ctx, int val); 
00133 
00142         void setParam(edg_wll_ContextParam ctx, const std::string val); 
00143 
00152         void setParam(edg_wll_ContextParam ctx, const struct timeval &val); 
00153 
00162         int getParamInt(edg_wll_ContextParam ctx) const;
00163 
00172         std::string getParamString(edg_wll_ContextParam ctx) const;
00173 
00182         struct timeval getParamTime(edg_wll_ContextParam ctx) const;
00183   
00184 private:
00185   ServerConnection      server;
00186   glite::wmsutils::jobid::JobId                 jobId;
00187 };
00188 
00189 EWL_END_NAMESPACE
00190 
00191 #endif

Generated on Thu May 11 20:44:16 2006 for Glite LB Client: CPP - Interface by doxygen 1.3.5