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/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 Copyright (c) Members of the EGEE Collaboration. 2004-2010.
00007 See http://www.eu-egee.org/partners for details on the copyright holders.
00008 
00009 Licensed under the Apache License, Version 2.0 (the "License");
00010 you may not use this file except in compliance with the License.
00011 You may obtain a copy of the License at
00012 
00013     http://www.apache.org/licenses/LICENSE-2.0
00014 
00015 Unless required by applicable law or agreed to in writing, software
00016 distributed under the License is distributed on an "AS IS" BASIS,
00017 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00018 See the License for the specific language governing permissions and
00019 limitations under the License.
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          * Status retrieval bitmasks. Used ORed as Job::status() argument,
00087          * determine which status fields are actually retrieved.
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

Generated on Fri Aug 20 13:06:41 2010 for Glite LB Client: CPP - Interface by  doxygen 1.3.9.1