[324] | 1 | # This file was automatically generated by SWIG (http://www.swig.org). |
---|
| 2 | # Version 2.0.7 |
---|
| 3 | # |
---|
| 4 | # Do not make changes to this file unless you know what you are doing--modify |
---|
| 5 | # the SWIG interface file instead. |
---|
| 6 | |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | from sys import version_info |
---|
| 10 | if version_info >= (2,6,0): |
---|
| 11 | def swig_import_helper(): |
---|
| 12 | from os.path import dirname |
---|
| 13 | import imp |
---|
| 14 | fp = None |
---|
| 15 | try: |
---|
| 16 | fp, pathname, description = imp.find_module('_pbs', [dirname(__file__)]) |
---|
| 17 | except ImportError: |
---|
| 18 | import _pbs |
---|
| 19 | return _pbs |
---|
| 20 | if fp is not None: |
---|
| 21 | try: |
---|
| 22 | _mod = imp.load_module('_pbs', fp, pathname, description) |
---|
| 23 | finally: |
---|
| 24 | fp.close() |
---|
| 25 | return _mod |
---|
| 26 | _pbs = swig_import_helper() |
---|
| 27 | del swig_import_helper |
---|
| 28 | else: |
---|
| 29 | import _pbs |
---|
| 30 | del version_info |
---|
| 31 | try: |
---|
| 32 | _swig_property = property |
---|
| 33 | except NameError: |
---|
| 34 | pass # Python < 2.2 doesn't have 'property'. |
---|
| 35 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1): |
---|
| 36 | if (name == "thisown"): return self.this.own(value) |
---|
| 37 | if (name == "this"): |
---|
| 38 | if type(value).__name__ == 'SwigPyObject': |
---|
| 39 | self.__dict__[name] = value |
---|
| 40 | return |
---|
| 41 | method = class_type.__swig_setmethods__.get(name,None) |
---|
| 42 | if method: return method(self,value) |
---|
| 43 | if (not static): |
---|
| 44 | self.__dict__[name] = value |
---|
| 45 | else: |
---|
| 46 | raise AttributeError("You cannot add attributes to %s" % self) |
---|
| 47 | |
---|
| 48 | def _swig_setattr(self,class_type,name,value): |
---|
| 49 | return _swig_setattr_nondynamic(self,class_type,name,value,0) |
---|
| 50 | |
---|
| 51 | def _swig_getattr(self,class_type,name): |
---|
| 52 | if (name == "thisown"): return self.this.own() |
---|
| 53 | method = class_type.__swig_getmethods__.get(name,None) |
---|
| 54 | if method: return method(self) |
---|
| 55 | raise AttributeError(name) |
---|
| 56 | |
---|
| 57 | def _swig_repr(self): |
---|
| 58 | try: strthis = "proxy of " + self.this.__repr__() |
---|
| 59 | except: strthis = "" |
---|
| 60 | return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) |
---|
| 61 | |
---|
| 62 | try: |
---|
| 63 | _object = object |
---|
| 64 | _newclass = 1 |
---|
| 65 | except AttributeError: |
---|
| 66 | class _object : pass |
---|
| 67 | _newclass = 0 |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | def new_attrl(*args): |
---|
| 72 | return _pbs.new_attrl(*args) |
---|
| 73 | new_attrl = _pbs.new_attrl |
---|
| 74 | |
---|
| 75 | def new_attropl(*args): |
---|
| 76 | return _pbs.new_attropl(*args) |
---|
| 77 | new_attropl = _pbs.new_attropl |
---|
| 78 | |
---|
| 79 | def new_batch_status(): |
---|
| 80 | return _pbs.new_batch_status() |
---|
| 81 | new_batch_status = _pbs.new_batch_status |
---|
| 82 | |
---|
| 83 | def get_error(): |
---|
| 84 | return _pbs.get_error() |
---|
| 85 | get_error = _pbs.get_error |
---|
| 86 | class attrlArray(_object): |
---|
| 87 | __swig_setmethods__ = {} |
---|
| 88 | __setattr__ = lambda self, name, value: _swig_setattr(self, attrlArray, name, value) |
---|
| 89 | __swig_getmethods__ = {} |
---|
| 90 | __getattr__ = lambda self, name: _swig_getattr(self, attrlArray, name) |
---|
| 91 | __repr__ = _swig_repr |
---|
| 92 | def __init__(self, *args): |
---|
| 93 | this = _pbs.new_attrlArray(*args) |
---|
| 94 | try: self.this.append(this) |
---|
| 95 | except: self.this = this |
---|
| 96 | __swig_destroy__ = _pbs.delete_attrlArray |
---|
| 97 | __del__ = lambda self : None; |
---|
| 98 | def __getitem__(self, *args): return _pbs.attrlArray___getitem__(self, *args) |
---|
| 99 | def __setitem__(self, *args): return _pbs.attrlArray___setitem__(self, *args) |
---|
| 100 | def cast(self): return _pbs.attrlArray_cast(self) |
---|
| 101 | __swig_getmethods__["frompointer"] = lambda x: _pbs.attrlArray_frompointer |
---|
| 102 | if _newclass:frompointer = staticmethod(_pbs.attrlArray_frompointer) |
---|
| 103 | attrlArray_swigregister = _pbs.attrlArray_swigregister |
---|
| 104 | attrlArray_swigregister(attrlArray) |
---|
| 105 | |
---|
| 106 | def attrlArray_frompointer(*args): |
---|
| 107 | return _pbs.attrlArray_frompointer(*args) |
---|
| 108 | attrlArray_frompointer = _pbs.attrlArray_frompointer |
---|
| 109 | |
---|
| 110 | ATTR_a = _pbs.ATTR_a |
---|
| 111 | ATTR_c = _pbs.ATTR_c |
---|
| 112 | ATTR_e = _pbs.ATTR_e |
---|
| 113 | ATTR_f = _pbs.ATTR_f |
---|
| 114 | ATTR_g = _pbs.ATTR_g |
---|
| 115 | ATTR_h = _pbs.ATTR_h |
---|
| 116 | ATTR_j = _pbs.ATTR_j |
---|
| 117 | ATTR_k = _pbs.ATTR_k |
---|
| 118 | ATTR_l = _pbs.ATTR_l |
---|
| 119 | ATTR_m = _pbs.ATTR_m |
---|
| 120 | ATTR_o = _pbs.ATTR_o |
---|
| 121 | ATTR_p = _pbs.ATTR_p |
---|
| 122 | ATTR_q = _pbs.ATTR_q |
---|
| 123 | ATTR_r = _pbs.ATTR_r |
---|
| 124 | ATTR_t = _pbs.ATTR_t |
---|
| 125 | ATTR_array_id = _pbs.ATTR_array_id |
---|
| 126 | ATTR_u = _pbs.ATTR_u |
---|
| 127 | ATTR_v = _pbs.ATTR_v |
---|
| 128 | ATTR_A = _pbs.ATTR_A |
---|
| 129 | ATTR_args = _pbs.ATTR_args |
---|
| 130 | ATTR_reservation_id = _pbs.ATTR_reservation_id |
---|
| 131 | ATTR_login_node_id = _pbs.ATTR_login_node_id |
---|
| 132 | ATTR_login_prop = _pbs.ATTR_login_prop |
---|
| 133 | ATTR_external_nodes = _pbs.ATTR_external_nodes |
---|
| 134 | ATTR_multi_req_alps = _pbs.ATTR_multi_req_alps |
---|
| 135 | ATTR_M = _pbs.ATTR_M |
---|
| 136 | ATTR_N = _pbs.ATTR_N |
---|
| 137 | ATTR_S = _pbs.ATTR_S |
---|
| 138 | ATTR_depend = _pbs.ATTR_depend |
---|
| 139 | ATTR_inter = _pbs.ATTR_inter |
---|
| 140 | ATTR_stagein = _pbs.ATTR_stagein |
---|
| 141 | ATTR_stageout = _pbs.ATTR_stageout |
---|
| 142 | ATTR_jobtype = _pbs.ATTR_jobtype |
---|
| 143 | ATTR_submit_host = _pbs.ATTR_submit_host |
---|
| 144 | ATTR_init_work_dir = _pbs.ATTR_init_work_dir |
---|
| 145 | ATTR_pbs_o_initdir = _pbs.ATTR_pbs_o_initdir |
---|
| 146 | ATTR_pbs_o_rootdir = _pbs.ATTR_pbs_o_rootdir |
---|
| 147 | ATTR_pbs_o_workdir = _pbs.ATTR_pbs_o_workdir |
---|
| 148 | ATTR_pbs_o_host = _pbs.ATTR_pbs_o_host |
---|
| 149 | ATTR_pbs_o_server = _pbs.ATTR_pbs_o_server |
---|
| 150 | ATTR_pbs_o_home = _pbs.ATTR_pbs_o_home |
---|
| 151 | ATTR_pbs_o_logname = _pbs.ATTR_pbs_o_logname |
---|
| 152 | ATTR_pbs_o_path = _pbs.ATTR_pbs_o_path |
---|
| 153 | ATTR_pbs_o_mail = _pbs.ATTR_pbs_o_mail |
---|
| 154 | ATTR_pbs_o_shell = _pbs.ATTR_pbs_o_shell |
---|
| 155 | ATTR_pbs_o_tz = _pbs.ATTR_pbs_o_tz |
---|
| 156 | ATTR_pbs_o_lang = _pbs.ATTR_pbs_o_lang |
---|
| 157 | ATTR_pbs_o_uid = _pbs.ATTR_pbs_o_uid |
---|
| 158 | ATTR_pbs_o_submit_filter = _pbs.ATTR_pbs_o_submit_filter |
---|
| 159 | ATTR_ctime = _pbs.ATTR_ctime |
---|
| 160 | ATTR_exechost = _pbs.ATTR_exechost |
---|
| 161 | ATTR_execport = _pbs.ATTR_execport |
---|
| 162 | ATTR_mtime = _pbs.ATTR_mtime |
---|
| 163 | ATTR_qtime = _pbs.ATTR_qtime |
---|
| 164 | ATTR_session = _pbs.ATTR_session |
---|
| 165 | ATTR_euser = _pbs.ATTR_euser |
---|
| 166 | ATTR_egroup = _pbs.ATTR_egroup |
---|
| 167 | ATTR_hashname = _pbs.ATTR_hashname |
---|
| 168 | ATTR_hopcount = _pbs.ATTR_hopcount |
---|
| 169 | ATTR_security = _pbs.ATTR_security |
---|
| 170 | ATTR_sched_hint = _pbs.ATTR_sched_hint |
---|
| 171 | ATTR_substate = _pbs.ATTR_substate |
---|
| 172 | ATTR_name = _pbs.ATTR_name |
---|
| 173 | ATTR_owner = _pbs.ATTR_owner |
---|
| 174 | ATTR_used = _pbs.ATTR_used |
---|
| 175 | ATTR_state = _pbs.ATTR_state |
---|
| 176 | ATTR_queue = _pbs.ATTR_queue |
---|
| 177 | ATTR_server = _pbs.ATTR_server |
---|
| 178 | ATTR_maxrun = _pbs.ATTR_maxrun |
---|
| 179 | ATTR_maxreport = _pbs.ATTR_maxreport |
---|
| 180 | ATTR_total = _pbs.ATTR_total |
---|
| 181 | ATTR_comment = _pbs.ATTR_comment |
---|
| 182 | ATTR_cookie = _pbs.ATTR_cookie |
---|
| 183 | ATTR_qrank = _pbs.ATTR_qrank |
---|
| 184 | ATTR_altid = _pbs.ATTR_altid |
---|
| 185 | ATTR_etime = _pbs.ATTR_etime |
---|
| 186 | ATTR_exitstat = _pbs.ATTR_exitstat |
---|
| 187 | ATTR_forwardx11 = _pbs.ATTR_forwardx11 |
---|
| 188 | ATTR_submit_args = _pbs.ATTR_submit_args |
---|
| 189 | ATTR_tokens = _pbs.ATTR_tokens |
---|
| 190 | ATTR_netcounter = _pbs.ATTR_netcounter |
---|
| 191 | ATTR_umask = _pbs.ATTR_umask |
---|
| 192 | ATTR_start_time = _pbs.ATTR_start_time |
---|
| 193 | ATTR_start_count = _pbs.ATTR_start_count |
---|
| 194 | ATTR_checkpoint_dir = _pbs.ATTR_checkpoint_dir |
---|
| 195 | ATTR_checkpoint_name = _pbs.ATTR_checkpoint_name |
---|
| 196 | ATTR_checkpoint_time = _pbs.ATTR_checkpoint_time |
---|
| 197 | ATTR_checkpoint_restart_status = _pbs.ATTR_checkpoint_restart_status |
---|
| 198 | ATTR_restart_name = _pbs.ATTR_restart_name |
---|
| 199 | ATTR_comp_time = _pbs.ATTR_comp_time |
---|
| 200 | ATTR_reported = _pbs.ATTR_reported |
---|
| 201 | ATTR_intcmd = _pbs.ATTR_intcmd |
---|
| 202 | ATTR_job_radix = _pbs.ATTR_job_radix |
---|
| 203 | ATTR_sister_list = _pbs.ATTR_sister_list |
---|
| 204 | ATTR_total_runtime = _pbs.ATTR_total_runtime |
---|
| 205 | ATTR_P = _pbs.ATTR_P |
---|
| 206 | ATTR_node_exclusive = _pbs.ATTR_node_exclusive |
---|
| 207 | ATTR_exec_gpus = _pbs.ATTR_exec_gpus |
---|
| 208 | ATTR_exec_mics = _pbs.ATTR_exec_mics |
---|
| 209 | ATTR_J = _pbs.ATTR_J |
---|
| 210 | ATTR_pagg = _pbs.ATTR_pagg |
---|
| 211 | ATTR_system_start_time = _pbs.ATTR_system_start_time |
---|
| 212 | ATTR_gpu_flags = _pbs.ATTR_gpu_flags |
---|
| 213 | ATTR_aclgren = _pbs.ATTR_aclgren |
---|
| 214 | ATTR_aclgroup = _pbs.ATTR_aclgroup |
---|
| 215 | ATTR_aclhten = _pbs.ATTR_aclhten |
---|
| 216 | ATTR_aclhost = _pbs.ATTR_aclhost |
---|
| 217 | ATTR_acluren = _pbs.ATTR_acluren |
---|
| 218 | ATTR_acluser = _pbs.ATTR_acluser |
---|
| 219 | ATTR_altrouter = _pbs.ATTR_altrouter |
---|
| 220 | ATTR_checkpoint_min = _pbs.ATTR_checkpoint_min |
---|
| 221 | ATTR_checkpoint_defaults = _pbs.ATTR_checkpoint_defaults |
---|
| 222 | ATTR_enable = _pbs.ATTR_enable |
---|
| 223 | ATTR_fromroute = _pbs.ATTR_fromroute |
---|
| 224 | ATTR_hostlist = _pbs.ATTR_hostlist |
---|
| 225 | ATTR_killdelay = _pbs.ATTR_killdelay |
---|
| 226 | ATTR_maxgrprun = _pbs.ATTR_maxgrprun |
---|
| 227 | ATTR_maxque = _pbs.ATTR_maxque |
---|
| 228 | ATTR_maxuserque = _pbs.ATTR_maxuserque |
---|
| 229 | ATTR_maxuserrun = _pbs.ATTR_maxuserrun |
---|
| 230 | ATTR_qtype = _pbs.ATTR_qtype |
---|
| 231 | ATTR_rescassn = _pbs.ATTR_rescassn |
---|
| 232 | ATTR_rescdflt = _pbs.ATTR_rescdflt |
---|
| 233 | ATTR_rescmax = _pbs.ATTR_rescmax |
---|
| 234 | ATTR_rescmin = _pbs.ATTR_rescmin |
---|
| 235 | ATTR_featreqd = _pbs.ATTR_featreqd |
---|
| 236 | ATTR_req_login_property = _pbs.ATTR_req_login_property |
---|
| 237 | ATTR_rerunnable = _pbs.ATTR_rerunnable |
---|
| 238 | ATTR_rndzretry = _pbs.ATTR_rndzretry |
---|
| 239 | ATTR_routedest = _pbs.ATTR_routedest |
---|
| 240 | ATTR_routeheld = _pbs.ATTR_routeheld |
---|
| 241 | ATTR_routewait = _pbs.ATTR_routewait |
---|
| 242 | ATTR_routeretry = _pbs.ATTR_routeretry |
---|
| 243 | ATTR_routelife = _pbs.ATTR_routelife |
---|
| 244 | ATTR_rsvexpdt = _pbs.ATTR_rsvexpdt |
---|
| 245 | ATTR_rsvsync = _pbs.ATTR_rsvsync |
---|
| 246 | ATTR_start = _pbs.ATTR_start |
---|
| 247 | ATTR_count = _pbs.ATTR_count |
---|
| 248 | ATTR_number = _pbs.ATTR_number |
---|
| 249 | ATTR_acllogic = _pbs.ATTR_acllogic |
---|
| 250 | ATTR_aclgrpslpy = _pbs.ATTR_aclgrpslpy |
---|
| 251 | ATTR_keepcompleted = _pbs.ATTR_keepcompleted |
---|
| 252 | ATTR_disallowedtypes = _pbs.ATTR_disallowedtypes |
---|
| 253 | ATTR_is_transit = _pbs.ATTR_is_transit |
---|
| 254 | ATTR_aclroot = _pbs.ATTR_aclroot |
---|
| 255 | ATTR_managers = _pbs.ATTR_managers |
---|
| 256 | ATTR_dfltque = _pbs.ATTR_dfltque |
---|
| 257 | ATTR_dispsvrsuffix = _pbs.ATTR_dispsvrsuffix |
---|
| 258 | ATTR_jobsuffixalias = _pbs.ATTR_jobsuffixalias |
---|
| 259 | ATTR_defnode = _pbs.ATTR_defnode |
---|
| 260 | ATTR_locsvrs = _pbs.ATTR_locsvrs |
---|
| 261 | ATTR_logevents = _pbs.ATTR_logevents |
---|
| 262 | ATTR_logfile = _pbs.ATTR_logfile |
---|
| 263 | ATTR_loglevel = _pbs.ATTR_loglevel |
---|
| 264 | ATTR_mailfrom = _pbs.ATTR_mailfrom |
---|
| 265 | ATTR_nodepack = _pbs.ATTR_nodepack |
---|
| 266 | ATTR_nodesuffix = _pbs.ATTR_nodesuffix |
---|
| 267 | ATTR_operators = _pbs.ATTR_operators |
---|
| 268 | ATTR_queryother = _pbs.ATTR_queryother |
---|
| 269 | ATTR_resccost = _pbs.ATTR_resccost |
---|
| 270 | ATTR_rescavail = _pbs.ATTR_rescavail |
---|
| 271 | ATTR_schedit = _pbs.ATTR_schedit |
---|
| 272 | ATTR_scheduling = _pbs.ATTR_scheduling |
---|
| 273 | ATTR_status = _pbs.ATTR_status |
---|
| 274 | ATTR_syscost = _pbs.ATTR_syscost |
---|
| 275 | ATTR_pingrate = _pbs.ATTR_pingrate |
---|
| 276 | ATTR_ndchkrate = _pbs.ATTR_ndchkrate |
---|
| 277 | ATTR_tcptimeout = _pbs.ATTR_tcptimeout |
---|
| 278 | ATTR_jobstatrate = _pbs.ATTR_jobstatrate |
---|
| 279 | ATTR_polljobs = _pbs.ATTR_polljobs |
---|
| 280 | ATTR_downonerror = _pbs.ATTR_downonerror |
---|
| 281 | ATTR_disableserveridcheck = _pbs.ATTR_disableserveridcheck |
---|
| 282 | ATTR_jobnanny = _pbs.ATTR_jobnanny |
---|
| 283 | ATTR_ownerpurge = _pbs.ATTR_ownerpurge |
---|
| 284 | ATTR_qcqlimits = _pbs.ATTR_qcqlimits |
---|
| 285 | ATTR_momjobsync = _pbs.ATTR_momjobsync |
---|
| 286 | ATTR_maildomain = _pbs.ATTR_maildomain |
---|
| 287 | ATTR_pbsversion = _pbs.ATTR_pbsversion |
---|
| 288 | ATTR_submithosts = _pbs.ATTR_submithosts |
---|
| 289 | ATTR_allownodesubmit = _pbs.ATTR_allownodesubmit |
---|
| 290 | ATTR_allowproxyuser = _pbs.ATTR_allowproxyuser |
---|
| 291 | ATTR_autonodenp = _pbs.ATTR_autonodenp |
---|
| 292 | ATTR_servername = _pbs.ATTR_servername |
---|
| 293 | ATTR_logfilemaxsize = _pbs.ATTR_logfilemaxsize |
---|
| 294 | ATTR_logfilerolldepth = _pbs.ATTR_logfilerolldepth |
---|
| 295 | ATTR_logkeepdays = _pbs.ATTR_logkeepdays |
---|
| 296 | ATTR_nextjobnum = _pbs.ATTR_nextjobnum |
---|
| 297 | ATTR_extraresc = _pbs.ATTR_extraresc |
---|
| 298 | ATTR_schedversion = _pbs.ATTR_schedversion |
---|
| 299 | ATTR_acctkeepdays = _pbs.ATTR_acctkeepdays |
---|
| 300 | ATTR_lockfile = _pbs.ATTR_lockfile |
---|
| 301 | ATTR_credentiallifetime = _pbs.ATTR_credentiallifetime |
---|
| 302 | ATTR_jobmustreport = _pbs.ATTR_jobmustreport |
---|
| 303 | ATTR_LockfileUpdateTime = _pbs.ATTR_LockfileUpdateTime |
---|
| 304 | ATTR_LockfileCheckTime = _pbs.ATTR_LockfileCheckTime |
---|
| 305 | ATTR_npdefault = _pbs.ATTR_npdefault |
---|
| 306 | ATTR_clonebatchsize = _pbs.ATTR_clonebatchsize |
---|
| 307 | ATTR_clonebatchdelay = _pbs.ATTR_clonebatchdelay |
---|
| 308 | ATTR_jobstarttimeout = _pbs.ATTR_jobstarttimeout |
---|
| 309 | ATTR_jobforcecanceltime = _pbs.ATTR_jobforcecanceltime |
---|
| 310 | ATTR_maxarraysize = _pbs.ATTR_maxarraysize |
---|
| 311 | ATTR_maxslotlimit = _pbs.ATTR_maxslotlimit |
---|
| 312 | ATTR_recordjobinfo = _pbs.ATTR_recordjobinfo |
---|
| 313 | ATTR_recordjobscript = _pbs.ATTR_recordjobscript |
---|
| 314 | ATTR_joblogfilemaxsize = _pbs.ATTR_joblogfilemaxsize |
---|
| 315 | ATTR_joblogfilerolldepth = _pbs.ATTR_joblogfilerolldepth |
---|
| 316 | ATTR_joblogkeepdays = _pbs.ATTR_joblogkeepdays |
---|
| 317 | ATTR_minthreads = _pbs.ATTR_minthreads |
---|
| 318 | ATTR_maxthreads = _pbs.ATTR_maxthreads |
---|
| 319 | ATTR_threadidleseconds = _pbs.ATTR_threadidleseconds |
---|
| 320 | ATTR_moabarraycompatible = _pbs.ATTR_moabarraycompatible |
---|
| 321 | ATTR_nomailforce = _pbs.ATTR_nomailforce |
---|
| 322 | ATTR_interactivejobscanroam = _pbs.ATTR_interactivejobscanroam |
---|
| 323 | ATTR_crayenabled = _pbs.ATTR_crayenabled |
---|
| 324 | ATTR_nppcu = _pbs.ATTR_nppcu |
---|
| 325 | ATTR_login_node_key = _pbs.ATTR_login_node_key |
---|
| 326 | ATTR_maxuserqueuable = _pbs.ATTR_maxuserqueuable |
---|
| 327 | ATTR_automaticrequeueexitcode = _pbs.ATTR_automaticrequeueexitcode |
---|
| 328 | ATTR_jobsynctimeout = _pbs.ATTR_jobsynctimeout |
---|
| 329 | ATTR_pass_cpu_clock = _pbs.ATTR_pass_cpu_clock |
---|
| 330 | ATTR_NODE_state = _pbs.ATTR_NODE_state |
---|
| 331 | ATTR_NODE_power_state = _pbs.ATTR_NODE_power_state |
---|
| 332 | ATTR_NODE_np = _pbs.ATTR_NODE_np |
---|
| 333 | ATTR_NODE_properties = _pbs.ATTR_NODE_properties |
---|
| 334 | ATTR_NODE_ntype = _pbs.ATTR_NODE_ntype |
---|
| 335 | ATTR_NODE_jobs = _pbs.ATTR_NODE_jobs |
---|
| 336 | ATTR_NODE_status = _pbs.ATTR_NODE_status |
---|
| 337 | ATTR_NODE_note = _pbs.ATTR_NODE_note |
---|
| 338 | ATTR_NODE_mom_port = _pbs.ATTR_NODE_mom_port |
---|
| 339 | ATTR_NODE_mom_rm_port = _pbs.ATTR_NODE_mom_rm_port |
---|
| 340 | ATTR_NODE_num_node_boards = _pbs.ATTR_NODE_num_node_boards |
---|
| 341 | ATTR_NODE_numa_str = _pbs.ATTR_NODE_numa_str |
---|
| 342 | ATTR_NODE_gpus = _pbs.ATTR_NODE_gpus |
---|
| 343 | ATTR_NODE_gpustatus = _pbs.ATTR_NODE_gpustatus |
---|
| 344 | ATTR_NODE_gpus_str = _pbs.ATTR_NODE_gpus_str |
---|
| 345 | ATTR_NODE_mics = _pbs.ATTR_NODE_mics |
---|
| 346 | ATTR_NODE_micstatus = _pbs.ATTR_NODE_micstatus |
---|
| 347 | ATTR_copy_on_rerun = _pbs.ATTR_copy_on_rerun |
---|
| 348 | ATTR_job_exclusive_on_use = _pbs.ATTR_job_exclusive_on_use |
---|
| 349 | ATTR_mailsubjectfmt = _pbs.ATTR_mailsubjectfmt |
---|
| 350 | ATTR_mailbodyfmt = _pbs.ATTR_mailbodyfmt |
---|
| 351 | CHECKPOINT_UNSPECIFIED = _pbs.CHECKPOINT_UNSPECIFIED |
---|
| 352 | NO_HOLD = _pbs.NO_HOLD |
---|
| 353 | NO_JOIN = _pbs.NO_JOIN |
---|
| 354 | NO_KEEP = _pbs.NO_KEEP |
---|
| 355 | MAIL_AT_ABORT = _pbs.MAIL_AT_ABORT |
---|
| 356 | DEFAULT_PRIORITY = _pbs.DEFAULT_PRIORITY |
---|
| 357 | ARRAY_RANGE = _pbs.ARRAY_RANGE |
---|
| 358 | DELDELAY = _pbs.DELDELAY |
---|
| 359 | DELPURGE = _pbs.DELPURGE |
---|
| 360 | DELASYNC = _pbs.DELASYNC |
---|
| 361 | PURGECOMP = _pbs.PURGECOMP |
---|
| 362 | EXECQUEONLY = _pbs.EXECQUEONLY |
---|
| 363 | RERUNFORCE = _pbs.RERUNFORCE |
---|
| 364 | USER_HOLD = _pbs.USER_HOLD |
---|
| 365 | OTHER_HOLD = _pbs.OTHER_HOLD |
---|
| 366 | SYSTEM_HOLD = _pbs.SYSTEM_HOLD |
---|
| 367 | ND_free = _pbs.ND_free |
---|
| 368 | ND_offline = _pbs.ND_offline |
---|
| 369 | ND_down = _pbs.ND_down |
---|
| 370 | ND_reserve = _pbs.ND_reserve |
---|
| 371 | ND_job_exclusive = _pbs.ND_job_exclusive |
---|
| 372 | ND_job_sharing = _pbs.ND_job_sharing |
---|
| 373 | ND_busy = _pbs.ND_busy |
---|
| 374 | ND_state_unknown = _pbs.ND_state_unknown |
---|
| 375 | ND_running = _pbs.ND_running |
---|
| 376 | ND_standby = _pbs.ND_standby |
---|
| 377 | ND_suspend = _pbs.ND_suspend |
---|
| 378 | ND_sleep = _pbs.ND_sleep |
---|
| 379 | ND_hibernate = _pbs.ND_hibernate |
---|
| 380 | ND_shutdown = _pbs.ND_shutdown |
---|
| 381 | ND_active = _pbs.ND_active |
---|
| 382 | ND_all = _pbs.ND_all |
---|
| 383 | ND_up = _pbs.ND_up |
---|
| 384 | ND_timeshared = _pbs.ND_timeshared |
---|
| 385 | ND_cluster = _pbs.ND_cluster |
---|
| 386 | Q_DT_batch = _pbs.Q_DT_batch |
---|
| 387 | Q_DT_interactive = _pbs.Q_DT_interactive |
---|
| 388 | Q_DT_rerunable = _pbs.Q_DT_rerunable |
---|
| 389 | Q_DT_nonrerunable = _pbs.Q_DT_nonrerunable |
---|
| 390 | Q_DT_fault_tolerant = _pbs.Q_DT_fault_tolerant |
---|
| 391 | Q_DT_fault_intolerant = _pbs.Q_DT_fault_intolerant |
---|
| 392 | Q_DT_job_array = _pbs.Q_DT_job_array |
---|
| 393 | MAX_ENCODE_BFR = _pbs.MAX_ENCODE_BFR |
---|
| 394 | MGR_CMD_CREATE = _pbs.MGR_CMD_CREATE |
---|
| 395 | MGR_CMD_DELETE = _pbs.MGR_CMD_DELETE |
---|
| 396 | MGR_CMD_SET = _pbs.MGR_CMD_SET |
---|
| 397 | MGR_CMD_UNSET = _pbs.MGR_CMD_UNSET |
---|
| 398 | MGR_CMD_LIST = _pbs.MGR_CMD_LIST |
---|
| 399 | MGR_CMD_PRINT = _pbs.MGR_CMD_PRINT |
---|
| 400 | MGR_CMD_ACTIVE = _pbs.MGR_CMD_ACTIVE |
---|
| 401 | MGR_OBJ_NONE = _pbs.MGR_OBJ_NONE |
---|
| 402 | MGR_OBJ_SERVER = _pbs.MGR_OBJ_SERVER |
---|
| 403 | MGR_OBJ_QUEUE = _pbs.MGR_OBJ_QUEUE |
---|
| 404 | MGR_OBJ_JOB = _pbs.MGR_OBJ_JOB |
---|
| 405 | MGR_OBJ_NODE = _pbs.MGR_OBJ_NODE |
---|
| 406 | MSG_OUT = _pbs.MSG_OUT |
---|
| 407 | MSG_ERR = _pbs.MSG_ERR |
---|
| 408 | SHUT_SIG = _pbs.SHUT_SIG |
---|
| 409 | SHUT_IMMEDIATE = _pbs.SHUT_IMMEDIATE |
---|
| 410 | SHUT_DELAY = _pbs.SHUT_DELAY |
---|
| 411 | SHUT_QUICK = _pbs.SHUT_QUICK |
---|
| 412 | SIG_RESUME = _pbs.SIG_RESUME |
---|
| 413 | SIG_SUSPEND = _pbs.SIG_SUSPEND |
---|
| 414 | PBS_MAXHOSTNAME = _pbs.PBS_MAXHOSTNAME |
---|
| 415 | MAXPATHLEN = _pbs.MAXPATHLEN |
---|
| 416 | MAXPORTLEN = _pbs.MAXPORTLEN |
---|
| 417 | MAXNAMLEN = _pbs.MAXNAMLEN |
---|
| 418 | MAX_NOTE = _pbs.MAX_NOTE |
---|
| 419 | MAX_NOTE_STR = _pbs.MAX_NOTE_STR |
---|
| 420 | PBS_MAXUSER = _pbs.PBS_MAXUSER |
---|
| 421 | PBS_MAXGRPN = _pbs.PBS_MAXGRPN |
---|
| 422 | PBS_MAXGPUID = _pbs.PBS_MAXGPUID |
---|
| 423 | PBS_MAXQUEUENAME = _pbs.PBS_MAXQUEUENAME |
---|
| 424 | PBS_MAXSERVERNAME = _pbs.PBS_MAXSERVERNAME |
---|
| 425 | PBS_MAXJOBARRAYLEN = _pbs.PBS_MAXJOBARRAYLEN |
---|
| 426 | PBS_MAXSEQNUM = _pbs.PBS_MAXSEQNUM |
---|
| 427 | PBS_MAXPORTNUM = _pbs.PBS_MAXPORTNUM |
---|
| 428 | PBS_MAXJOBARRAY = _pbs.PBS_MAXJOBARRAY |
---|
| 429 | PBS_MAXSVRJOBID = _pbs.PBS_MAXSVRJOBID |
---|
| 430 | PBS_MAXCLTJOBID = _pbs.PBS_MAXCLTJOBID |
---|
| 431 | PBS_MAXDEST = _pbs.PBS_MAXDEST |
---|
| 432 | PBS_MAXROUTEDEST = _pbs.PBS_MAXROUTEDEST |
---|
| 433 | PBS_USE_IFF = _pbs.PBS_USE_IFF |
---|
| 434 | PBS_INTERACTIVE = _pbs.PBS_INTERACTIVE |
---|
| 435 | PBS_TERM_BUF_SZ = _pbs.PBS_TERM_BUF_SZ |
---|
| 436 | PBS_TERM_CCA = _pbs.PBS_TERM_CCA |
---|
| 437 | PBS_MAXCREDENTIAL_LEN = _pbs.PBS_MAXCREDENTIAL_LEN |
---|
| 438 | PBS_QS_VERSION_BASE = _pbs.PBS_QS_VERSION_BASE |
---|
| 439 | PBS_QS_VERSION_INT = _pbs.PBS_QS_VERSION_INT |
---|
| 440 | PBS_QS_VERSION = _pbs.PBS_QS_VERSION |
---|
| 441 | PBS_BATCH_SERVICE_NAME = _pbs.PBS_BATCH_SERVICE_NAME |
---|
| 442 | PBS_BATCH_SERVICE_PORT = _pbs.PBS_BATCH_SERVICE_PORT |
---|
| 443 | PBS_BATCH_SERVICE_NAME_DIS = _pbs.PBS_BATCH_SERVICE_NAME_DIS |
---|
| 444 | PBS_MOM_SERVICE_NAME = _pbs.PBS_MOM_SERVICE_NAME |
---|
| 445 | PBS_MOM_SERVICE_PORT = _pbs.PBS_MOM_SERVICE_PORT |
---|
| 446 | PBS_MANAGER_SERVICE_NAME = _pbs.PBS_MANAGER_SERVICE_NAME |
---|
| 447 | PBS_MANAGER_SERVICE_PORT = _pbs.PBS_MANAGER_SERVICE_PORT |
---|
| 448 | PBS_SCHEDULER_SERVICE_NAME = _pbs.PBS_SCHEDULER_SERVICE_NAME |
---|
| 449 | PBS_SCHEDULER_SERVICE_PORT = _pbs.PBS_SCHEDULER_SERVICE_PORT |
---|
| 450 | TRQ_AUTHD_SERVICE_PORT = _pbs.TRQ_AUTHD_SERVICE_PORT |
---|
| 451 | CHECKPOINTHOLD = _pbs.CHECKPOINTHOLD |
---|
| 452 | CHECKPOINTCONT = _pbs.CHECKPOINTCONT |
---|
| 453 | MOM_DEFAULT_CHECKPOINT_DIR = _pbs.MOM_DEFAULT_CHECKPOINT_DIR |
---|
| 454 | NO_MOM_RELAY = _pbs.NO_MOM_RELAY |
---|
| 455 | SET = _pbs.SET |
---|
| 456 | UNSET = _pbs.UNSET |
---|
| 457 | INCR = _pbs.INCR |
---|
| 458 | DECR = _pbs.DECR |
---|
| 459 | EQ = _pbs.EQ |
---|
| 460 | NE = _pbs.NE |
---|
| 461 | GE = _pbs.GE |
---|
| 462 | GT = _pbs.GT |
---|
| 463 | LE = _pbs.LE |
---|
| 464 | LT = _pbs.LT |
---|
| 465 | DFLT = _pbs.DFLT |
---|
| 466 | MERGE = _pbs.MERGE |
---|
| 467 | INCR_OLD = _pbs.INCR_OLD |
---|
| 468 | NPPCU_ALPS_CHOOSES = _pbs.NPPCU_ALPS_CHOOSES |
---|
| 469 | NPPCU_NO_USE_HT = _pbs.NPPCU_NO_USE_HT |
---|
| 470 | NPPCU_USE_HT = _pbs.NPPCU_USE_HT |
---|
| 471 | class attrl(_object): |
---|
| 472 | __swig_setmethods__ = {} |
---|
| 473 | __setattr__ = lambda self, name, value: _swig_setattr(self, attrl, name, value) |
---|
| 474 | __swig_getmethods__ = {} |
---|
| 475 | __getattr__ = lambda self, name: _swig_getattr(self, attrl, name) |
---|
| 476 | def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") |
---|
| 477 | __repr__ = _swig_repr |
---|
| 478 | __swig_setmethods__["next"] = _pbs.attrl_next_set |
---|
| 479 | __swig_getmethods__["next"] = _pbs.attrl_next_get |
---|
| 480 | if _newclass:next = _swig_property(_pbs.attrl_next_get, _pbs.attrl_next_set) |
---|
| 481 | __swig_setmethods__["name"] = _pbs.attrl_name_set |
---|
| 482 | __swig_getmethods__["name"] = _pbs.attrl_name_get |
---|
| 483 | if _newclass:name = _swig_property(_pbs.attrl_name_get, _pbs.attrl_name_set) |
---|
| 484 | __swig_setmethods__["resource"] = _pbs.attrl_resource_set |
---|
| 485 | __swig_getmethods__["resource"] = _pbs.attrl_resource_get |
---|
| 486 | if _newclass:resource = _swig_property(_pbs.attrl_resource_get, _pbs.attrl_resource_set) |
---|
| 487 | __swig_setmethods__["value"] = _pbs.attrl_value_set |
---|
| 488 | __swig_getmethods__["value"] = _pbs.attrl_value_get |
---|
| 489 | if _newclass:value = _swig_property(_pbs.attrl_value_get, _pbs.attrl_value_set) |
---|
| 490 | __swig_setmethods__["op"] = _pbs.attrl_op_set |
---|
| 491 | __swig_getmethods__["op"] = _pbs.attrl_op_get |
---|
| 492 | if _newclass:op = _swig_property(_pbs.attrl_op_get, _pbs.attrl_op_set) |
---|
| 493 | def __str__(self): return _pbs.attrl___str__(self) |
---|
| 494 | __swig_destroy__ = _pbs.delete_attrl |
---|
| 495 | __del__ = lambda self : None; |
---|
| 496 | attrl_swigregister = _pbs.attrl_swigregister |
---|
| 497 | attrl_swigregister(attrl) |
---|
| 498 | |
---|
| 499 | class attropl(_object): |
---|
| 500 | __swig_setmethods__ = {} |
---|
| 501 | __setattr__ = lambda self, name, value: _swig_setattr(self, attropl, name, value) |
---|
| 502 | __swig_getmethods__ = {} |
---|
| 503 | __getattr__ = lambda self, name: _swig_getattr(self, attropl, name) |
---|
| 504 | def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") |
---|
| 505 | __repr__ = _swig_repr |
---|
| 506 | __swig_setmethods__["next"] = _pbs.attropl_next_set |
---|
| 507 | __swig_getmethods__["next"] = _pbs.attropl_next_get |
---|
| 508 | if _newclass:next = _swig_property(_pbs.attropl_next_get, _pbs.attropl_next_set) |
---|
| 509 | __swig_setmethods__["name"] = _pbs.attropl_name_set |
---|
| 510 | __swig_getmethods__["name"] = _pbs.attropl_name_get |
---|
| 511 | if _newclass:name = _swig_property(_pbs.attropl_name_get, _pbs.attropl_name_set) |
---|
| 512 | __swig_setmethods__["resource"] = _pbs.attropl_resource_set |
---|
| 513 | __swig_getmethods__["resource"] = _pbs.attropl_resource_get |
---|
| 514 | if _newclass:resource = _swig_property(_pbs.attropl_resource_get, _pbs.attropl_resource_set) |
---|
| 515 | __swig_setmethods__["value"] = _pbs.attropl_value_set |
---|
| 516 | __swig_getmethods__["value"] = _pbs.attropl_value_get |
---|
| 517 | if _newclass:value = _swig_property(_pbs.attropl_value_get, _pbs.attropl_value_set) |
---|
| 518 | __swig_setmethods__["op"] = _pbs.attropl_op_set |
---|
| 519 | __swig_getmethods__["op"] = _pbs.attropl_op_get |
---|
| 520 | if _newclass:op = _swig_property(_pbs.attropl_op_get, _pbs.attropl_op_set) |
---|
| 521 | def __str__(self): return _pbs.attropl___str__(self) |
---|
| 522 | __swig_destroy__ = _pbs.delete_attropl |
---|
| 523 | __del__ = lambda self : None; |
---|
| 524 | attropl_swigregister = _pbs.attropl_swigregister |
---|
| 525 | attropl_swigregister(attropl) |
---|
| 526 | |
---|
| 527 | class batch_status(_object): |
---|
| 528 | __swig_setmethods__ = {} |
---|
| 529 | __setattr__ = lambda self, name, value: _swig_setattr(self, batch_status, name, value) |
---|
| 530 | __swig_getmethods__ = {} |
---|
| 531 | __getattr__ = lambda self, name: _swig_getattr(self, batch_status, name) |
---|
| 532 | def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") |
---|
| 533 | __repr__ = _swig_repr |
---|
| 534 | __swig_setmethods__["next"] = _pbs.batch_status_next_set |
---|
| 535 | __swig_getmethods__["next"] = _pbs.batch_status_next_get |
---|
| 536 | if _newclass:next = _swig_property(_pbs.batch_status_next_get, _pbs.batch_status_next_set) |
---|
| 537 | __swig_setmethods__["name"] = _pbs.batch_status_name_set |
---|
| 538 | __swig_getmethods__["name"] = _pbs.batch_status_name_get |
---|
| 539 | if _newclass:name = _swig_property(_pbs.batch_status_name_get, _pbs.batch_status_name_set) |
---|
| 540 | __swig_setmethods__["attribs"] = _pbs.batch_status_attribs_set |
---|
| 541 | __swig_getmethods__["attribs"] = _pbs.batch_status_attribs_get |
---|
| 542 | if _newclass:attribs = _swig_property(_pbs.batch_status_attribs_get, _pbs.batch_status_attribs_set) |
---|
| 543 | __swig_setmethods__["text"] = _pbs.batch_status_text_set |
---|
| 544 | __swig_getmethods__["text"] = _pbs.batch_status_text_get |
---|
| 545 | if _newclass:text = _swig_property(_pbs.batch_status_text_get, _pbs.batch_status_text_set) |
---|
| 546 | batch_status_swigregister = _pbs.batch_status_swigregister |
---|
| 547 | batch_status_swigregister(batch_status) |
---|
| 548 | |
---|
| 549 | |
---|
| 550 | def avail(*args): |
---|
| 551 | return _pbs.avail(*args) |
---|
| 552 | avail = _pbs.avail |
---|
| 553 | |
---|
| 554 | def pbs_asyrunjob(*args): |
---|
| 555 | return _pbs.pbs_asyrunjob(*args) |
---|
| 556 | pbs_asyrunjob = _pbs.pbs_asyrunjob |
---|
| 557 | |
---|
| 558 | def pbs_alterjob_async(*args): |
---|
| 559 | return _pbs.pbs_alterjob_async(*args) |
---|
| 560 | pbs_alterjob_async = _pbs.pbs_alterjob_async |
---|
| 561 | |
---|
| 562 | def pbs_alterjob(*args): |
---|
| 563 | return _pbs.pbs_alterjob(*args) |
---|
| 564 | pbs_alterjob = _pbs.pbs_alterjob |
---|
| 565 | |
---|
| 566 | def pbs_connect(*args): |
---|
| 567 | return _pbs.pbs_connect(*args) |
---|
| 568 | pbs_connect = _pbs.pbs_connect |
---|
| 569 | |
---|
| 570 | def pbs_query_max_connections(): |
---|
| 571 | return _pbs.pbs_query_max_connections() |
---|
| 572 | pbs_query_max_connections = _pbs.pbs_query_max_connections |
---|
| 573 | |
---|
| 574 | def pbs_default(): |
---|
| 575 | return _pbs.pbs_default() |
---|
| 576 | pbs_default = _pbs.pbs_default |
---|
| 577 | |
---|
| 578 | def pbs_fbserver(): |
---|
| 579 | return _pbs.pbs_fbserver() |
---|
| 580 | pbs_fbserver = _pbs.pbs_fbserver |
---|
| 581 | |
---|
| 582 | def pbs_get_server_list(): |
---|
| 583 | return _pbs.pbs_get_server_list() |
---|
| 584 | pbs_get_server_list = _pbs.pbs_get_server_list |
---|
| 585 | |
---|
| 586 | def pbs_deljob(*args): |
---|
| 587 | return _pbs.pbs_deljob(*args) |
---|
| 588 | pbs_deljob = _pbs.pbs_deljob |
---|
| 589 | |
---|
| 590 | def pbs_disconnect(*args): |
---|
| 591 | return _pbs.pbs_disconnect(*args) |
---|
| 592 | pbs_disconnect = _pbs.pbs_disconnect |
---|
| 593 | |
---|
| 594 | def pbs_geterrmsg(*args): |
---|
| 595 | return _pbs.pbs_geterrmsg(*args) |
---|
| 596 | pbs_geterrmsg = _pbs.pbs_geterrmsg |
---|
| 597 | |
---|
| 598 | def pbs_holdjob(*args): |
---|
| 599 | return _pbs.pbs_holdjob(*args) |
---|
| 600 | pbs_holdjob = _pbs.pbs_holdjob |
---|
| 601 | |
---|
| 602 | def pbs_checkpointjob(*args): |
---|
| 603 | return _pbs.pbs_checkpointjob(*args) |
---|
| 604 | pbs_checkpointjob = _pbs.pbs_checkpointjob |
---|
| 605 | |
---|
| 606 | def pbs_locjob(*args): |
---|
| 607 | return _pbs.pbs_locjob(*args) |
---|
| 608 | pbs_locjob = _pbs.pbs_locjob |
---|
| 609 | |
---|
| 610 | def pbs_manager(*args): |
---|
| 611 | return _pbs.pbs_manager(*args) |
---|
| 612 | pbs_manager = _pbs.pbs_manager |
---|
| 613 | |
---|
| 614 | def pbs_movejob(*args): |
---|
| 615 | return _pbs.pbs_movejob(*args) |
---|
| 616 | pbs_movejob = _pbs.pbs_movejob |
---|
| 617 | |
---|
| 618 | def pbs_msgjob(*args): |
---|
| 619 | return _pbs.pbs_msgjob(*args) |
---|
| 620 | pbs_msgjob = _pbs.pbs_msgjob |
---|
| 621 | |
---|
| 622 | def pbs_orderjob(*args): |
---|
| 623 | return _pbs.pbs_orderjob(*args) |
---|
| 624 | pbs_orderjob = _pbs.pbs_orderjob |
---|
| 625 | |
---|
| 626 | def pbs_rescquery(*args): |
---|
| 627 | return _pbs.pbs_rescquery(*args) |
---|
| 628 | pbs_rescquery = _pbs.pbs_rescquery |
---|
| 629 | |
---|
| 630 | def pbs_rescreserve(*args): |
---|
| 631 | return _pbs.pbs_rescreserve(*args) |
---|
| 632 | pbs_rescreserve = _pbs.pbs_rescreserve |
---|
| 633 | |
---|
| 634 | def pbs_rescrelease(*args): |
---|
| 635 | return _pbs.pbs_rescrelease(*args) |
---|
| 636 | pbs_rescrelease = _pbs.pbs_rescrelease |
---|
| 637 | |
---|
| 638 | def pbs_rerunjob(*args): |
---|
| 639 | return _pbs.pbs_rerunjob(*args) |
---|
| 640 | pbs_rerunjob = _pbs.pbs_rerunjob |
---|
| 641 | |
---|
| 642 | def pbs_rlsjob(*args): |
---|
| 643 | return _pbs.pbs_rlsjob(*args) |
---|
| 644 | pbs_rlsjob = _pbs.pbs_rlsjob |
---|
| 645 | |
---|
| 646 | def pbs_runjob(*args): |
---|
| 647 | return _pbs.pbs_runjob(*args) |
---|
| 648 | pbs_runjob = _pbs.pbs_runjob |
---|
| 649 | |
---|
| 650 | def pbs_selectjob(*args): |
---|
| 651 | return _pbs.pbs_selectjob(*args) |
---|
| 652 | pbs_selectjob = _pbs.pbs_selectjob |
---|
| 653 | |
---|
| 654 | def pbs_sigjob(*args): |
---|
| 655 | return _pbs.pbs_sigjob(*args) |
---|
| 656 | pbs_sigjob = _pbs.pbs_sigjob |
---|
| 657 | |
---|
| 658 | def pbs_sigjobasync(*args): |
---|
| 659 | return _pbs.pbs_sigjobasync(*args) |
---|
| 660 | pbs_sigjobasync = _pbs.pbs_sigjobasync |
---|
| 661 | |
---|
| 662 | def pbs_statfree(*args): |
---|
| 663 | return _pbs.pbs_statfree(*args) |
---|
| 664 | pbs_statfree = _pbs.pbs_statfree |
---|
| 665 | |
---|
| 666 | def pbs_statjob(*args): |
---|
| 667 | return _pbs.pbs_statjob(*args) |
---|
| 668 | pbs_statjob = _pbs.pbs_statjob |
---|
| 669 | |
---|
| 670 | def pbs_selstat(*args): |
---|
| 671 | return _pbs.pbs_selstat(*args) |
---|
| 672 | pbs_selstat = _pbs.pbs_selstat |
---|
| 673 | |
---|
| 674 | def pbs_statque(*args): |
---|
| 675 | return _pbs.pbs_statque(*args) |
---|
| 676 | pbs_statque = _pbs.pbs_statque |
---|
| 677 | |
---|
| 678 | def pbs_statserver(*args): |
---|
| 679 | return _pbs.pbs_statserver(*args) |
---|
| 680 | pbs_statserver = _pbs.pbs_statserver |
---|
| 681 | |
---|
| 682 | def pbs_statnode(*args): |
---|
| 683 | return _pbs.pbs_statnode(*args) |
---|
| 684 | pbs_statnode = _pbs.pbs_statnode |
---|
| 685 | |
---|
| 686 | def pbs_submit(*args): |
---|
| 687 | return _pbs.pbs_submit(*args) |
---|
| 688 | pbs_submit = _pbs.pbs_submit |
---|
| 689 | |
---|
| 690 | def pbs_submit_hash_ext(*args): |
---|
| 691 | return _pbs.pbs_submit_hash_ext(*args) |
---|
| 692 | pbs_submit_hash_ext = _pbs.pbs_submit_hash_ext |
---|
| 693 | |
---|
| 694 | def pbs_terminate(*args): |
---|
| 695 | return _pbs.pbs_terminate(*args) |
---|
| 696 | pbs_terminate = _pbs.pbs_terminate |
---|
| 697 | |
---|
| 698 | def totpool(*args): |
---|
| 699 | return _pbs.totpool(*args) |
---|
| 700 | totpool = _pbs.totpool |
---|
| 701 | |
---|
| 702 | def usepool(*args): |
---|
| 703 | return _pbs.usepool(*args) |
---|
| 704 | usepool = _pbs.usepool |
---|
| 705 | |
---|
| 706 | def pbs_gpumode(*args): |
---|
| 707 | return _pbs.pbs_gpumode(*args) |
---|
| 708 | pbs_gpumode = _pbs.pbs_gpumode |
---|
| 709 | |
---|
| 710 | def trq_set_preferred_network_interface(*args): |
---|
| 711 | return _pbs.trq_set_preferred_network_interface(*args) |
---|
| 712 | trq_set_preferred_network_interface = _pbs.trq_set_preferred_network_interface |
---|
| 713 | |
---|
| 714 | def trq_get_if_name(): |
---|
| 715 | return _pbs.trq_get_if_name() |
---|
| 716 | trq_get_if_name = _pbs.trq_get_if_name |
---|
| 717 | |
---|
| 718 | def pbs_stagein(*args): |
---|
| 719 | return _pbs.pbs_stagein(*args) |
---|
| 720 | pbs_stagein = _pbs.pbs_stagein |
---|
| 721 | |
---|
| 722 | def openrm(*args): |
---|
| 723 | return _pbs.openrm(*args) |
---|
| 724 | openrm = _pbs.openrm |
---|
| 725 | |
---|
| 726 | def closerm_err(*args): |
---|
| 727 | return _pbs.closerm_err(*args) |
---|
| 728 | closerm_err = _pbs.closerm_err |
---|
| 729 | |
---|
| 730 | def closerm(*args): |
---|
| 731 | return _pbs.closerm(*args) |
---|
| 732 | closerm = _pbs.closerm |
---|
| 733 | |
---|
| 734 | def downrm(*args): |
---|
| 735 | return _pbs.downrm(*args) |
---|
| 736 | downrm = _pbs.downrm |
---|
| 737 | |
---|
| 738 | def configrm(*args): |
---|
| 739 | return _pbs.configrm(*args) |
---|
| 740 | configrm = _pbs.configrm |
---|
| 741 | |
---|
| 742 | def addreq_err(*args): |
---|
| 743 | return _pbs.addreq_err(*args) |
---|
| 744 | addreq_err = _pbs.addreq_err |
---|
| 745 | |
---|
| 746 | def begin_rm_req(*args): |
---|
| 747 | return _pbs.begin_rm_req(*args) |
---|
| 748 | begin_rm_req = _pbs.begin_rm_req |
---|
| 749 | |
---|
| 750 | def addreq(*args): |
---|
| 751 | return _pbs.addreq(*args) |
---|
| 752 | addreq = _pbs.addreq |
---|
| 753 | |
---|
| 754 | def allreq(*args): |
---|
| 755 | return _pbs.allreq(*args) |
---|
| 756 | allreq = _pbs.allreq |
---|
| 757 | |
---|
| 758 | def getreq_err(*args): |
---|
| 759 | return _pbs.getreq_err(*args) |
---|
| 760 | getreq_err = _pbs.getreq_err |
---|
| 761 | |
---|
| 762 | def getreq(*args): |
---|
| 763 | return _pbs.getreq(*args) |
---|
| 764 | getreq = _pbs.getreq |
---|
| 765 | |
---|
| 766 | def flushreq(): |
---|
| 767 | return _pbs.flushreq() |
---|
| 768 | flushreq = _pbs.flushreq |
---|
| 769 | |
---|
| 770 | def activereq(): |
---|
| 771 | return _pbs.activereq() |
---|
| 772 | activereq = _pbs.activereq |
---|
| 773 | |
---|
| 774 | def fullresp(*args): |
---|
| 775 | return _pbs.fullresp(*args) |
---|
| 776 | fullresp = _pbs.fullresp |
---|
| 777 | LOG_BUF_SIZE = _pbs.LOG_BUF_SIZE |
---|
| 778 | LOCAL_LOG_BUF_SIZE = _pbs.LOCAL_LOG_BUF_SIZE |
---|
| 779 | LOG_EMERG = _pbs.LOG_EMERG |
---|
| 780 | LOG_ALERT = _pbs.LOG_ALERT |
---|
| 781 | LOG_CRIT = _pbs.LOG_CRIT |
---|
| 782 | LOG_ERR = _pbs.LOG_ERR |
---|
| 783 | LOG_WARNING = _pbs.LOG_WARNING |
---|
| 784 | LOG_NOTICE = _pbs.LOG_NOTICE |
---|
| 785 | LOG_INFO = _pbs.LOG_INFO |
---|
| 786 | LOG_DEBUG = _pbs.LOG_DEBUG |
---|
| 787 | MAXLINE = _pbs.MAXLINE |
---|
| 788 | GETV = _pbs.GETV |
---|
| 789 | SETV = _pbs.SETV |
---|
| 790 | |
---|
| 791 | def log_err(*args): |
---|
| 792 | return _pbs.log_err(*args) |
---|
| 793 | log_err = _pbs.log_err |
---|
| 794 | |
---|
| 795 | def log_ext(*args): |
---|
| 796 | return _pbs.log_ext(*args) |
---|
| 797 | log_ext = _pbs.log_ext |
---|
| 798 | |
---|
| 799 | def log_event(*args): |
---|
| 800 | return _pbs.log_event(*args) |
---|
| 801 | log_event = _pbs.log_event |
---|
| 802 | |
---|
| 803 | def log_record(*args): |
---|
| 804 | return _pbs.log_record(*args) |
---|
| 805 | log_record = _pbs.log_record |
---|
| 806 | |
---|
| 807 | def log_available(*args): |
---|
| 808 | return _pbs.log_available(*args) |
---|
| 809 | log_available = _pbs.log_available |
---|
| 810 | |
---|
| 811 | def log_init(*args): |
---|
| 812 | return _pbs.log_init(*args) |
---|
| 813 | log_init = _pbs.log_init |
---|
| 814 | |
---|
| 815 | def chk_file_sec(*args): |
---|
| 816 | return _pbs.chk_file_sec(*args) |
---|
| 817 | chk_file_sec = _pbs.chk_file_sec |
---|
| 818 | PBSEVENT_ERROR = _pbs.PBSEVENT_ERROR |
---|
| 819 | PBSEVENT_SYSTEM = _pbs.PBSEVENT_SYSTEM |
---|
| 820 | PBSEVENT_ADMIN = _pbs.PBSEVENT_ADMIN |
---|
| 821 | PBSEVENT_JOB = _pbs.PBSEVENT_JOB |
---|
| 822 | PBSEVENT_JOB_USAGE = _pbs.PBSEVENT_JOB_USAGE |
---|
| 823 | PBSEVENT_SECURITY = _pbs.PBSEVENT_SECURITY |
---|
| 824 | PBSEVENT_SCHED = _pbs.PBSEVENT_SCHED |
---|
| 825 | PBSEVENT_DEBUG = _pbs.PBSEVENT_DEBUG |
---|
| 826 | PBSEVENT_DEBUG2 = _pbs.PBSEVENT_DEBUG2 |
---|
| 827 | PBSEVENT_CLIENTAUTH = _pbs.PBSEVENT_CLIENTAUTH |
---|
| 828 | PBSEVENT_SYSLOG = _pbs.PBSEVENT_SYSLOG |
---|
| 829 | PBSEVENT_FORCE = _pbs.PBSEVENT_FORCE |
---|
| 830 | PBS_EVENTCLASS_SERVER = _pbs.PBS_EVENTCLASS_SERVER |
---|
| 831 | PBS_EVENTCLASS_QUEUE = _pbs.PBS_EVENTCLASS_QUEUE |
---|
| 832 | PBS_EVENTCLASS_JOB = _pbs.PBS_EVENTCLASS_JOB |
---|
| 833 | PBS_EVENTCLASS_REQUEST = _pbs.PBS_EVENTCLASS_REQUEST |
---|
| 834 | PBS_EVENTCLASS_FILE = _pbs.PBS_EVENTCLASS_FILE |
---|
| 835 | PBS_EVENTCLASS_ACCT = _pbs.PBS_EVENTCLASS_ACCT |
---|
| 836 | PBS_EVENTCLASS_NODE = _pbs.PBS_EVENTCLASS_NODE |
---|
| 837 | PBS_EVENTCLASS_TRQAUTHD = _pbs.PBS_EVENTCLASS_TRQAUTHD |
---|
| 838 | PBSEVENT_MASK = _pbs.PBSEVENT_MASK |
---|
| 839 | MAX_PATH_LEN = _pbs.MAX_PATH_LEN |
---|
| 840 | SECS_PER_DAY = _pbs.SECS_PER_DAY |
---|
| 841 | TRUE = _pbs.TRUE |
---|
| 842 | FALSE = _pbs.FALSE |
---|
| 843 | # PBS python interface |
---|
| 844 | # Author: Bas van der Vlies <bas.vandervlies@surfsara.nl> |
---|
| 845 | # Date : 27 Feb 2002 |
---|
| 846 | # Desc. : This is python wrapper class for getting the resource |
---|
| 847 | # mom values. |
---|
| 848 | # |
---|
| 849 | # CVS info |
---|
| 850 | # $Id: resmom.py,v 1.6 2002/10/21 14:14:47 sscpbas Exp $ |
---|
| 851 | # $Date: 2002/10/21 14:14:47 $ |
---|
| 852 | # $Revision: 1.6 $ |
---|
| 853 | # |
---|
| 854 | import string |
---|
| 855 | import types |
---|
| 856 | |
---|
| 857 | # Default linux resources to get from the mom |
---|
| 858 | # |
---|
| 859 | default_linux_res = [ |
---|
| 860 | "availmem", # available memory size in KB |
---|
| 861 | "ideal_load", # static ideal_load value |
---|
| 862 | "loadave", # the current load average |
---|
| 863 | "max_load", # static max_load value |
---|
| 864 | "ncpus", # number of cpus |
---|
| 865 | "physmem", # physical memory size in KB |
---|
| 866 | "resi", # resident memory size for a pid or session in KB |
---|
| 867 | "totmem", # total memory size in KB |
---|
| 868 | "walltime", # wall clock time for a pid |
---|
| 869 | ] |
---|
| 870 | |
---|
| 871 | # Default irix6 resources to get from the mom |
---|
| 872 | # |
---|
| 873 | default_irix6_res = [ |
---|
| 874 | "availmem", # available memory size in KB |
---|
| 875 | "loadave", # the current load average |
---|
| 876 | "ncpus", # number of cpus |
---|
| 877 | "physmem", # physical memory size in KB |
---|
| 878 | "resi", # resident memory size for a pid or session in KB |
---|
| 879 | "walltime", # wall clock time for a pid |
---|
| 880 | "quota", # quota information (sizes in KB) |
---|
| 881 | ] |
---|
| 882 | |
---|
| 883 | default_mom_res = [ |
---|
| 884 | "arch", # the architecture of the machine |
---|
| 885 | "uname", # the architecture of the machine |
---|
| 886 | "cput", # cpu time for a pid or session |
---|
| 887 | "idletime", # seconds of idle time |
---|
| 888 | "mem", # memory size for a pid or session in KB |
---|
| 889 | "sessions", # list of sessions in the system |
---|
| 890 | "pids", # list of pids in a session |
---|
| 891 | "nsessions", # number of sessions in the system |
---|
| 892 | "nusers", # number of users in the system |
---|
| 893 | "size", # size of a file or filesystem |
---|
| 894 | "host", # Name of host on which job should be run |
---|
| 895 | "nodes", # Number and/or type of nodes to be reserved for exclusive use by the job |
---|
| 896 | "other", # Allows a user to specify site specific information |
---|
| 897 | "software", # Allows a user to specify software required by the job |
---|
| 898 | ] |
---|
| 899 | |
---|
| 900 | def check_resp(dict, str): |
---|
| 901 | """ |
---|
| 902 | Check the daemon response. If we have no permission to |
---|
| 903 | query the values then we got a 'None' response. Else |
---|
| 904 | if we supplied a keyword that does not exits we get a |
---|
| 905 | '?' response |
---|
| 906 | """ |
---|
| 907 | if not str: |
---|
| 908 | return |
---|
| 909 | |
---|
| 910 | ## Value can contain the '=' char :-( |
---|
| 911 | # |
---|
| 912 | l = string.split(str, '=') |
---|
| 913 | key = string.strip(l[0]) |
---|
| 914 | if len(l) > 2: |
---|
| 915 | val = string.strip( '='.join(l[1:]) ) |
---|
| 916 | else: |
---|
| 917 | val = string.strip(l[1]) |
---|
| 918 | |
---|
| 919 | key = string.strip(key) |
---|
| 920 | val = string.strip(val) |
---|
| 921 | |
---|
| 922 | # Did we got a valid response |
---|
| 923 | # |
---|
| 924 | if not val[0] == '?': |
---|
| 925 | dict[key] = val |
---|
| 926 | |
---|
| 927 | def use_default_keywords(id, d): |
---|
| 928 | """ |
---|
| 929 | Get the default values from the mom daemon |
---|
| 930 | """ |
---|
| 931 | for res in default_mom_res: |
---|
| 932 | addreq(id, res) |
---|
| 933 | resp = getreq(id) |
---|
| 934 | check_resp(d, resp) |
---|
| 935 | |
---|
| 936 | # Do not proceed if we have an empty dictionary |
---|
| 937 | # |
---|
| 938 | if not d: |
---|
| 939 | return |
---|
| 940 | |
---|
| 941 | if d['arch' ] == 'linux': |
---|
| 942 | for res in default_linux_res: |
---|
| 943 | addreq(id, res) |
---|
| 944 | resp = getreq(id) |
---|
| 945 | check_resp(d, resp) |
---|
| 946 | |
---|
| 947 | def use_user_keywords(id, d, l): |
---|
| 948 | for res in l: |
---|
| 949 | if type(res) is types.StringType: |
---|
| 950 | addreq(id, res) |
---|
| 951 | resp = getreq(id) |
---|
| 952 | check_resp(d, resp) |
---|
| 953 | else: |
---|
| 954 | raise TypeError, 'Expected a string got %s :%s' %(type(res), res) |
---|
| 955 | |
---|
| 956 | def get_mom_values(id, list = None): |
---|
| 957 | """ |
---|
| 958 | This function will query the mom with a default resmon keywords |
---|
| 959 | and 'arch' depended keywords. Supported archs are: |
---|
| 960 | linux |
---|
| 961 | irix6 |
---|
| 962 | User can also supply their own list of keywords as second parameter. |
---|
| 963 | arguments: |
---|
| 964 | id : connection number with mom daemon on a node |
---|
| 965 | list : optional parameter. If supplied then use this. A list |
---|
| 966 | of mom keywords. |
---|
| 967 | """ |
---|
| 968 | |
---|
| 969 | d = {} |
---|
| 970 | if not list: |
---|
| 971 | use_default_keywords(id, d) |
---|
| 972 | else: |
---|
| 973 | use_user_keywords(id, d , list) |
---|
| 974 | |
---|
| 975 | return d |
---|
| 976 | |
---|
| 977 | version_info = ( 4, 4, 0 ) |
---|
| 978 | version = 'SARA pbs_python version 4.4.0' |
---|
| 979 | |
---|
| 980 | ## A useful dict with error codes to text |
---|
| 981 | # |
---|
| 982 | # Author: Bas van der Vlies <bas.vandervlies@surfsara.nl> |
---|
| 983 | # |
---|
| 984 | # SVN Info: |
---|
| 985 | # $Id: errors.py 429 2005-11-04 13:59:06Z bas $ |
---|
| 986 | # |
---|
| 987 | errors_txt = { |
---|
| 988 | 0 : 'no error', |
---|
| 989 | 15001 : 'Unknown Job Identifier', |
---|
| 990 | 15002 : 'Undefined Attribute', |
---|
| 991 | 15003 : 'attempt to set READ ONLY attribute', |
---|
| 992 | 15004 : 'Invalid request', |
---|
| 993 | 15005 : 'Unknown batch request', |
---|
| 994 | 15006 : 'Too many submit retries', |
---|
| 995 | 15007 : 'No permission', |
---|
| 996 | 15008 : 'access from host not allowed', |
---|
| 997 | 15009 : 'job already exists', |
---|
| 998 | 15010 : 'system error occurred', |
---|
| 999 | 15011 : 'internal server error occurred', |
---|
| 1000 | 15012 : 'parent job of dependent in rte que', |
---|
| 1001 | 15013 : 'unknown signal name', |
---|
| 1002 | 15014 : 'bad attribute value', |
---|
| 1003 | 15015 : 'Cannot modify attrib in run state', |
---|
| 1004 | 15016 : 'request invalid for job state', |
---|
| 1005 | 15018 : 'Unknown queue name', |
---|
| 1006 | 15019 : 'Invalid Credential in request', |
---|
| 1007 | 15020 : 'Expired Credential in request', |
---|
| 1008 | 15021 : 'Queue not enabled', |
---|
| 1009 | 15022 : 'No access permission for queue', |
---|
| 1010 | 15023 : 'Bad user - no password entry', |
---|
| 1011 | 15024 : 'Max hop count exceeded', |
---|
| 1012 | 15025 : 'Queue already exists', |
---|
| 1013 | 15026 : 'incompatable queue attribute type', |
---|
| 1014 | 15027 : 'Queue Busy (not empty)', |
---|
| 1015 | 15028 : 'Queue name too long', |
---|
| 1016 | 15029 : 'Feature', |
---|
| 1017 | 15030 : 'Cannot enable queue,needs add def', |
---|
| 1018 | 15031 : 'Protocol (ASN.1) error', |
---|
| 1019 | 15032 : 'Bad attribute list structure', |
---|
| 1020 | 15033 : 'No free connections', |
---|
| 1021 | 15034 : 'No server to connect to', |
---|
| 1022 | 15035 : 'Unknown resource', |
---|
| 1023 | 15036 : 'Job exceeds Queue resource limits', |
---|
| 1024 | 15037 : 'No Default Queue Defined', |
---|
| 1025 | 15038 : 'Job Not Rerunnable', |
---|
| 1026 | 15039 : 'Route rejected by all destinations', |
---|
| 1027 | 15040 : 'Time in Route Queue Expired', |
---|
| 1028 | 15041 : 'Request to MOM failed', |
---|
| 1029 | 15042 : '(qsub) cannot access script file', |
---|
| 1030 | 15043 : 'Stage In of files failed', |
---|
| 1031 | 15044 : 'Resources temporarily unavailable', |
---|
| 1032 | 15045 : 'Bad Group specified', |
---|
| 1033 | 15046 : 'Max number of jobs in queue', |
---|
| 1034 | 15047 : 'Checkpoint Busy, may be retries', |
---|
| 1035 | 15048 : 'Limit exceeds allowable', |
---|
| 1036 | 15049 : 'Bad Account attribute value', |
---|
| 1037 | 15050 : 'Job already in exit state', |
---|
| 1038 | 15051 : 'Job files not copied', |
---|
| 1039 | 15052 : 'unknown job id after clean init', |
---|
| 1040 | 15053 : 'No Master in Sync Set', |
---|
| 1041 | 15054 : 'Invalid dependency', |
---|
| 1042 | 15055 : 'Duplicate entry in List', |
---|
| 1043 | 15056 : 'Bad DIS based Request Protocol', |
---|
| 1044 | 15057 : 'cannot execute there', |
---|
| 1045 | 15058 : 'sister rejected', |
---|
| 1046 | 15059 : 'sister could not communicate', |
---|
| 1047 | 15060 : 'req rejected -server shutting down', |
---|
| 1048 | 15061 : 'not all tasks could checkpoint', |
---|
| 1049 | 15062 : 'Named node is not in the list', |
---|
| 1050 | 15063 : 'node-attribute not recognized', |
---|
| 1051 | 15064 : 'Server has no node list', |
---|
| 1052 | 15065 : 'Node name is too big', |
---|
| 1053 | 15066 : 'Node name already exists', |
---|
| 1054 | 15067 : 'Bad node-attribute value', |
---|
| 1055 | 15068 : 'State values are mutually exclusive', |
---|
| 1056 | 15069 : 'Error(s) during global modification of nodes', |
---|
| 1057 | 15070 : 'could not contact Mom', |
---|
| 1058 | 15071 : 'no time-shared nodes', |
---|
| 1059 | 15201 : 'resource unknown', |
---|
| 1060 | 15202 : 'parameter could not be used', |
---|
| 1061 | 15203 : 'a parameter needed did not exist', |
---|
| 1062 | 15204 : "something specified didn't exist", |
---|
| 1063 | 15205 : 'a system error occured', |
---|
| 1064 | 15206 : 'only part of reservation made' |
---|
| 1065 | } |
---|
| 1066 | |
---|
| 1067 | def error(): |
---|
| 1068 | """ |
---|
| 1069 | Check if there is an error, if so fetch the error message string. |
---|
| 1070 | It says more then a number! |
---|
| 1071 | """ |
---|
| 1072 | e = get_error() |
---|
| 1073 | if errors_txt.has_key(e): |
---|
| 1074 | return (e, errors_txt[e]) |
---|
| 1075 | else: |
---|
| 1076 | return (e, "Could not find a text for this error, uhhh") |
---|
| 1077 | |
---|
| 1078 | # This file is compatible with both classic and new-style classes. |
---|
| 1079 | |
---|
| 1080 | cvar = _pbs.cvar |
---|
| 1081 | |
---|