659 |
|
#define SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator swig_types[2] |
660 |
|
#define SWIGTYPE_p_BossProgramExec swig_types[3] |
661 |
|
#define SWIGTYPE_p_std__vectorTBossTask_p_t swig_types[4] |
662 |
< |
#define SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t swig_types[5] |
663 |
< |
#define SWIGTYPE_p_BossTask swig_types[6] |
664 |
< |
#define SWIGTYPE_p_BossTaskException swig_types[7] |
665 |
< |
#define SWIGTYPE_p_std__ostream swig_types[8] |
666 |
< |
#define SWIGTYPE_p_BossProgram swig_types[9] |
667 |
< |
#define SWIGTYPE_p_printOption swig_types[10] |
668 |
< |
#define SWIGTYPE_p_BossAttributeContainer swig_types[11] |
669 |
< |
#define SWIGTYPE_p_BossJob swig_types[12] |
670 |
< |
#define SWIGTYPE_p_BossDatabase swig_types[13] |
671 |
< |
#define SWIGTYPE_p_BossSession swig_types[14] |
672 |
< |
#define SWIGTYPE_p_std__vectorTstd__string_t swig_types[15] |
673 |
< |
#define SWIGTYPE_p_std__mapTstd__string_std__string_t swig_types[16] |
674 |
< |
#define SWIGTYPE_p_BossAdministratorSession swig_types[17] |
675 |
< |
#define SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator swig_types[18] |
662 |
> |
#define SWIGTYPE_p_BossChain swig_types[5] |
663 |
> |
#define SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t swig_types[6] |
664 |
> |
#define SWIGTYPE_p_BossTask swig_types[7] |
665 |
> |
#define SWIGTYPE_p_BossTaskException swig_types[8] |
666 |
> |
#define SWIGTYPE_p_std__ostream swig_types[9] |
667 |
> |
#define SWIGTYPE_p_BossProgram swig_types[10] |
668 |
> |
#define SWIGTYPE_p_printOption swig_types[11] |
669 |
> |
#define SWIGTYPE_p_BossAttributeContainer swig_types[12] |
670 |
> |
#define SWIGTYPE_p_BossJob swig_types[13] |
671 |
> |
#define SWIGTYPE_p_BossDatabase swig_types[14] |
672 |
> |
#define SWIGTYPE_p_BossSession swig_types[15] |
673 |
> |
#define SWIGTYPE_p_std__vectorTstd__string_t swig_types[16] |
674 |
> |
#define SWIGTYPE_p_std__mapTstd__string_std__string_t swig_types[17] |
675 |
> |
#define SWIGTYPE_p_BossAdministratorSession swig_types[18] |
676 |
|
#define SWIGTYPE_p_BossTask__job_iterator swig_types[19] |
677 |
< |
#define SWIGTYPE_p_jobStates swig_types[20] |
678 |
< |
static swig_type_info *swig_types[22]; |
677 |
> |
#define SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator swig_types[20] |
678 |
> |
#define SWIGTYPE_p_jobStates swig_types[21] |
679 |
> |
static swig_type_info *swig_types[23]; |
680 |
|
|
681 |
|
/* -------- TYPES TABLE (END) -------- */ |
682 |
|
|
926 |
|
#include "BossAdministratorSession.h" |
927 |
|
#include "BossTask.h" |
928 |
|
#include "BossJob.h" |
929 |
+ |
#include "BossChain.h" |
930 |
|
#include "BossTaskCore.h" |
931 |
|
#include "BossAttributeContainer.h" |
932 |
|
#include "BossDBObject.h" |
1042 |
|
BossTask_jobDict( self, &(*self)[ atoi(jobid.c_str()) ], job_dict ); |
1043 |
|
return job_dict; |
1044 |
|
} |
1045 |
+ |
PyObject *BossTask_Chain(BossTask *self,std::string const &jobid){ |
1046 |
+ |
|
1047 |
+ |
PyObject * chain_dict = PyDict_New(); |
1048 |
+ |
BossAttributeContainer obj = |
1049 |
+ |
self->chain( jobid ).getTableEntries("CHAIN"); |
1050 |
+ |
BossTask_appendToPyDict ( self, chain_dict, obj ); |
1051 |
+ |
return chain_dict; |
1052 |
+ |
} |
1053 |
|
PyObject *BossTask_jobStates(BossTask *self){ |
1054 |
|
|
1055 |
|
PyObject * job_dict = PyDict_New(); |
1169 |
|
|
1170 |
|
const BossJob * jH = &((*self)[atoi( jobid.c_str() )]); |
1171 |
|
BossProgramExec programExec = self->queryProgramExec( jH, programId ); |
1172 |
< |
|
1172 |
> |
BossAttributeContainer obj = programExec.getKeys (); |
1173 |
> |
BossTask_appendToPyDict ( self, job_dict, obj ); |
1174 |
> |
|
1175 |
|
std::vector < BossAttributeContainer >::const_iterator it; |
1176 |
|
std::vector < BossAttributeContainer >::const_iterator it_end = programExec.specEnd (); |
1177 |
|
for ( it = programExec.specBegin (); it != it_end; ++it) { |
3500 |
|
} |
3501 |
|
|
3502 |
|
|
3503 |
+ |
static PyObject *_wrap_BossSession_getTasksByJobName(PyObject *self, PyObject *args) { |
3504 |
+ |
PyObject *resultobj; |
3505 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
3506 |
+ |
std::string *arg2 = 0 ; |
3507 |
+ |
SwigValueWrapper< std::vector<BossTask * > > result; |
3508 |
+ |
std::string temp2 ; |
3509 |
+ |
PyObject * obj0 = 0 ; |
3510 |
+ |
PyObject * obj1 = 0 ; |
3511 |
+ |
|
3512 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_getTasksByJobName",&obj0,&obj1)) goto fail; |
3513 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3514 |
+ |
{ |
3515 |
+ |
if (PyString_Check(obj1)) { |
3516 |
+ |
temp2 = std::string(PyString_AsString(obj1)); |
3517 |
+ |
arg2 = &temp2; |
3518 |
+ |
}else { |
3519 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
3520 |
+ |
} |
3521 |
+ |
} |
3522 |
+ |
{ |
3523 |
+ |
try { |
3524 |
+ |
result = (arg1)->getTasksByJobName((std::string const &)*arg2); |
3525 |
+ |
|
3526 |
+ |
}catch (const BossSchedFailure & e) { |
3527 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
3528 |
+ |
return NULL; |
3529 |
+ |
}catch (const std::exception& e) { |
3530 |
+ |
PyErr_SetString ( BossError, e.what() ); |
3531 |
+ |
return NULL; |
3532 |
+ |
} |
3533 |
+ |
} |
3534 |
+ |
{ |
3535 |
+ |
std::vector<BossTask * > * resultptr; |
3536 |
+ |
resultptr = new std::vector<BossTask * >((std::vector<BossTask * > &) result); |
3537 |
+ |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTBossTask_p_t, 1); |
3538 |
+ |
} |
3539 |
+ |
return resultobj; |
3540 |
+ |
fail: |
3541 |
+ |
return NULL; |
3542 |
+ |
} |
3543 |
+ |
|
3544 |
+ |
|
3545 |
+ |
static PyObject *_wrap_BossSession_tasksInMemory(PyObject *self, PyObject *args) { |
3546 |
+ |
PyObject *resultobj; |
3547 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
3548 |
+ |
unsigned int result; |
3549 |
+ |
PyObject * obj0 = 0 ; |
3550 |
+ |
|
3551 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_tasksInMemory",&obj0)) goto fail; |
3552 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3553 |
+ |
{ |
3554 |
+ |
try { |
3555 |
+ |
result = (unsigned int)(arg1)->tasksInMemory(); |
3556 |
+ |
|
3557 |
+ |
}catch (const BossSchedFailure & e) { |
3558 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
3559 |
+ |
return NULL; |
3560 |
+ |
}catch (const std::exception& e) { |
3561 |
+ |
PyErr_SetString ( BossError, e.what() ); |
3562 |
+ |
return NULL; |
3563 |
+ |
} |
3564 |
+ |
} |
3565 |
+ |
resultobj = PyInt_FromLong((long)result); |
3566 |
+ |
return resultobj; |
3567 |
+ |
fail: |
3568 |
+ |
return NULL; |
3569 |
+ |
} |
3570 |
+ |
|
3571 |
+ |
|
3572 |
+ |
static PyObject *_wrap_BossSession_locate(PyObject *self, PyObject *args) { |
3573 |
+ |
PyObject *resultobj; |
3574 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
3575 |
+ |
unsigned int arg2 ; |
3576 |
+ |
BossTask *result; |
3577 |
+ |
PyObject * obj0 = 0 ; |
3578 |
+ |
PyObject * obj1 = 0 ; |
3579 |
+ |
|
3580 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_locate",&obj0,&obj1)) goto fail; |
3581 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3582 |
+ |
arg2 = (unsigned int) PyInt_AsLong(obj1); |
3583 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
3584 |
+ |
{ |
3585 |
+ |
try { |
3586 |
+ |
result = (BossTask *)(arg1)->locate(arg2); |
3587 |
+ |
|
3588 |
+ |
}catch (const BossSchedFailure & e) { |
3589 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
3590 |
+ |
return NULL; |
3591 |
+ |
}catch (const std::exception& e) { |
3592 |
+ |
PyErr_SetString ( BossError, e.what() ); |
3593 |
+ |
return NULL; |
3594 |
+ |
} |
3595 |
+ |
} |
3596 |
+ |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 0); |
3597 |
+ |
return resultobj; |
3598 |
+ |
fail: |
3599 |
+ |
return NULL; |
3600 |
+ |
} |
3601 |
+ |
|
3602 |
+ |
|
3603 |
|
static PyObject *_wrap_BossSession_show(PyObject *self, PyObject *args) { |
3604 |
|
PyObject *resultobj; |
3605 |
|
BossSession *arg1 = (BossSession *) 0 ; |
3922 |
|
Py_INCREF(obj); |
3923 |
|
return Py_BuildValue((char *)""); |
3924 |
|
} |
3813 |
– |
static PyObject *_wrap_BossTaskException_key_set(PyObject *self, PyObject *args) { |
3814 |
– |
PyObject *resultobj; |
3815 |
– |
BossTaskException *arg1 = (BossTaskException *) 0 ; |
3816 |
– |
char *arg2 ; |
3817 |
– |
PyObject * obj0 = 0 ; |
3818 |
– |
|
3819 |
– |
if(!PyArg_ParseTuple(args,(char *)"Os:BossTaskException_key_set",&obj0,&arg2)) goto fail; |
3820 |
– |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3821 |
– |
{ |
3822 |
– |
if (arg2) { |
3823 |
– |
arg1->key = (char const *) (new char[strlen(arg2)+1]); |
3824 |
– |
strcpy((char *) arg1->key,arg2); |
3825 |
– |
}else { |
3826 |
– |
arg1->key = 0; |
3827 |
– |
} |
3828 |
– |
} |
3829 |
– |
Py_INCREF(Py_None); resultobj = Py_None; |
3830 |
– |
return resultobj; |
3831 |
– |
fail: |
3832 |
– |
return NULL; |
3833 |
– |
} |
3834 |
– |
|
3835 |
– |
|
3836 |
– |
static PyObject *_wrap_BossTaskException_key_get(PyObject *self, PyObject *args) { |
3837 |
– |
PyObject *resultobj; |
3838 |
– |
BossTaskException *arg1 = (BossTaskException *) 0 ; |
3839 |
– |
char *result; |
3840 |
– |
PyObject * obj0 = 0 ; |
3841 |
– |
|
3842 |
– |
if(!PyArg_ParseTuple(args,(char *)"O:BossTaskException_key_get",&obj0)) goto fail; |
3843 |
– |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3844 |
– |
result = (char *) ((arg1)->key); |
3845 |
– |
|
3846 |
– |
resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)""); |
3847 |
– |
return resultobj; |
3848 |
– |
fail: |
3849 |
– |
return NULL; |
3850 |
– |
} |
3851 |
– |
|
3852 |
– |
|
3925 |
|
static PyObject *_wrap_new_BossTaskException(PyObject *self, PyObject *args) { |
3926 |
|
PyObject *resultobj; |
3927 |
|
char *arg1 ; |
3947 |
|
} |
3948 |
|
|
3949 |
|
|
3878 |
– |
static PyObject *_wrap_BossTaskException_what(PyObject *self, PyObject *args) { |
3879 |
– |
PyObject *resultobj; |
3880 |
– |
BossTaskException *arg1 = (BossTaskException *) 0 ; |
3881 |
– |
char *result; |
3882 |
– |
PyObject * obj0 = 0 ; |
3883 |
– |
|
3884 |
– |
if(!PyArg_ParseTuple(args,(char *)"O:BossTaskException_what",&obj0)) goto fail; |
3885 |
– |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3886 |
– |
{ |
3887 |
– |
try { |
3888 |
– |
result = (char *)((BossTaskException const *)arg1)->what(); |
3889 |
– |
|
3890 |
– |
}catch (const BossSchedFailure & e) { |
3891 |
– |
PyErr_SetString ( SchedulerError, e.what() ); |
3892 |
– |
return NULL; |
3893 |
– |
}catch (const std::exception& e) { |
3894 |
– |
PyErr_SetString ( BossError, e.what() ); |
3895 |
– |
return NULL; |
3896 |
– |
} |
3897 |
– |
} |
3898 |
– |
resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)""); |
3899 |
– |
return resultobj; |
3900 |
– |
fail: |
3901 |
– |
return NULL; |
3902 |
– |
} |
3903 |
– |
|
3904 |
– |
|
3950 |
|
static PyObject *_wrap_delete_BossTaskException(PyObject *self, PyObject *args) { |
3951 |
|
PyObject *resultobj; |
3952 |
|
BossTaskException *arg1 = (BossTaskException *) 0 ; |
4416 |
|
} |
4417 |
|
|
4418 |
|
|
4419 |
+ |
static PyObject *_wrap_BossTask_chain(PyObject *self, PyObject *args) { |
4420 |
+ |
PyObject *resultobj; |
4421 |
+ |
BossTask *arg1 = (BossTask *) 0 ; |
4422 |
+ |
std::string *arg2 = 0 ; |
4423 |
+ |
BossChain result; |
4424 |
+ |
std::string temp2 ; |
4425 |
+ |
PyObject * obj0 = 0 ; |
4426 |
+ |
PyObject * obj1 = 0 ; |
4427 |
+ |
|
4428 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_chain",&obj0,&obj1)) goto fail; |
4429 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4430 |
+ |
{ |
4431 |
+ |
if (PyString_Check(obj1)) { |
4432 |
+ |
temp2 = std::string(PyString_AsString(obj1)); |
4433 |
+ |
arg2 = &temp2; |
4434 |
+ |
}else { |
4435 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
4436 |
+ |
} |
4437 |
+ |
} |
4438 |
+ |
{ |
4439 |
+ |
try { |
4440 |
+ |
result = ((BossTask const *)arg1)->chain((std::string const &)*arg2); |
4441 |
+ |
|
4442 |
+ |
}catch (const BossSchedFailure & e) { |
4443 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
4444 |
+ |
return NULL; |
4445 |
+ |
}catch (const std::exception& e) { |
4446 |
+ |
PyErr_SetString ( BossError, e.what() ); |
4447 |
+ |
return NULL; |
4448 |
+ |
} |
4449 |
+ |
} |
4450 |
+ |
{ |
4451 |
+ |
BossChain * resultptr; |
4452 |
+ |
resultptr = new BossChain((BossChain &) result); |
4453 |
+ |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossChain, 1); |
4454 |
+ |
} |
4455 |
+ |
return resultobj; |
4456 |
+ |
fail: |
4457 |
+ |
return NULL; |
4458 |
+ |
} |
4459 |
+ |
|
4460 |
+ |
|
4461 |
|
static PyObject *_wrap_BossTask_taskMap(PyObject *self, PyObject *args) { |
4462 |
|
PyObject *resultobj; |
4463 |
|
BossTask *arg1 = (BossTask *) 0 ; |
5354 |
|
} |
5355 |
|
|
5356 |
|
|
5357 |
+ |
static PyObject *_wrap_BossTask_schedulerQuery(PyObject *self, PyObject *args) { |
5358 |
+ |
PyObject *resultobj; |
5359 |
+ |
BossTask *arg1 = (BossTask *) 0 ; |
5360 |
+ |
int arg2 = (int) SCHEDULED ; |
5361 |
+ |
std::string const &arg3_defvalue = "all" ; |
5362 |
+ |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
5363 |
+ |
std::string const &arg4_defvalue = "" ; |
5364 |
+ |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
5365 |
+ |
std::string arg5 = (std::string) "" ; |
5366 |
+ |
std::string arg6 = (std::string) "" ; |
5367 |
+ |
std::string arg7 = (std::string) "" ; |
5368 |
+ |
std::string arg8 = (std::string) "" ; |
5369 |
+ |
unsigned int arg9 = (unsigned int) 0 ; |
5370 |
+ |
int result; |
5371 |
+ |
std::string temp3 ; |
5372 |
+ |
std::string temp4 ; |
5373 |
+ |
PyObject * obj0 = 0 ; |
5374 |
+ |
PyObject * obj2 = 0 ; |
5375 |
+ |
PyObject * obj3 = 0 ; |
5376 |
+ |
PyObject * obj4 = 0 ; |
5377 |
+ |
PyObject * obj5 = 0 ; |
5378 |
+ |
PyObject * obj6 = 0 ; |
5379 |
+ |
PyObject * obj7 = 0 ; |
5380 |
+ |
PyObject * obj8 = 0 ; |
5381 |
+ |
|
5382 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOO:BossTask_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
5383 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5384 |
+ |
if (obj2) { |
5385 |
+ |
{ |
5386 |
+ |
if (PyString_Check(obj2)) { |
5387 |
+ |
temp3 = std::string(PyString_AsString(obj2)); |
5388 |
+ |
arg3 = &temp3; |
5389 |
+ |
}else { |
5390 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5391 |
+ |
} |
5392 |
+ |
} |
5393 |
+ |
} |
5394 |
+ |
if (obj3) { |
5395 |
+ |
{ |
5396 |
+ |
if (PyString_Check(obj3)) { |
5397 |
+ |
temp4 = std::string(PyString_AsString(obj3)); |
5398 |
+ |
arg4 = &temp4; |
5399 |
+ |
}else { |
5400 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5401 |
+ |
} |
5402 |
+ |
} |
5403 |
+ |
} |
5404 |
+ |
if (obj4) { |
5405 |
+ |
{ |
5406 |
+ |
if (PyString_Check(obj4)) |
5407 |
+ |
arg5 = std::string(PyString_AsString(obj4)); |
5408 |
+ |
else |
5409 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5410 |
+ |
} |
5411 |
+ |
} |
5412 |
+ |
if (obj5) { |
5413 |
+ |
{ |
5414 |
+ |
if (PyString_Check(obj5)) |
5415 |
+ |
arg6 = std::string(PyString_AsString(obj5)); |
5416 |
+ |
else |
5417 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5418 |
+ |
} |
5419 |
+ |
} |
5420 |
+ |
if (obj6) { |
5421 |
+ |
{ |
5422 |
+ |
if (PyString_Check(obj6)) |
5423 |
+ |
arg7 = std::string(PyString_AsString(obj6)); |
5424 |
+ |
else |
5425 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5426 |
+ |
} |
5427 |
+ |
} |
5428 |
+ |
if (obj7) { |
5429 |
+ |
{ |
5430 |
+ |
if (PyString_Check(obj7)) |
5431 |
+ |
arg8 = std::string(PyString_AsString(obj7)); |
5432 |
+ |
else |
5433 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5434 |
+ |
} |
5435 |
+ |
} |
5436 |
+ |
if (obj8) { |
5437 |
+ |
arg9 = (unsigned int) PyInt_AsLong(obj8); |
5438 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
5439 |
+ |
} |
5440 |
+ |
{ |
5441 |
+ |
try { |
5442 |
+ |
result = (int)(arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8,arg9); |
5443 |
+ |
|
5444 |
+ |
}catch (const BossSchedFailure & e) { |
5445 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
5446 |
+ |
return NULL; |
5447 |
+ |
}catch (const std::exception& e) { |
5448 |
+ |
PyErr_SetString ( BossError, e.what() ); |
5449 |
+ |
return NULL; |
5450 |
+ |
} |
5451 |
+ |
} |
5452 |
+ |
resultobj = PyInt_FromLong((long)result); |
5453 |
+ |
return resultobj; |
5454 |
+ |
fail: |
5455 |
+ |
return NULL; |
5456 |
+ |
} |
5457 |
+ |
|
5458 |
+ |
|
5459 |
|
static PyObject *_wrap_BossTask_query(PyObject *self, PyObject *args) { |
5460 |
|
PyObject *resultobj; |
5461 |
|
BossTask *arg1 = (BossTask *) 0 ; |
5785 |
|
} |
5786 |
|
|
5787 |
|
|
5788 |
+ |
static PyObject *_wrap_BossTask_Chain(PyObject *self, PyObject *args) { |
5789 |
+ |
PyObject *resultobj; |
5790 |
+ |
BossTask *arg1 = (BossTask *) 0 ; |
5791 |
+ |
std::string *arg2 = 0 ; |
5792 |
+ |
PyObject *result; |
5793 |
+ |
std::string temp2 ; |
5794 |
+ |
PyObject * obj0 = 0 ; |
5795 |
+ |
PyObject * obj1 = 0 ; |
5796 |
+ |
|
5797 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_Chain",&obj0,&obj1)) goto fail; |
5798 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5799 |
+ |
{ |
5800 |
+ |
if (PyString_Check(obj1)) { |
5801 |
+ |
temp2 = std::string(PyString_AsString(obj1)); |
5802 |
+ |
arg2 = &temp2; |
5803 |
+ |
}else { |
5804 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5805 |
+ |
} |
5806 |
+ |
} |
5807 |
+ |
{ |
5808 |
+ |
try { |
5809 |
+ |
result = (PyObject *)BossTask_Chain(arg1,(std::string const &)*arg2); |
5810 |
+ |
|
5811 |
+ |
}catch (const BossSchedFailure & e) { |
5812 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
5813 |
+ |
return NULL; |
5814 |
+ |
}catch (const std::exception& e) { |
5815 |
+ |
PyErr_SetString ( BossError, e.what() ); |
5816 |
+ |
return NULL; |
5817 |
+ |
} |
5818 |
+ |
} |
5819 |
+ |
resultobj = result; |
5820 |
+ |
return resultobj; |
5821 |
+ |
fail: |
5822 |
+ |
return NULL; |
5823 |
+ |
} |
5824 |
+ |
|
5825 |
+ |
|
5826 |
|
static PyObject *_wrap_BossTask_jobStates(PyObject *self, PyObject *args) { |
5827 |
|
PyObject *resultobj; |
5828 |
|
BossTask *arg1 = (BossTask *) 0 ; |
7077 |
|
{ (char *)"BossSession_selectTasksByName", _wrap_BossSession_selectTasksByName, METH_VARARGS }, |
7078 |
|
{ (char *)"BossSession_query", _wrap_BossSession_query, METH_VARARGS }, |
7079 |
|
{ (char *)"BossSession_getTasksByName", _wrap_BossSession_getTasksByName, METH_VARARGS }, |
7080 |
+ |
{ (char *)"BossSession_getTasksByJobName", _wrap_BossSession_getTasksByJobName, METH_VARARGS }, |
7081 |
+ |
{ (char *)"BossSession_tasksInMemory", _wrap_BossSession_tasksInMemory, METH_VARARGS }, |
7082 |
+ |
{ (char *)"BossSession_locate", _wrap_BossSession_locate, METH_VARARGS }, |
7083 |
|
{ (char *)"BossSession_show", _wrap_BossSession_show, METH_VARARGS }, |
7084 |
|
{ (char *)"BossSession_CHTools", _wrap_BossSession_CHTools, METH_VARARGS }, |
7085 |
|
{ (char *)"BossSession_ProgramTypes", _wrap_BossSession_ProgramTypes, METH_VARARGS }, |
7088 |
|
{ (char *)"BossSession_schedListMatch", _wrap_BossSession_schedListMatch, METH_VARARGS }, |
7089 |
|
{ (char *)"BossSession_queryTasks", _wrap_BossSession_queryTasks, METH_VARARGS }, |
7090 |
|
{ (char *)"BossSession_swigregister", BossSession_swigregister, METH_VARARGS }, |
6861 |
– |
{ (char *)"BossTaskException_key_set", _wrap_BossTaskException_key_set, METH_VARARGS }, |
6862 |
– |
{ (char *)"BossTaskException_key_get", _wrap_BossTaskException_key_get, METH_VARARGS }, |
7091 |
|
{ (char *)"new_BossTaskException", _wrap_new_BossTaskException, METH_VARARGS }, |
6864 |
– |
{ (char *)"BossTaskException_what", _wrap_BossTaskException_what, METH_VARARGS }, |
7092 |
|
{ (char *)"delete_BossTaskException", _wrap_delete_BossTaskException, METH_VARARGS }, |
7093 |
|
{ (char *)"BossTaskException_swigregister", BossTaskException_swigregister, METH_VARARGS }, |
7094 |
|
{ (char *)"BossTask_job_begin", _wrap_BossTask_job_begin, METH_VARARGS }, |
7100 |
|
{ (char *)"new_BossTask", _wrap_new_BossTask, METH_VARARGS }, |
7101 |
|
{ (char *)"BossTask_id", _wrap_BossTask_id, METH_VARARGS }, |
7102 |
|
{ (char *)"BossTask_name", _wrap_BossTask_name, METH_VARARGS }, |
7103 |
+ |
{ (char *)"BossTask_chain", _wrap_BossTask_chain, METH_VARARGS }, |
7104 |
|
{ (char *)"BossTask_taskMap", _wrap_BossTask_taskMap, METH_VARARGS }, |
7105 |
|
{ (char *)"BossTask_jobsMap", _wrap_BossTask_jobsMap, METH_VARARGS }, |
7106 |
|
{ (char *)"BossTask_jobMap", _wrap_BossTask_jobMap, METH_VARARGS }, |
7114 |
|
{ (char *)"BossTask_getOutput", _wrap_BossTask_getOutput, METH_VARARGS }, |
7115 |
|
{ (char *)"BossTask_loadByName", _wrap_BossTask_loadByName, METH_VARARGS }, |
7116 |
|
{ (char *)"BossTask_load", _wrap_BossTask_load, METH_VARARGS }, |
7117 |
+ |
{ (char *)"BossTask_schedulerQuery", _wrap_BossTask_schedulerQuery, METH_VARARGS }, |
7118 |
|
{ (char *)"BossTask_query", _wrap_BossTask_query, METH_VARARGS }, |
7119 |
|
{ (char *)"BossTask_query_out", _wrap_BossTask_query_out, METH_VARARGS }, |
7120 |
|
{ (char *)"BossTask_clear", _wrap_BossTask_clear, METH_VARARGS }, |
7122 |
|
{ (char *)"BossTask_jobDict", _wrap_BossTask_jobDict, METH_VARARGS }, |
7123 |
|
{ (char *)"BossTask_jobsDict", _wrap_BossTask_jobsDict, METH_VARARGS }, |
7124 |
|
{ (char *)"BossTask_job", _wrap_BossTask_job, METH_VARARGS }, |
7125 |
+ |
{ (char *)"BossTask_Chain", _wrap_BossTask_Chain, METH_VARARGS }, |
7126 |
|
{ (char *)"BossTask_jobStates", _wrap_BossTask_jobStates, METH_VARARGS }, |
7127 |
|
{ (char *)"BossTask_jobStatistic", _wrap_BossTask_jobStatistic, METH_VARARGS }, |
7128 |
|
{ (char *)"BossTask_progDict", _wrap_BossTask_progDict, METH_VARARGS }, |
7159 |
|
static swig_type_info _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator[] = {{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator", 0, "std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator *", 0},{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator"},{0}}; |
7160 |
|
static swig_type_info _swigt__p_BossProgramExec[] = {{"_p_BossProgramExec", 0, "BossProgramExec *", 0},{"_p_BossProgramExec"},{0}}; |
7161 |
|
static swig_type_info _swigt__p_std__vectorTBossTask_p_t[] = {{"_p_std__vectorTBossTask_p_t", 0, "std::vector<BossTask * > *", 0},{"_p_std__vectorTBossTask_p_t"},{0}}; |
7162 |
+ |
static swig_type_info _swigt__p_BossChain[] = {{"_p_BossChain", 0, "BossChain *", 0},{"_p_BossChain"},{0}}; |
7163 |
|
static swig_type_info _swigt__p_std__mapTstd__string_std__mapTstd__string_std__string_t_t[] = {{"_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t", 0, "std::map<std::string,std::map<std::string,std::string > > *", 0},{"_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t"},{0}}; |
7164 |
|
static swig_type_info _swigt__p_BossTask[] = {{"_p_BossTask", 0, "BossTask *", 0},{"_p_BossTask"},{0}}; |
7165 |
|
static swig_type_info _swigt__p_BossTaskException[] = {{"_p_BossTaskException", 0, "BossTaskException *", 0},{"_p_BossTaskException"},{0}}; |
7173 |
|
static swig_type_info _swigt__p_std__vectorTstd__string_t[] = {{"_p_std__vectorTstd__string_t", 0, "std::vector<std::string > *", 0},{"_p_std__vectorTstd__string_t"},{0}}; |
7174 |
|
static swig_type_info _swigt__p_std__mapTstd__string_std__string_t[] = {{"_p_std__mapTstd__string_std__string_t", 0, "std::map<std::string,std::string > *", 0},{"_p_std__mapTstd__string_std__string_t"},{0}}; |
7175 |
|
static swig_type_info _swigt__p_BossAdministratorSession[] = {{"_p_BossAdministratorSession", 0, "BossAdministratorSession *", 0},{"_p_BossAdministratorSession"},{0}}; |
6945 |
– |
static swig_type_info _swigt__p_std__vectorTBossJob_p_t__const_iterator[] = {{"_p_std__vectorTBossJob_p_t__const_iterator", 0, "std::vector<BossJob * >::const_iterator *", 0},{"_p_std__vectorTBossJob_p_t__const_iterator"},{"_p_BossTask__job_iterator"},{0}}; |
7176 |
|
static swig_type_info _swigt__p_BossTask__job_iterator[] = {{"_p_BossTask__job_iterator", 0, "BossTask::job_iterator const *", 0},{"_p_BossTask__job_iterator"},{"_p_std__vectorTBossJob_p_t__const_iterator"},{0}}; |
7177 |
+ |
static swig_type_info _swigt__p_std__vectorTBossJob_p_t__const_iterator[] = {{"_p_std__vectorTBossJob_p_t__const_iterator", 0, "std::vector<BossJob * >::const_iterator *", 0},{"_p_std__vectorTBossJob_p_t__const_iterator"},{"_p_BossTask__job_iterator"},{0}}; |
7178 |
|
static swig_type_info _swigt__p_jobStates[] = {{"_p_jobStates", 0, "jobStates const &", 0},{"_p_jobStates"},{0}}; |
7179 |
|
|
7180 |
|
static swig_type_info *swig_types_initial[] = { |
7183 |
|
_swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator, |
7184 |
|
_swigt__p_BossProgramExec, |
7185 |
|
_swigt__p_std__vectorTBossTask_p_t, |
7186 |
+ |
_swigt__p_BossChain, |
7187 |
|
_swigt__p_std__mapTstd__string_std__mapTstd__string_std__string_t_t, |
7188 |
|
_swigt__p_BossTask, |
7189 |
|
_swigt__p_BossTaskException, |
7197 |
|
_swigt__p_std__vectorTstd__string_t, |
7198 |
|
_swigt__p_std__mapTstd__string_std__string_t, |
7199 |
|
_swigt__p_BossAdministratorSession, |
6968 |
– |
_swigt__p_std__vectorTBossJob_p_t__const_iterator, |
7200 |
|
_swigt__p_BossTask__job_iterator, |
7201 |
+ |
_swigt__p_std__vectorTBossJob_p_t__const_iterator, |
7202 |
|
_swigt__p_jobStates, |
7203 |
|
0 |
7204 |
|
}; |