ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/BossPython/BossSession.py
Revision: 1.18
Committed: Thu Mar 8 11:06:25 2007 UTC (18 years, 1 month ago) by gcodispo
Content type: text/x-python
Branch: MAIN
Changes since 1.17: +17 -3 lines
Log Message:
Added query jobs by taskName and jobName

File Contents

# Content
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
3 # This file is compatible with both classic and new-style classes.
4 import _BossSession
5 def _swig_setattr(self,class_type,name,value):
6 if (name == "this"):
7 if isinstance(value, class_type):
8 self.__dict__[name] = value.this
9 if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
10 del value.thisown
11 return
12 method = class_type.__swig_setmethods__.get(name,None)
13 if method: return method(self,value)
14 self.__dict__[name] = value
15
16 def _swig_getattr(self,class_type,name):
17 method = class_type.__swig_getmethods__.get(name,None)
18 if method: return method(self)
19 raise AttributeError,name
20
21 import types
22 try:
23 _object = types.ObjectType
24 _newclass = 1
25 except AttributeError:
26 class _object : pass
27 _newclass = 0
28
29
30 class objectMap(_object):
31 __swig_setmethods__ = {}
32 __setattr__ = lambda self, name, value: _swig_setattr(self, objectMap, name, value)
33 __swig_getmethods__ = {}
34 __getattr__ = lambda self, name: _swig_getattr(self, objectMap, name)
35 def __init__(self,*args):
36 _swig_setattr(self, objectMap, 'this', apply(_BossSession.new_objectMap,args))
37 _swig_setattr(self, objectMap, 'thisown', 1)
38 def __len__(*args): return apply(_BossSession.objectMap___len__,args)
39 def clear(*args): return apply(_BossSession.objectMap_clear,args)
40 def __nonzero__(*args): return apply(_BossSession.objectMap___nonzero__,args)
41 def __getitem__(*args): return apply(_BossSession.objectMap___getitem__,args)
42 def __setitem__(*args): return apply(_BossSession.objectMap___setitem__,args)
43 def __delitem__(*args): return apply(_BossSession.objectMap___delitem__,args)
44 def has_key(*args): return apply(_BossSession.objectMap_has_key,args)
45 def keys(*args): return apply(_BossSession.objectMap_keys,args)
46 def values(*args): return apply(_BossSession.objectMap_values,args)
47 def items(*args): return apply(_BossSession.objectMap_items,args)
48 def __contains__(*args): return apply(_BossSession.objectMap___contains__,args)
49 def __iter__(*args): return apply(_BossSession.objectMap___iter__,args)
50 def __del__(self, destroy= _BossSession.delete_objectMap):
51 try:
52 if self.thisown: destroy(self)
53 except: pass
54 def __repr__(self):
55 return "<C objectMap instance at %s>" % (self.this,)
56
57 class objectMapPtr(objectMap):
58 def __init__(self,this):
59 _swig_setattr(self, objectMap, 'this', this)
60 if not hasattr(self,"thisown"): _swig_setattr(self, objectMap, 'thisown', 0)
61 _swig_setattr(self, objectMap,self.__class__,objectMap)
62 _BossSession.objectMap_swigregister(objectMapPtr)
63
64 class vector_string(_object):
65 __swig_setmethods__ = {}
66 __setattr__ = lambda self, name, value: _swig_setattr(self, vector_string, name, value)
67 __swig_getmethods__ = {}
68 __getattr__ = lambda self, name: _swig_getattr(self, vector_string, name)
69 def __init__(self,*args):
70 _swig_setattr(self, vector_string, 'this', apply(_BossSession.new_vector_string,args))
71 _swig_setattr(self, vector_string, 'thisown', 1)
72 def __len__(*args): return apply(_BossSession.vector_string___len__,args)
73 def __nonzero__(*args): return apply(_BossSession.vector_string___nonzero__,args)
74 def clear(*args): return apply(_BossSession.vector_string_clear,args)
75 def append(*args): return apply(_BossSession.vector_string_append,args)
76 def pop(*args): return apply(_BossSession.vector_string_pop,args)
77 def __getitem__(*args): return apply(_BossSession.vector_string___getitem__,args)
78 def __getslice__(*args): return apply(_BossSession.vector_string___getslice__,args)
79 def __setitem__(*args): return apply(_BossSession.vector_string___setitem__,args)
80 def __setslice__(*args): return apply(_BossSession.vector_string___setslice__,args)
81 def __delitem__(*args): return apply(_BossSession.vector_string___delitem__,args)
82 def __delslice__(*args): return apply(_BossSession.vector_string___delslice__,args)
83 def __del__(self, destroy= _BossSession.delete_vector_string):
84 try:
85 if self.thisown: destroy(self)
86 except: pass
87 def __repr__(self):
88 return "<C vector_string instance at %s>" % (self.this,)
89
90 class vector_stringPtr(vector_string):
91 def __init__(self,this):
92 _swig_setattr(self, vector_string, 'this', this)
93 if not hasattr(self,"thisown"): _swig_setattr(self, vector_string, 'thisown', 0)
94 _swig_setattr(self, vector_string,self.__class__,vector_string)
95 _BossSession.vector_string_swigregister(vector_stringPtr)
96
97 RUNNING = _BossSession.RUNNING
98 SCHEDULED = _BossSession.SCHEDULED
99 SUBMITTED = _BossSession.SUBMITTED
100 ALL = _BossSession.ALL
101 STATUS_ONLY = _BossSession.STATUS_ONLY
102 NORMAL = _BossSession.NORMAL
103 SPECIFIC = _BossSession.SPECIFIC
104 PROGRAMS = _BossSession.PROGRAMS
105 FULL = _BossSession.FULL
106 class BossSession(_object):
107 __swig_setmethods__ = {}
108 __setattr__ = lambda self, name, value: _swig_setattr(self, BossSession, name, value)
109 __swig_getmethods__ = {}
110 __getattr__ = lambda self, name: _swig_getattr(self, BossSession, name)
111 def __init__(self,*args):
112 _swig_setattr(self, BossSession, 'this', apply(_BossSession.new_BossSession,args))
113 _swig_setattr(self, BossSession, 'thisown', 1)
114 def __del__(self, destroy= _BossSession.delete_BossSession):
115 try:
116 if self.thisown: destroy(self)
117 except: pass
118 def resetDB(*args): return apply(_BossSession.BossSession_resetDB,args)
119 def clear(*args): return apply(_BossSession.BossSession_clear,args)
120 def makeBossTask(*args): return apply(_BossSession.BossSession_makeBossTask,args)
121 def destroyBossTask(*args): return apply(_BossSession.BossSession_destroyBossTask,args)
122 def showCHTools(*args): return apply(_BossSession.BossSession_showCHTools,args)
123 def showProgramTypes(*args): return apply(_BossSession.BossSession_showProgramTypes,args)
124 def showRTMon(*args): return apply(_BossSession.BossSession_showRTMon,args)
125 def showSchedulers(*args): return apply(_BossSession.BossSession_showSchedulers,args)
126 def defaultCHTool(*args): return apply(_BossSession.BossSession_defaultCHTool,args)
127 def defaultProgramType(*args): return apply(_BossSession.BossSession_defaultProgramType,args)
128 def defaultRTMon(*args): return apply(_BossSession.BossSession_defaultRTMon,args)
129 def defaultScheduler(*args): return apply(_BossSession.BossSession_defaultScheduler,args)
130 def version(*args): return apply(_BossSession.BossSession_version,args)
131 def clientID(*args): return apply(_BossSession.BossSession_clientID,args)
132 def showConfigs(*args): return apply(_BossSession.BossSession_showConfigs,args)
133 def RTupdate(*args): return apply(_BossSession.BossSession_RTupdate,args)
134 def listMatch(*args): return apply(_BossSession.BossSession_listMatch,args)
135 def schedulerQuery(*args): return apply(_BossSession.BossSession_schedulerQuery,args)
136 def selectTasks(*args): return apply(_BossSession.BossSession_selectTasks,args)
137 def selectTasksByName(*args): return apply(_BossSession.BossSession_selectTasksByName,args)
138 def query(*args): return apply(_BossSession.BossSession_query,args)
139 def getTasksByName(*args): return apply(_BossSession.BossSession_getTasksByName,args)
140 def show(*args): return apply(_BossSession.BossSession_show,args)
141 def CHTools(*args): return apply(_BossSession.BossSession_CHTools,args)
142 def ProgramTypes(*args): return apply(_BossSession.BossSession_ProgramTypes,args)
143 def RTMons(*args): return apply(_BossSession.BossSession_RTMons,args)
144 def schedulers(*args): return apply(_BossSession.BossSession_schedulers,args)
145 def schedListMatch(*args): return apply(_BossSession.BossSession_schedListMatch,args)
146 def queryTasks(*args): return apply(_BossSession.BossSession_queryTasks,args)
147 def query( self, filter_opt = SCHEDULED,
148 taskRange = "all",
149 jobRange = "all",
150 subn = "",
151 type = "",
152 user = "",
153 after = "",
154 before = "",
155 timeout = 0,
156 avoidCheck = 0):
157 if avoidCheck > 0 :
158 self.schedulerQuery ( filter_opt, taskRange, jobRange, subn, type, user, after, before, timeout )
159 my = self.queryTasks("",taskRange, after, before, user )
160 ciao = {}
161 for i in my:
162 ciao[i] = self.makeBossTask(i)
163 ciao[i].query(filter_opt, jobRange, subn, type, user, after, before, 0, 1)
164 return ciao
165
166
167 def queryByName( self, taskName ):
168 my = self.queryTasks(taskName)
169 ciao = {}
170 for i in my:
171 ciao[i] = self.makeBossTask(i)
172 ciao[i].load(ALL)
173 return ciao
174
175
176 def __repr__(self):
177 return "<C BossSession instance at %s>" % (self.this,)
178
179 class BossSessionPtr(BossSession):
180 def __init__(self,this):
181 _swig_setattr(self, BossSession, 'this', this)
182 if not hasattr(self,"thisown"): _swig_setattr(self, BossSession, 'thisown', 0)
183 _swig_setattr(self, BossSession,self.__class__,BossSession)
184 _BossSession.BossSession_swigregister(BossSessionPtr)
185
186 class BossTaskException(_object):
187 __swig_setmethods__ = {}
188 __setattr__ = lambda self, name, value: _swig_setattr(self, BossTaskException, name, value)
189 __swig_getmethods__ = {}
190 __getattr__ = lambda self, name: _swig_getattr(self, BossTaskException, name)
191 __swig_setmethods__["key"] = _BossSession.BossTaskException_key_set
192 __swig_getmethods__["key"] = _BossSession.BossTaskException_key_get
193 if _newclass:key = property(_BossSession.BossTaskException_key_get,_BossSession.BossTaskException_key_set)
194 def __init__(self,*args):
195 _swig_setattr(self, BossTaskException, 'this', apply(_BossSession.new_BossTaskException,args))
196 _swig_setattr(self, BossTaskException, 'thisown', 1)
197 def what(*args): return apply(_BossSession.BossTaskException_what,args)
198 def __del__(self, destroy= _BossSession.delete_BossTaskException):
199 try:
200 if self.thisown: destroy(self)
201 except: pass
202 def __repr__(self):
203 return "<C BossTaskException instance at %s>" % (self.this,)
204
205 class BossTaskExceptionPtr(BossTaskException):
206 def __init__(self,this):
207 _swig_setattr(self, BossTaskException, 'this', this)
208 if not hasattr(self,"thisown"): _swig_setattr(self, BossTaskException, 'thisown', 0)
209 _swig_setattr(self, BossTaskException,self.__class__,BossTaskException)
210 _BossSession.BossTaskException_swigregister(BossTaskExceptionPtr)
211
212 class BossTask(_object):
213 __swig_setmethods__ = {}
214 __setattr__ = lambda self, name, value: _swig_setattr(self, BossTask, name, value)
215 __swig_getmethods__ = {}
216 __getattr__ = lambda self, name: _swig_getattr(self, BossTask, name)
217 def __del__(self, destroy= _BossSession.delete_BossTask):
218 try:
219 if self.thisown: destroy(self)
220 except: pass
221 def __init__(self,*args):
222 _swig_setattr(self, BossTask, 'this', apply(_BossSession.new_BossTask,args))
223 _swig_setattr(self, BossTask, 'thisown', 1)
224 def id(*args): return apply(_BossSession.BossTask_id,args)
225 def name(*args): return apply(_BossSession.BossTask_name,args)
226 def taskMap(*args): return apply(_BossSession.BossTask_taskMap,args)
227 def job_begin(*args): return apply(_BossSession.BossTask_job_begin,args)
228 def job_end(*args): return apply(_BossSession.BossTask_job_end,args)
229 def jobsMap(*args): return apply(_BossSession.BossTask_jobsMap,args)
230 def jobMap(*args): return apply(_BossSession.BossTask_jobMap,args)
231 def programsMap(*args): return apply(_BossSession.BossTask_programsMap,args)
232 def queryJobPrograms(*args): return apply(_BossSession.BossTask_queryJobPrograms,args)
233 def declare(*args): return apply(_BossSession.BossTask_declare,args)
234 def remove(*args): return apply(_BossSession.BossTask_remove,args)
235 def archive(*args): return apply(_BossSession.BossTask_archive,args)
236 def submit(*args): return apply(_BossSession.BossTask_submit,args)
237 def reSubmit(*args): return apply(_BossSession.BossTask_reSubmit,args)
238 def kill(*args): return apply(_BossSession.BossTask_kill,args)
239 def getOutput(*args): return apply(_BossSession.BossTask_getOutput,args)
240 def loadByName(*args): return apply(_BossSession.BossTask_loadByName,args)
241 def load(*args): return apply(_BossSession.BossTask_load,args)
242 def query(*args): return apply(_BossSession.BossTask_query,args)
243 def query_out(*args): return apply(_BossSession.BossTask_query_out,args)
244 def clear(*args): return apply(_BossSession.BossTask_clear,args)
245 def appendToPyDict(*args): return apply(_BossSession.BossTask_appendToPyDict,args)
246 def jobDict(*args): return apply(_BossSession.BossTask_jobDict,args)
247 def jobsDict(*args): return apply(_BossSession.BossTask_jobsDict,args)
248 def progDict(*args): return apply(_BossSession.BossTask_progDict,args)
249 def jobPrograms(*args): return apply(_BossSession.BossTask_jobPrograms,args)
250 def __repr__(self):
251 return "<C BossTask instance at %s>" % (self.this,)
252
253 class BossTaskPtr(BossTask):
254 def __init__(self,this):
255 _swig_setattr(self, BossTask, 'this', this)
256 if not hasattr(self,"thisown"): _swig_setattr(self, BossTask, 'thisown', 0)
257 _swig_setattr(self, BossTask,self.__class__,BossTask)
258 _BossSession.BossTask_swigregister(BossTaskPtr)
259
260 class BossAdministratorSession(_object):
261 __swig_setmethods__ = {}
262 __setattr__ = lambda self, name, value: _swig_setattr(self, BossAdministratorSession, name, value)
263 __swig_getmethods__ = {}
264 __getattr__ = lambda self, name: _swig_getattr(self, BossAdministratorSession, name)
265 def __init__(self,*args):
266 _swig_setattr(self, BossAdministratorSession, 'this', apply(_BossSession.new_BossAdministratorSession,args))
267 _swig_setattr(self, BossAdministratorSession, 'thisown', 1)
268 def __del__(self, destroy= _BossSession.delete_BossAdministratorSession):
269 try:
270 if self.thisown: destroy(self)
271 except: pass
272 def configureDB(*args): return apply(_BossSession.BossAdministratorSession_configureDB,args)
273 def configureRTMonDB(*args): return apply(_BossSession.BossAdministratorSession_configureRTMonDB,args)
274 def deleteCHTool(*args): return apply(_BossSession.BossAdministratorSession_deleteCHTool,args)
275 def deleteProgramType(*args): return apply(_BossSession.BossAdministratorSession_deleteProgramType,args)
276 def deleteRTMon(*args): return apply(_BossSession.BossAdministratorSession_deleteRTMon,args)
277 def deleteScheduler(*args): return apply(_BossSession.BossAdministratorSession_deleteScheduler,args)
278 def registerCHTool(*args): return apply(_BossSession.BossAdministratorSession_registerCHTool,args)
279 def registerProgram(*args): return apply(_BossSession.BossAdministratorSession_registerProgram,args)
280 def registerRTMon(*args): return apply(_BossSession.BossAdministratorSession_registerRTMon,args)
281 def registerScheduler(*args): return apply(_BossSession.BossAdministratorSession_registerScheduler,args)
282 def help(*args): return apply(_BossSession.BossAdministratorSession_help,args)
283 def SQL(*args): return apply(_BossSession.BossAdministratorSession_SQL,args)
284 def purge(*args): return apply(_BossSession.BossAdministratorSession_purge,args)
285 def registerPlugins(*args): return apply(_BossSession.BossAdministratorSession_registerPlugins,args)
286 def __repr__(self):
287 return "<C BossAdministratorSession instance at %s>" % (self.this,)
288
289 class BossAdministratorSessionPtr(BossAdministratorSession):
290 def __init__(self,this):
291 _swig_setattr(self, BossAdministratorSession, 'this', this)
292 if not hasattr(self,"thisown"): _swig_setattr(self, BossAdministratorSession, 'thisown', 0)
293 _swig_setattr(self, BossAdministratorSession,self.__class__,BossAdministratorSession)
294 _BossSession.BossAdministratorSession_swigregister(BossAdministratorSessionPtr)
295
296