658 |
|
#define SWIGTYPE_p_XMLDoc swig_types[1] |
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] |
661 |
> |
#define SWIGTYPE_p_BossChain 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] |
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] |
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]; |
675 |
> |
#define SWIGTYPE_p_BossTask__job_iterator swig_types[18] |
676 |
> |
#define SWIGTYPE_p_BossSession__task_iterator swig_types[19] |
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" |
961 |
|
std::vector<std::string> my_vec = self->showSchedulers(); |
962 |
|
return BossSession_show( self, my_vec ); |
963 |
|
} |
964 |
< |
PyObject *BossSession_schedListMatch(BossSession *self,std::string const &scheduler,std::string const &schclassad,std::string const &taskid,std::string const &jobid,unsigned int timeout,bool keepfile){ |
964 |
> |
PyObject *BossSession_schedListMatch(BossSession *self,std::string const &scheduler,std::string const &schclassad,std::string const &taskid,std::string const &jobid,unsigned int timeout){ |
965 |
|
std::vector<std::string> my_vec = self->listMatch( scheduler, |
966 |
|
schclassad, |
965 |
– |
keepfile, |
967 |
|
taskid, |
968 |
|
jobid, |
969 |
|
timeout); |
970 |
|
return BossSession_show( self, my_vec ); |
971 |
|
} |
972 |
< |
PyObject *BossSession_queryTasks(BossSession *self,std::string const &taskName,std::string const &taskRange,std::string after,std::string before,std::string user){ |
973 |
< |
PyObject * task_list = PyList_New(0); |
974 |
< |
std::vector <std::string> taskList; |
974 |
< |
if ( taskName.empty() ) { |
975 |
< |
taskList = self->selectTasks( taskRange, before, after, user); |
976 |
< |
} else { |
977 |
< |
taskList = self->selectTasksByName( taskName ); |
978 |
< |
} |
979 |
< |
for ( std::vector <std::string>::const_iterator it= taskList.begin(); |
980 |
< |
it!= taskList.end(); ++it ) { |
981 |
< |
PyList_Append( task_list, PyString_FromString(it->c_str() ) ); |
982 |
< |
} |
983 |
< |
return task_list; |
972 |
> |
void BossSession_schedulerQuery(BossSession *self,int filter_opt,std::string const &taskRange,std::string const &jobRange,std::string const &subn,std::string type,std::string user,std::string after,std::string before,unsigned int timeout,bool avoidCheck){ |
973 |
> |
self->query ( filter_opt, taskRange, jobRange, subn, type, user, after, before, timeout, avoidCheck ); |
974 |
> |
return; |
975 |
|
} |
976 |
|
void BossTask_appendToPyDict(BossTask const *self,PyObject *dict,BossAttributeContainer const &obj){ |
977 |
< |
std::string tmp; |
977 |
> |
|
978 |
|
BossAttributeContainer::const_iterator it_end = obj.end (); |
979 |
|
for (BossAttributeContainer::const_iterator it = obj.begin (); |
980 |
|
it != it_end; ++it) { |
1025 |
|
return job_dict; |
1026 |
|
} |
1027 |
|
PyObject *BossTask_job(BossTask *self,std::string const &jobid){ |
1028 |
< |
|
1028 |
> |
if ( ! self->jobsInMemory() ) self->load( ALL, jobid ); |
1029 |
|
PyObject * job_dict = PyDict_New(); |
1039 |
– |
self->load( ALL, jobid ); |
1030 |
|
BossTask_jobDict( self, &(*self)[ atoi(jobid.c_str()) ], job_dict ); |
1031 |
|
return job_dict; |
1032 |
|
} |
1033 |
+ |
PyObject *BossTask_Chain(BossTask *self,std::string const &jobid){ |
1034 |
+ |
|
1035 |
+ |
PyObject * chain_dict = PyDict_New(); |
1036 |
+ |
BossAttributeContainer obj = |
1037 |
+ |
self->chain( jobid ).getTableEntries("CHAIN"); |
1038 |
+ |
BossTask_appendToPyDict ( self, chain_dict, obj ); |
1039 |
+ |
return chain_dict; |
1040 |
+ |
} |
1041 |
|
PyObject *BossTask_jobStates(BossTask *self){ |
1042 |
|
|
1043 |
|
PyObject * job_dict = PyDict_New(); |
1052 |
|
} |
1053 |
|
return job_dict; |
1054 |
|
} |
1055 |
+ |
PyObject *BossTask_joblist(BossTask *self){ |
1056 |
+ |
if ( self->job_begin () == self->job_end ()) self->load(ALL); |
1057 |
+ |
PyObject * job_list = PyList_New( self->jobsInMemory() ); |
1058 |
+ |
unsigned int index = 0; |
1059 |
+ |
for (BossTask::job_iterator jit = self->job_begin (); |
1060 |
+ |
jit != self->job_end (); ++jit, ++index) { |
1061 |
+ |
PyList_SetItem( job_list, |
1062 |
+ |
index, |
1063 |
+ |
PyString_FromString( ( (*jit)->chainId() ).c_str() ) |
1064 |
+ |
); |
1065 |
+ |
} |
1066 |
+ |
return job_list; |
1067 |
+ |
} |
1068 |
|
PyObject *BossTask_jobStatistic(BossTask *self){ |
1069 |
|
|
1070 |
|
PyObject * job_dict = PyDict_New(); |
1090 |
|
|
1091 |
|
PyObject * job_dict = PyDict_New(); |
1092 |
|
|
1082 |
– |
std::string tmp; |
1083 |
– |
|
1093 |
|
// PROGRAM |
1094 |
|
BossAttributeContainer obj = |
1095 |
|
(programs_it->first).getTableEntries("PROGRAM"); |
1168 |
|
|
1169 |
|
const BossJob * jH = &((*self)[atoi( jobid.c_str() )]); |
1170 |
|
BossProgramExec programExec = self->queryProgramExec( jH, programId ); |
1171 |
< |
|
1171 |
> |
BossAttributeContainer obj = programExec.getKeys (); |
1172 |
> |
BossTask_appendToPyDict ( self, job_dict, obj ); |
1173 |
> |
|
1174 |
|
std::vector < BossAttributeContainer >::const_iterator it; |
1175 |
|
std::vector < BossAttributeContainer >::const_iterator it_end = programExec.specEnd (); |
1176 |
|
for ( it = programExec.specBegin (); it != it_end; ++it) { |
2529 |
|
} |
2530 |
|
|
2531 |
|
|
2532 |
+ |
static PyObject *_wrap_BossSession_task_begin(PyObject *self, PyObject *args) { |
2533 |
+ |
PyObject *resultobj; |
2534 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
2535 |
+ |
BossSession::task_iterator result; |
2536 |
+ |
PyObject * obj0 = 0 ; |
2537 |
+ |
|
2538 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_task_begin",&obj0)) goto fail; |
2539 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2540 |
+ |
{ |
2541 |
+ |
try { |
2542 |
+ |
result = ((BossSession const *)arg1)->task_begin(); |
2543 |
+ |
|
2544 |
+ |
}catch (const BossSchedFailure & e) { |
2545 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2546 |
+ |
return NULL; |
2547 |
+ |
}catch (const std::exception& e) { |
2548 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2549 |
+ |
return NULL; |
2550 |
+ |
} |
2551 |
+ |
} |
2552 |
+ |
{ |
2553 |
+ |
BossSession::task_iterator * resultptr; |
2554 |
+ |
resultptr = new BossSession::task_iterator((BossSession::task_iterator &) result); |
2555 |
+ |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossSession__task_iterator, 1); |
2556 |
+ |
} |
2557 |
+ |
return resultobj; |
2558 |
+ |
fail: |
2559 |
+ |
return NULL; |
2560 |
+ |
} |
2561 |
+ |
|
2562 |
+ |
|
2563 |
+ |
static PyObject *_wrap_BossSession_task_end(PyObject *self, PyObject *args) { |
2564 |
+ |
PyObject *resultobj; |
2565 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
2566 |
+ |
BossSession::task_iterator result; |
2567 |
+ |
PyObject * obj0 = 0 ; |
2568 |
+ |
|
2569 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_task_end",&obj0)) goto fail; |
2570 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2571 |
+ |
{ |
2572 |
+ |
try { |
2573 |
+ |
result = ((BossSession const *)arg1)->task_end(); |
2574 |
+ |
|
2575 |
+ |
}catch (const BossSchedFailure & e) { |
2576 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2577 |
+ |
return NULL; |
2578 |
+ |
}catch (const std::exception& e) { |
2579 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2580 |
+ |
return NULL; |
2581 |
+ |
} |
2582 |
+ |
} |
2583 |
+ |
{ |
2584 |
+ |
BossSession::task_iterator * resultptr; |
2585 |
+ |
resultptr = new BossSession::task_iterator((BossSession::task_iterator &) result); |
2586 |
+ |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossSession__task_iterator, 1); |
2587 |
+ |
} |
2588 |
+ |
return resultobj; |
2589 |
+ |
fail: |
2590 |
+ |
return NULL; |
2591 |
+ |
} |
2592 |
+ |
|
2593 |
+ |
|
2594 |
+ |
static PyObject *_wrap_BossSession_tasksInMemory(PyObject *self, PyObject *args) { |
2595 |
+ |
PyObject *resultobj; |
2596 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
2597 |
+ |
unsigned int result; |
2598 |
+ |
PyObject * obj0 = 0 ; |
2599 |
+ |
|
2600 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossSession_tasksInMemory",&obj0)) goto fail; |
2601 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2602 |
+ |
{ |
2603 |
+ |
try { |
2604 |
+ |
result = (unsigned int)((BossSession const *)arg1)->tasksInMemory(); |
2605 |
+ |
|
2606 |
+ |
}catch (const BossSchedFailure & e) { |
2607 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2608 |
+ |
return NULL; |
2609 |
+ |
}catch (const std::exception& e) { |
2610 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2611 |
+ |
return NULL; |
2612 |
+ |
} |
2613 |
+ |
} |
2614 |
+ |
resultobj = PyInt_FromLong((long)result); |
2615 |
+ |
return resultobj; |
2616 |
+ |
fail: |
2617 |
+ |
return NULL; |
2618 |
+ |
} |
2619 |
+ |
|
2620 |
+ |
|
2621 |
+ |
static PyObject *_wrap_BossSession_locate(PyObject *self, PyObject *args) { |
2622 |
+ |
PyObject *resultobj; |
2623 |
+ |
BossSession *arg1 = (BossSession *) 0 ; |
2624 |
+ |
unsigned int arg2 ; |
2625 |
+ |
BossTask *result; |
2626 |
+ |
PyObject * obj0 = 0 ; |
2627 |
+ |
PyObject * obj1 = 0 ; |
2628 |
+ |
|
2629 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_locate",&obj0,&obj1)) goto fail; |
2630 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2631 |
+ |
arg2 = (unsigned int) PyInt_AsLong(obj1); |
2632 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
2633 |
+ |
{ |
2634 |
+ |
try { |
2635 |
+ |
result = (BossTask *)((BossSession const *)arg1)->locate(arg2); |
2636 |
+ |
|
2637 |
+ |
}catch (const BossSchedFailure & e) { |
2638 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
2639 |
+ |
return NULL; |
2640 |
+ |
}catch (const std::exception& e) { |
2641 |
+ |
PyErr_SetString ( BossError, e.what() ); |
2642 |
+ |
return NULL; |
2643 |
+ |
} |
2644 |
+ |
} |
2645 |
+ |
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 0); |
2646 |
+ |
return resultobj; |
2647 |
+ |
fail: |
2648 |
+ |
return NULL; |
2649 |
+ |
} |
2650 |
+ |
|
2651 |
+ |
|
2652 |
|
static PyObject *_wrap_BossSession_makeBossTask(PyObject *self, PyObject *args) { |
2653 |
|
PyObject *resultobj; |
2654 |
|
BossSession *arg1 = (BossSession *) 0 ; |
3116 |
|
BossSession *arg1 = (BossSession *) 0 ; |
3117 |
|
std::string *arg2 = 0 ; |
3118 |
|
std::string *arg3 = 0 ; |
3119 |
< |
bool arg4 = (bool) false ; |
3119 |
> |
std::string const &arg4_defvalue = "" ; |
3120 |
> |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
3121 |
|
std::string const &arg5_defvalue = "" ; |
3122 |
|
std::string *arg5 = (std::string *) &arg5_defvalue ; |
3123 |
< |
std::string const &arg6_defvalue = "" ; |
2992 |
< |
std::string *arg6 = (std::string *) &arg6_defvalue ; |
2993 |
< |
unsigned int arg7 = (unsigned int) 0 ; |
3123 |
> |
unsigned int arg6 = (unsigned int) 0 ; |
3124 |
|
std::vector<std::string > result; |
3125 |
|
std::string temp2 ; |
3126 |
|
std::string temp3 ; |
3127 |
+ |
std::string temp4 ; |
3128 |
|
std::string temp5 ; |
2998 |
– |
std::string temp6 ; |
3129 |
|
PyObject * obj0 = 0 ; |
3130 |
|
PyObject * obj1 = 0 ; |
3131 |
|
PyObject * obj2 = 0 ; |
3132 |
|
PyObject * obj3 = 0 ; |
3133 |
|
PyObject * obj4 = 0 ; |
3134 |
|
PyObject * obj5 = 0 ; |
3005 |
– |
PyObject * obj6 = 0 ; |
3135 |
|
|
3136 |
< |
if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:BossSession_listMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
3136 |
> |
if(!PyArg_ParseTuple(args,(char *)"OOO|OOO:BossSession_listMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
3137 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3138 |
|
{ |
3139 |
|
if (PyString_Check(obj1)) { |
3152 |
|
} |
3153 |
|
} |
3154 |
|
if (obj3) { |
3026 |
– |
arg4 = PyInt_AsLong(obj3) ? true : false; |
3027 |
– |
if (PyErr_Occurred()) SWIG_fail; |
3028 |
– |
} |
3029 |
– |
if (obj4) { |
3155 |
|
{ |
3156 |
< |
if (PyString_Check(obj4)) { |
3157 |
< |
temp5 = std::string(PyString_AsString(obj4)); |
3158 |
< |
arg5 = &temp5; |
3156 |
> |
if (PyString_Check(obj3)) { |
3157 |
> |
temp4 = std::string(PyString_AsString(obj3)); |
3158 |
> |
arg4 = &temp4; |
3159 |
|
}else { |
3160 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
3161 |
|
} |
3162 |
|
} |
3163 |
|
} |
3164 |
< |
if (obj5) { |
3164 |
> |
if (obj4) { |
3165 |
|
{ |
3166 |
< |
if (PyString_Check(obj5)) { |
3167 |
< |
temp6 = std::string(PyString_AsString(obj5)); |
3168 |
< |
arg6 = &temp6; |
3166 |
> |
if (PyString_Check(obj4)) { |
3167 |
> |
temp5 = std::string(PyString_AsString(obj4)); |
3168 |
> |
arg5 = &temp5; |
3169 |
|
}else { |
3170 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
3171 |
|
} |
3172 |
|
} |
3173 |
|
} |
3174 |
< |
if (obj6) { |
3175 |
< |
arg7 = (unsigned int) PyInt_AsLong(obj6); |
3174 |
> |
if (obj5) { |
3175 |
> |
arg6 = (unsigned int) PyInt_AsLong(obj5); |
3176 |
|
if (PyErr_Occurred()) SWIG_fail; |
3177 |
|
} |
3178 |
|
{ |
3179 |
|
try { |
3180 |
< |
result = (arg1)->listMatch((std::string const &)*arg2,(std::string const &)*arg3,arg4,(std::string const &)*arg5,(std::string const &)*arg6,arg7); |
3180 |
> |
result = (arg1)->listMatch((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6); |
3181 |
|
|
3182 |
|
}catch (const BossSchedFailure & e) { |
3183 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
3199 |
|
} |
3200 |
|
|
3201 |
|
|
3202 |
< |
static PyObject *_wrap_BossSession_schedulerQuery(PyObject *self, PyObject *args) { |
3202 |
> |
static PyObject *_wrap_BossSession_query(PyObject *self, PyObject *args) { |
3203 |
|
PyObject *resultobj; |
3204 |
|
BossSession *arg1 = (BossSession *) 0 ; |
3205 |
|
int arg2 = (int) SCHEDULED ; |
3214 |
|
std::string arg8 = (std::string) "" ; |
3215 |
|
std::string arg9 = (std::string) "" ; |
3216 |
|
unsigned int arg10 = (unsigned int) 0 ; |
3217 |
+ |
bool arg11 = (bool) false ; |
3218 |
|
std::string temp3 ; |
3219 |
|
std::string temp4 ; |
3220 |
|
std::string temp5 ; |
3227 |
|
PyObject * obj7 = 0 ; |
3228 |
|
PyObject * obj8 = 0 ; |
3229 |
|
PyObject * obj9 = 0 ; |
3230 |
+ |
PyObject * obj10 = 0 ; |
3231 |
|
|
3232 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossSession_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
3232 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOOO:BossSession_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
3233 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3234 |
|
if (obj2) { |
3235 |
|
{ |
3297 |
|
arg10 = (unsigned int) PyInt_AsLong(obj9); |
3298 |
|
if (PyErr_Occurred()) SWIG_fail; |
3299 |
|
} |
3300 |
+ |
if (obj10) { |
3301 |
+ |
arg11 = PyInt_AsLong(obj10) ? true : false; |
3302 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
3303 |
+ |
} |
3304 |
|
{ |
3305 |
|
try { |
3306 |
< |
(arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10); |
3306 |
> |
(arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10,arg11); |
3307 |
|
|
3308 |
|
}catch (const BossSchedFailure & e) { |
3309 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
3320 |
|
} |
3321 |
|
|
3322 |
|
|
3323 |
< |
static PyObject *_wrap_BossSession_selectTasks(PyObject *self, PyObject *args) { |
3323 |
> |
static PyObject *_wrap_BossSession_getTasksByName(PyObject *self, PyObject *args) { |
3324 |
|
PyObject *resultobj; |
3325 |
|
BossSession *arg1 = (BossSession *) 0 ; |
3326 |
< |
std::string const &arg2_defvalue = "all" ; |
3327 |
< |
std::string *arg2 = (std::string *) &arg2_defvalue ; |
3197 |
< |
std::string const &arg3_defvalue = "" ; |
3198 |
< |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
3199 |
< |
std::string const &arg4_defvalue = "" ; |
3200 |
< |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
3201 |
< |
std::string const &arg5_defvalue = "" ; |
3202 |
< |
std::string *arg5 = (std::string *) &arg5_defvalue ; |
3203 |
< |
std::vector<std::string > result; |
3326 |
> |
std::string *arg2 = 0 ; |
3327 |
> |
unsigned int result; |
3328 |
|
std::string temp2 ; |
3205 |
– |
std::string temp3 ; |
3206 |
– |
std::string temp4 ; |
3207 |
– |
std::string temp5 ; |
3329 |
|
PyObject * obj0 = 0 ; |
3330 |
|
PyObject * obj1 = 0 ; |
3210 |
– |
PyObject * obj2 = 0 ; |
3211 |
– |
PyObject * obj3 = 0 ; |
3212 |
– |
PyObject * obj4 = 0 ; |
3331 |
|
|
3332 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|OOOO:BossSession_selectTasks",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
3332 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_getTasksByName",&obj0,&obj1)) goto fail; |
3333 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3334 |
< |
if (obj1) { |
3335 |
< |
{ |
3336 |
< |
if (PyString_Check(obj1)) { |
3337 |
< |
temp2 = std::string(PyString_AsString(obj1)); |
3338 |
< |
arg2 = &temp2; |
3339 |
< |
}else { |
3222 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
3223 |
< |
} |
3224 |
< |
} |
3225 |
< |
} |
3226 |
< |
if (obj2) { |
3227 |
< |
{ |
3228 |
< |
if (PyString_Check(obj2)) { |
3229 |
< |
temp3 = std::string(PyString_AsString(obj2)); |
3230 |
< |
arg3 = &temp3; |
3231 |
< |
}else { |
3232 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
3233 |
< |
} |
3234 |
< |
} |
3235 |
< |
} |
3236 |
< |
if (obj3) { |
3237 |
< |
{ |
3238 |
< |
if (PyString_Check(obj3)) { |
3239 |
< |
temp4 = std::string(PyString_AsString(obj3)); |
3240 |
< |
arg4 = &temp4; |
3241 |
< |
}else { |
3242 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
3243 |
< |
} |
3244 |
< |
} |
3245 |
< |
} |
3246 |
< |
if (obj4) { |
3247 |
< |
{ |
3248 |
< |
if (PyString_Check(obj4)) { |
3249 |
< |
temp5 = std::string(PyString_AsString(obj4)); |
3250 |
< |
arg5 = &temp5; |
3251 |
< |
}else { |
3252 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
3253 |
< |
} |
3334 |
> |
{ |
3335 |
> |
if (PyString_Check(obj1)) { |
3336 |
> |
temp2 = std::string(PyString_AsString(obj1)); |
3337 |
> |
arg2 = &temp2; |
3338 |
> |
}else { |
3339 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3340 |
|
} |
3341 |
|
} |
3342 |
|
{ |
3343 |
|
try { |
3344 |
< |
result = (arg1)->selectTasks((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5); |
3344 |
> |
result = (unsigned int)(arg1)->getTasksByName((std::string const &)*arg2); |
3345 |
|
|
3346 |
|
}catch (const BossSchedFailure & e) { |
3347 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
3351 |
|
return NULL; |
3352 |
|
} |
3353 |
|
} |
3354 |
< |
{ |
3269 |
< |
resultobj = PyTuple_New((&result)->size()); |
3270 |
< |
for (unsigned int i=0; i<(&result)->size(); i++) |
3271 |
< |
PyTuple_SetItem(resultobj,i, |
3272 |
< |
SwigString_FromString(((std::vector<std::string > &)result)[i])); |
3273 |
< |
} |
3354 |
> |
resultobj = PyInt_FromLong((long)result); |
3355 |
|
return resultobj; |
3356 |
|
fail: |
3357 |
|
return NULL; |
3358 |
|
} |
3359 |
|
|
3360 |
|
|
3361 |
< |
static PyObject *_wrap_BossSession_selectTasksByName(PyObject *self, PyObject *args) { |
3361 |
> |
static PyObject *_wrap_BossSession_getTasksByTaskInfo(PyObject *self, PyObject *args) { |
3362 |
|
PyObject *resultobj; |
3363 |
|
BossSession *arg1 = (BossSession *) 0 ; |
3364 |
|
std::string *arg2 = 0 ; |
3365 |
< |
std::vector<std::string > result; |
3365 |
> |
unsigned int result; |
3366 |
|
std::string temp2 ; |
3367 |
|
PyObject * obj0 = 0 ; |
3368 |
|
PyObject * obj1 = 0 ; |
3369 |
|
|
3370 |
< |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_selectTasksByName",&obj0,&obj1)) goto fail; |
3370 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_getTasksByTaskInfo",&obj0,&obj1)) goto fail; |
3371 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3372 |
|
{ |
3373 |
|
if (PyString_Check(obj1)) { |
3379 |
|
} |
3380 |
|
{ |
3381 |
|
try { |
3382 |
< |
result = (arg1)->selectTasksByName((std::string const &)*arg2); |
3382 |
> |
result = (unsigned int)(arg1)->getTasksByTaskInfo((std::string const &)*arg2); |
3383 |
|
|
3384 |
|
}catch (const BossSchedFailure & e) { |
3385 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
3389 |
|
return NULL; |
3390 |
|
} |
3391 |
|
} |
3392 |
< |
{ |
3312 |
< |
resultobj = PyTuple_New((&result)->size()); |
3313 |
< |
for (unsigned int i=0; i<(&result)->size(); i++) |
3314 |
< |
PyTuple_SetItem(resultobj,i, |
3315 |
< |
SwigString_FromString(((std::vector<std::string > &)result)[i])); |
3316 |
< |
} |
3317 |
< |
return resultobj; |
3318 |
< |
fail: |
3319 |
< |
return NULL; |
3320 |
< |
} |
3321 |
< |
|
3322 |
< |
|
3323 |
< |
static PyObject *_wrap_BossSession_query(PyObject *self, PyObject *args) { |
3324 |
< |
PyObject *resultobj; |
3325 |
< |
BossSession *arg1 = (BossSession *) 0 ; |
3326 |
< |
int arg2 = (int) SCHEDULED ; |
3327 |
< |
std::string const &arg3_defvalue = "all" ; |
3328 |
< |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
3329 |
< |
std::string const &arg4_defvalue = "all" ; |
3330 |
< |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
3331 |
< |
std::string const &arg5_defvalue = "" ; |
3332 |
< |
std::string *arg5 = (std::string *) &arg5_defvalue ; |
3333 |
< |
std::string arg6 = (std::string) "" ; |
3334 |
< |
std::string arg7 = (std::string) "" ; |
3335 |
< |
std::string arg8 = (std::string) "" ; |
3336 |
< |
std::string arg9 = (std::string) "" ; |
3337 |
< |
unsigned int arg10 = (unsigned int) 0 ; |
3338 |
< |
bool arg11 = (bool) false ; |
3339 |
< |
SwigValueWrapper< std::vector<BossTask * > > result; |
3340 |
< |
std::string temp3 ; |
3341 |
< |
std::string temp4 ; |
3342 |
< |
std::string temp5 ; |
3343 |
< |
PyObject * obj0 = 0 ; |
3344 |
< |
PyObject * obj2 = 0 ; |
3345 |
< |
PyObject * obj3 = 0 ; |
3346 |
< |
PyObject * obj4 = 0 ; |
3347 |
< |
PyObject * obj5 = 0 ; |
3348 |
< |
PyObject * obj6 = 0 ; |
3349 |
< |
PyObject * obj7 = 0 ; |
3350 |
< |
PyObject * obj8 = 0 ; |
3351 |
< |
PyObject * obj9 = 0 ; |
3352 |
< |
PyObject * obj10 = 0 ; |
3353 |
< |
|
3354 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOOO:BossSession_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
3355 |
< |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3356 |
< |
if (obj2) { |
3357 |
< |
{ |
3358 |
< |
if (PyString_Check(obj2)) { |
3359 |
< |
temp3 = std::string(PyString_AsString(obj2)); |
3360 |
< |
arg3 = &temp3; |
3361 |
< |
}else { |
3362 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
3363 |
< |
} |
3364 |
< |
} |
3365 |
< |
} |
3366 |
< |
if (obj3) { |
3367 |
< |
{ |
3368 |
< |
if (PyString_Check(obj3)) { |
3369 |
< |
temp4 = std::string(PyString_AsString(obj3)); |
3370 |
< |
arg4 = &temp4; |
3371 |
< |
}else { |
3372 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
3373 |
< |
} |
3374 |
< |
} |
3375 |
< |
} |
3376 |
< |
if (obj4) { |
3377 |
< |
{ |
3378 |
< |
if (PyString_Check(obj4)) { |
3379 |
< |
temp5 = std::string(PyString_AsString(obj4)); |
3380 |
< |
arg5 = &temp5; |
3381 |
< |
}else { |
3382 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
3383 |
< |
} |
3384 |
< |
} |
3385 |
< |
} |
3386 |
< |
if (obj5) { |
3387 |
< |
{ |
3388 |
< |
if (PyString_Check(obj5)) |
3389 |
< |
arg6 = std::string(PyString_AsString(obj5)); |
3390 |
< |
else |
3391 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
3392 |
< |
} |
3393 |
< |
} |
3394 |
< |
if (obj6) { |
3395 |
< |
{ |
3396 |
< |
if (PyString_Check(obj6)) |
3397 |
< |
arg7 = std::string(PyString_AsString(obj6)); |
3398 |
< |
else |
3399 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
3400 |
< |
} |
3401 |
< |
} |
3402 |
< |
if (obj7) { |
3403 |
< |
{ |
3404 |
< |
if (PyString_Check(obj7)) |
3405 |
< |
arg8 = std::string(PyString_AsString(obj7)); |
3406 |
< |
else |
3407 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
3408 |
< |
} |
3409 |
< |
} |
3410 |
< |
if (obj8) { |
3411 |
< |
{ |
3412 |
< |
if (PyString_Check(obj8)) |
3413 |
< |
arg9 = std::string(PyString_AsString(obj8)); |
3414 |
< |
else |
3415 |
< |
SWIG_exception(SWIG_TypeError, "string expected"); |
3416 |
< |
} |
3417 |
< |
} |
3418 |
< |
if (obj9) { |
3419 |
< |
arg10 = (unsigned int) PyInt_AsLong(obj9); |
3420 |
< |
if (PyErr_Occurred()) SWIG_fail; |
3421 |
< |
} |
3422 |
< |
if (obj10) { |
3423 |
< |
arg11 = PyInt_AsLong(obj10) ? true : false; |
3424 |
< |
if (PyErr_Occurred()) SWIG_fail; |
3425 |
< |
} |
3426 |
< |
{ |
3427 |
< |
try { |
3428 |
< |
result = (arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10,arg11); |
3429 |
< |
|
3430 |
< |
}catch (const BossSchedFailure & e) { |
3431 |
< |
PyErr_SetString ( SchedulerError, e.what() ); |
3432 |
< |
return NULL; |
3433 |
< |
}catch (const std::exception& e) { |
3434 |
< |
PyErr_SetString ( BossError, e.what() ); |
3435 |
< |
return NULL; |
3436 |
< |
} |
3437 |
< |
} |
3438 |
< |
{ |
3439 |
< |
std::vector<BossTask * > * resultptr; |
3440 |
< |
resultptr = new std::vector<BossTask * >((std::vector<BossTask * > &) result); |
3441 |
< |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTBossTask_p_t, 1); |
3442 |
< |
} |
3392 |
> |
resultobj = PyInt_FromLong((long)result); |
3393 |
|
return resultobj; |
3394 |
|
fail: |
3395 |
|
return NULL; |
3396 |
|
} |
3397 |
|
|
3398 |
|
|
3399 |
< |
static PyObject *_wrap_BossSession_getTasksByName(PyObject *self, PyObject *args) { |
3399 |
> |
static PyObject *_wrap_BossSession_getTasksByJobName(PyObject *self, PyObject *args) { |
3400 |
|
PyObject *resultobj; |
3401 |
|
BossSession *arg1 = (BossSession *) 0 ; |
3402 |
|
std::string *arg2 = 0 ; |
3403 |
< |
SwigValueWrapper< std::vector<BossTask * > > result; |
3403 |
> |
unsigned int result; |
3404 |
|
std::string temp2 ; |
3405 |
|
PyObject * obj0 = 0 ; |
3406 |
|
PyObject * obj1 = 0 ; |
3407 |
|
|
3408 |
< |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_getTasksByName",&obj0,&obj1)) goto fail; |
3408 |
> |
if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_getTasksByJobName",&obj0,&obj1)) goto fail; |
3409 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3410 |
|
{ |
3411 |
|
if (PyString_Check(obj1)) { |
3417 |
|
} |
3418 |
|
{ |
3419 |
|
try { |
3420 |
< |
result = (arg1)->getTasksByName((std::string const &)*arg2); |
3420 |
> |
result = (unsigned int)(arg1)->getTasksByJobName((std::string const &)*arg2); |
3421 |
|
|
3422 |
|
}catch (const BossSchedFailure & e) { |
3423 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
3427 |
|
return NULL; |
3428 |
|
} |
3429 |
|
} |
3430 |
< |
{ |
3481 |
< |
std::vector<BossTask * > * resultptr; |
3482 |
< |
resultptr = new std::vector<BossTask * >((std::vector<BossTask * > &) result); |
3483 |
< |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTBossTask_p_t, 1); |
3484 |
< |
} |
3430 |
> |
resultobj = PyInt_FromLong((long)result); |
3431 |
|
return resultobj; |
3432 |
|
fail: |
3433 |
|
return NULL; |
3585 |
|
std::string const &arg5_defvalue = "" ; |
3586 |
|
std::string *arg5 = (std::string *) &arg5_defvalue ; |
3587 |
|
unsigned int arg6 = (unsigned int) 0 ; |
3642 |
– |
bool arg7 = (bool) false ; |
3588 |
|
PyObject *result; |
3589 |
|
std::string temp2 ; |
3590 |
|
std::string temp3 ; |
3596 |
|
PyObject * obj3 = 0 ; |
3597 |
|
PyObject * obj4 = 0 ; |
3598 |
|
PyObject * obj5 = 0 ; |
3654 |
– |
PyObject * obj6 = 0 ; |
3599 |
|
|
3600 |
< |
if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:BossSession_schedListMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
3600 |
> |
if(!PyArg_ParseTuple(args,(char *)"OOO|OOO:BossSession_schedListMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
3601 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3602 |
|
{ |
3603 |
|
if (PyString_Check(obj1)) { |
3639 |
|
arg6 = (unsigned int) PyInt_AsLong(obj5); |
3640 |
|
if (PyErr_Occurred()) SWIG_fail; |
3641 |
|
} |
3698 |
– |
if (obj6) { |
3699 |
– |
arg7 = PyInt_AsLong(obj6) ? true : false; |
3700 |
– |
if (PyErr_Occurred()) SWIG_fail; |
3701 |
– |
} |
3642 |
|
{ |
3643 |
|
try { |
3644 |
< |
result = (PyObject *)BossSession_schedListMatch(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7); |
3644 |
> |
result = (PyObject *)BossSession_schedListMatch(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6); |
3645 |
|
|
3646 |
|
}catch (const BossSchedFailure & e) { |
3647 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
3658 |
|
} |
3659 |
|
|
3660 |
|
|
3661 |
< |
static PyObject *_wrap_BossSession_queryTasks(PyObject *self, PyObject *args) { |
3661 |
> |
static PyObject *_wrap_BossSession_schedulerQuery(PyObject *self, PyObject *args) { |
3662 |
|
PyObject *resultobj; |
3663 |
|
BossSession *arg1 = (BossSession *) 0 ; |
3664 |
< |
std::string const &arg2_defvalue = "" ; |
3725 |
< |
std::string *arg2 = (std::string *) &arg2_defvalue ; |
3664 |
> |
int arg2 = (int) SCHEDULED ; |
3665 |
|
std::string const &arg3_defvalue = "all" ; |
3666 |
|
std::string *arg3 = (std::string *) &arg3_defvalue ; |
3667 |
< |
std::string arg4 = (std::string) "" ; |
3668 |
< |
std::string arg5 = (std::string) "" ; |
3667 |
> |
std::string const &arg4_defvalue = "all" ; |
3668 |
> |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
3669 |
> |
std::string const &arg5_defvalue = "" ; |
3670 |
> |
std::string *arg5 = (std::string *) &arg5_defvalue ; |
3671 |
|
std::string arg6 = (std::string) "" ; |
3672 |
< |
PyObject *result; |
3673 |
< |
std::string temp2 ; |
3672 |
> |
std::string arg7 = (std::string) "" ; |
3673 |
> |
std::string arg8 = (std::string) "" ; |
3674 |
> |
std::string arg9 = (std::string) "" ; |
3675 |
> |
unsigned int arg10 = (unsigned int) 0 ; |
3676 |
> |
bool arg11 = (bool) false ; |
3677 |
|
std::string temp3 ; |
3678 |
+ |
std::string temp4 ; |
3679 |
+ |
std::string temp5 ; |
3680 |
|
PyObject * obj0 = 0 ; |
3735 |
– |
PyObject * obj1 = 0 ; |
3681 |
|
PyObject * obj2 = 0 ; |
3682 |
|
PyObject * obj3 = 0 ; |
3683 |
|
PyObject * obj4 = 0 ; |
3684 |
|
PyObject * obj5 = 0 ; |
3685 |
+ |
PyObject * obj6 = 0 ; |
3686 |
+ |
PyObject * obj7 = 0 ; |
3687 |
+ |
PyObject * obj8 = 0 ; |
3688 |
+ |
PyObject * obj9 = 0 ; |
3689 |
+ |
PyObject * obj10 = 0 ; |
3690 |
|
|
3691 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|OOOOO:BossSession_queryTasks",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
3691 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOOO:BossSession_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
3692 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3693 |
< |
if (obj1) { |
3693 |
> |
if (obj2) { |
3694 |
|
{ |
3695 |
< |
if (PyString_Check(obj1)) { |
3696 |
< |
temp2 = std::string(PyString_AsString(obj1)); |
3697 |
< |
arg2 = &temp2; |
3695 |
> |
if (PyString_Check(obj2)) { |
3696 |
> |
temp3 = std::string(PyString_AsString(obj2)); |
3697 |
> |
arg3 = &temp3; |
3698 |
|
}else { |
3699 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
3700 |
|
} |
3701 |
|
} |
3702 |
|
} |
3703 |
< |
if (obj2) { |
3703 |
> |
if (obj3) { |
3704 |
|
{ |
3705 |
< |
if (PyString_Check(obj2)) { |
3706 |
< |
temp3 = std::string(PyString_AsString(obj2)); |
3707 |
< |
arg3 = &temp3; |
3705 |
> |
if (PyString_Check(obj3)) { |
3706 |
> |
temp4 = std::string(PyString_AsString(obj3)); |
3707 |
> |
arg4 = &temp4; |
3708 |
|
}else { |
3709 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
3710 |
|
} |
3711 |
|
} |
3712 |
|
} |
3713 |
< |
if (obj3) { |
3713 |
> |
if (obj4) { |
3714 |
|
{ |
3715 |
< |
if (PyString_Check(obj3)) |
3716 |
< |
arg4 = std::string(PyString_AsString(obj3)); |
3715 |
> |
if (PyString_Check(obj4)) { |
3716 |
> |
temp5 = std::string(PyString_AsString(obj4)); |
3717 |
> |
arg5 = &temp5; |
3718 |
> |
}else { |
3719 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3720 |
> |
} |
3721 |
> |
} |
3722 |
> |
} |
3723 |
> |
if (obj5) { |
3724 |
> |
{ |
3725 |
> |
if (PyString_Check(obj5)) |
3726 |
> |
arg6 = std::string(PyString_AsString(obj5)); |
3727 |
|
else |
3728 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
3729 |
|
} |
3730 |
|
} |
3731 |
< |
if (obj4) { |
3731 |
> |
if (obj6) { |
3732 |
|
{ |
3733 |
< |
if (PyString_Check(obj4)) |
3734 |
< |
arg5 = std::string(PyString_AsString(obj4)); |
3733 |
> |
if (PyString_Check(obj6)) |
3734 |
> |
arg7 = std::string(PyString_AsString(obj6)); |
3735 |
|
else |
3736 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
3737 |
|
} |
3738 |
|
} |
3739 |
< |
if (obj5) { |
3739 |
> |
if (obj7) { |
3740 |
|
{ |
3741 |
< |
if (PyString_Check(obj5)) |
3742 |
< |
arg6 = std::string(PyString_AsString(obj5)); |
3741 |
> |
if (PyString_Check(obj7)) |
3742 |
> |
arg8 = std::string(PyString_AsString(obj7)); |
3743 |
> |
else |
3744 |
> |
SWIG_exception(SWIG_TypeError, "string expected"); |
3745 |
> |
} |
3746 |
> |
} |
3747 |
> |
if (obj8) { |
3748 |
> |
{ |
3749 |
> |
if (PyString_Check(obj8)) |
3750 |
> |
arg9 = std::string(PyString_AsString(obj8)); |
3751 |
|
else |
3752 |
|
SWIG_exception(SWIG_TypeError, "string expected"); |
3753 |
|
} |
3754 |
|
} |
3755 |
+ |
if (obj9) { |
3756 |
+ |
arg10 = (unsigned int) PyInt_AsLong(obj9); |
3757 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
3758 |
+ |
} |
3759 |
+ |
if (obj10) { |
3760 |
+ |
arg11 = PyInt_AsLong(obj10) ? true : false; |
3761 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
3762 |
+ |
} |
3763 |
|
{ |
3764 |
|
try { |
3765 |
< |
result = (PyObject *)BossSession_queryTasks(arg1,(std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5,arg6); |
3765 |
> |
BossSession_schedulerQuery(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10,arg11); |
3766 |
|
|
3767 |
|
}catch (const BossSchedFailure & e) { |
3768 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
3772 |
|
return NULL; |
3773 |
|
} |
3774 |
|
} |
3775 |
< |
resultobj = result; |
3775 |
> |
Py_INCREF(Py_None); resultobj = Py_None; |
3776 |
|
return resultobj; |
3777 |
|
fail: |
3778 |
|
return NULL; |
3786 |
|
Py_INCREF(obj); |
3787 |
|
return Py_BuildValue((char *)""); |
3788 |
|
} |
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 |
– |
|
3789 |
|
static PyObject *_wrap_new_BossTaskException(PyObject *self, PyObject *args) { |
3790 |
|
PyObject *resultobj; |
3791 |
|
char *arg1 ; |
3811 |
|
} |
3812 |
|
|
3813 |
|
|
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 |
– |
|
3814 |
|
static PyObject *_wrap_delete_BossTaskException(PyObject *self, PyObject *args) { |
3815 |
|
PyObject *resultobj; |
3816 |
|
BossTaskException *arg1 = (BossTaskException *) 0 ; |
3906 |
|
} |
3907 |
|
|
3908 |
|
|
3909 |
+ |
static PyObject *_wrap_BossTask_jobsInMemory(PyObject *self, PyObject *args) { |
3910 |
+ |
PyObject *resultobj; |
3911 |
+ |
BossTask *arg1 = (BossTask *) 0 ; |
3912 |
+ |
unsigned int result; |
3913 |
+ |
PyObject * obj0 = 0 ; |
3914 |
+ |
|
3915 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobsInMemory",&obj0)) goto fail; |
3916 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3917 |
+ |
{ |
3918 |
+ |
try { |
3919 |
+ |
result = (unsigned int)((BossTask const *)arg1)->jobsInMemory(); |
3920 |
+ |
|
3921 |
+ |
}catch (const BossSchedFailure & e) { |
3922 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
3923 |
+ |
return NULL; |
3924 |
+ |
}catch (const std::exception& e) { |
3925 |
+ |
PyErr_SetString ( BossError, e.what() ); |
3926 |
+ |
return NULL; |
3927 |
+ |
} |
3928 |
+ |
} |
3929 |
+ |
resultobj = PyInt_FromLong((long)result); |
3930 |
+ |
return resultobj; |
3931 |
+ |
fail: |
3932 |
+ |
return NULL; |
3933 |
+ |
} |
3934 |
+ |
|
3935 |
+ |
|
3936 |
|
static PyObject *_wrap_BossTask_queryJobPrograms(PyObject *self, PyObject *args) { |
3937 |
|
PyObject *resultobj; |
3938 |
|
BossTask *arg1 = (BossTask *) 0 ; |
4307 |
|
} |
4308 |
|
|
4309 |
|
|
4310 |
+ |
static PyObject *_wrap_BossTask_chain(PyObject *self, PyObject *args) { |
4311 |
+ |
PyObject *resultobj; |
4312 |
+ |
BossTask *arg1 = (BossTask *) 0 ; |
4313 |
+ |
std::string *arg2 = 0 ; |
4314 |
+ |
BossChain result; |
4315 |
+ |
std::string temp2 ; |
4316 |
+ |
PyObject * obj0 = 0 ; |
4317 |
+ |
PyObject * obj1 = 0 ; |
4318 |
+ |
|
4319 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_chain",&obj0,&obj1)) goto fail; |
4320 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4321 |
+ |
{ |
4322 |
+ |
if (PyString_Check(obj1)) { |
4323 |
+ |
temp2 = std::string(PyString_AsString(obj1)); |
4324 |
+ |
arg2 = &temp2; |
4325 |
+ |
}else { |
4326 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
4327 |
+ |
} |
4328 |
+ |
} |
4329 |
+ |
{ |
4330 |
+ |
try { |
4331 |
+ |
result = ((BossTask const *)arg1)->chain((std::string const &)*arg2); |
4332 |
+ |
|
4333 |
+ |
}catch (const BossSchedFailure & e) { |
4334 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
4335 |
+ |
return NULL; |
4336 |
+ |
}catch (const std::exception& e) { |
4337 |
+ |
PyErr_SetString ( BossError, e.what() ); |
4338 |
+ |
return NULL; |
4339 |
+ |
} |
4340 |
+ |
} |
4341 |
+ |
{ |
4342 |
+ |
BossChain * resultptr; |
4343 |
+ |
resultptr = new BossChain((BossChain &) result); |
4344 |
+ |
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossChain, 1); |
4345 |
+ |
} |
4346 |
+ |
return resultobj; |
4347 |
+ |
fail: |
4348 |
+ |
return NULL; |
4349 |
+ |
} |
4350 |
+ |
|
4351 |
+ |
|
4352 |
|
static PyObject *_wrap_BossTask_taskMap(PyObject *self, PyObject *args) { |
4353 |
|
PyObject *resultobj; |
4354 |
|
BossTask *arg1 = (BossTask *) 0 ; |
4772 |
|
static PyObject *_wrap_BossTask_remove(PyObject *self, PyObject *args) { |
4773 |
|
PyObject *resultobj; |
4774 |
|
BossTask *arg1 = (BossTask *) 0 ; |
4775 |
+ |
bool arg2 = (bool) false ; |
4776 |
|
PyObject * obj0 = 0 ; |
4777 |
+ |
PyObject * obj1 = 0 ; |
4778 |
|
|
4779 |
< |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_remove",&obj0)) goto fail; |
4779 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossTask_remove",&obj0,&obj1)) goto fail; |
4780 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4781 |
+ |
if (obj1) { |
4782 |
+ |
arg2 = PyInt_AsLong(obj1) ? true : false; |
4783 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
4784 |
+ |
} |
4785 |
|
{ |
4786 |
|
try { |
4787 |
< |
(arg1)->remove(); |
4787 |
> |
(arg1)->remove(arg2); |
4788 |
|
|
4789 |
|
}catch (const BossSchedFailure & e) { |
4790 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
4806 |
|
BossTask *arg1 = (BossTask *) 0 ; |
4807 |
|
std::string const &arg2_defvalue = "all" ; |
4808 |
|
std::string *arg2 = (std::string *) &arg2_defvalue ; |
4809 |
+ |
bool arg3 = (bool) false ; |
4810 |
|
std::string temp2 ; |
4811 |
|
PyObject * obj0 = 0 ; |
4812 |
|
PyObject * obj1 = 0 ; |
4813 |
+ |
PyObject * obj2 = 0 ; |
4814 |
|
|
4815 |
< |
if(!PyArg_ParseTuple(args,(char *)"O|O:BossTask_archive",&obj0,&obj1)) goto fail; |
4815 |
> |
if(!PyArg_ParseTuple(args,(char *)"O|OO:BossTask_archive",&obj0,&obj1,&obj2)) goto fail; |
4816 |
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4817 |
|
if (obj1) { |
4818 |
|
{ |
4824 |
|
} |
4825 |
|
} |
4826 |
|
} |
4827 |
+ |
if (obj2) { |
4828 |
+ |
arg3 = PyInt_AsLong(obj2) ? true : false; |
4829 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
4830 |
+ |
} |
4831 |
|
{ |
4832 |
|
try { |
4833 |
< |
(arg1)->archive((std::string const &)*arg2); |
4833 |
> |
(arg1)->archive((std::string const &)*arg2,arg3); |
4834 |
|
|
4835 |
|
}catch (const BossSchedFailure & e) { |
4836 |
|
PyErr_SetString ( SchedulerError, e.what() ); |
5257 |
|
} |
5258 |
|
|
5259 |
|
|
5260 |
+ |
static PyObject *_wrap_BossTask_schedulerQuery(PyObject *self, PyObject *args) { |
5261 |
+ |
PyObject *resultobj; |
5262 |
+ |
BossTask *arg1 = (BossTask *) 0 ; |
5263 |
+ |
int arg2 = (int) SCHEDULED ; |
5264 |
+ |
std::string const &arg3_defvalue = "all" ; |
5265 |
+ |
std::string *arg3 = (std::string *) &arg3_defvalue ; |
5266 |
+ |
std::string const &arg4_defvalue = "" ; |
5267 |
+ |
std::string *arg4 = (std::string *) &arg4_defvalue ; |
5268 |
+ |
std::string arg5 = (std::string) "" ; |
5269 |
+ |
std::string arg6 = (std::string) "" ; |
5270 |
+ |
std::string arg7 = (std::string) "" ; |
5271 |
+ |
std::string arg8 = (std::string) "" ; |
5272 |
+ |
unsigned int arg9 = (unsigned int) 0 ; |
5273 |
+ |
int result; |
5274 |
+ |
std::string temp3 ; |
5275 |
+ |
std::string temp4 ; |
5276 |
+ |
PyObject * obj0 = 0 ; |
5277 |
+ |
PyObject * obj2 = 0 ; |
5278 |
+ |
PyObject * obj3 = 0 ; |
5279 |
+ |
PyObject * obj4 = 0 ; |
5280 |
+ |
PyObject * obj5 = 0 ; |
5281 |
+ |
PyObject * obj6 = 0 ; |
5282 |
+ |
PyObject * obj7 = 0 ; |
5283 |
+ |
PyObject * obj8 = 0 ; |
5284 |
+ |
|
5285 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOO:BossTask_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
5286 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5287 |
+ |
if (obj2) { |
5288 |
+ |
{ |
5289 |
+ |
if (PyString_Check(obj2)) { |
5290 |
+ |
temp3 = std::string(PyString_AsString(obj2)); |
5291 |
+ |
arg3 = &temp3; |
5292 |
+ |
}else { |
5293 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5294 |
+ |
} |
5295 |
+ |
} |
5296 |
+ |
} |
5297 |
+ |
if (obj3) { |
5298 |
+ |
{ |
5299 |
+ |
if (PyString_Check(obj3)) { |
5300 |
+ |
temp4 = std::string(PyString_AsString(obj3)); |
5301 |
+ |
arg4 = &temp4; |
5302 |
+ |
}else { |
5303 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5304 |
+ |
} |
5305 |
+ |
} |
5306 |
+ |
} |
5307 |
+ |
if (obj4) { |
5308 |
+ |
{ |
5309 |
+ |
if (PyString_Check(obj4)) |
5310 |
+ |
arg5 = std::string(PyString_AsString(obj4)); |
5311 |
+ |
else |
5312 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5313 |
+ |
} |
5314 |
+ |
} |
5315 |
+ |
if (obj5) { |
5316 |
+ |
{ |
5317 |
+ |
if (PyString_Check(obj5)) |
5318 |
+ |
arg6 = std::string(PyString_AsString(obj5)); |
5319 |
+ |
else |
5320 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5321 |
+ |
} |
5322 |
+ |
} |
5323 |
+ |
if (obj6) { |
5324 |
+ |
{ |
5325 |
+ |
if (PyString_Check(obj6)) |
5326 |
+ |
arg7 = std::string(PyString_AsString(obj6)); |
5327 |
+ |
else |
5328 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5329 |
+ |
} |
5330 |
+ |
} |
5331 |
+ |
if (obj7) { |
5332 |
+ |
{ |
5333 |
+ |
if (PyString_Check(obj7)) |
5334 |
+ |
arg8 = std::string(PyString_AsString(obj7)); |
5335 |
+ |
else |
5336 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5337 |
+ |
} |
5338 |
+ |
} |
5339 |
+ |
if (obj8) { |
5340 |
+ |
arg9 = (unsigned int) PyInt_AsLong(obj8); |
5341 |
+ |
if (PyErr_Occurred()) SWIG_fail; |
5342 |
+ |
} |
5343 |
+ |
{ |
5344 |
+ |
try { |
5345 |
+ |
result = (int)(arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8,arg9); |
5346 |
+ |
|
5347 |
+ |
}catch (const BossSchedFailure & e) { |
5348 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
5349 |
+ |
return NULL; |
5350 |
+ |
}catch (const std::exception& e) { |
5351 |
+ |
PyErr_SetString ( BossError, e.what() ); |
5352 |
+ |
return NULL; |
5353 |
+ |
} |
5354 |
+ |
} |
5355 |
+ |
resultobj = PyInt_FromLong((long)result); |
5356 |
+ |
return resultobj; |
5357 |
+ |
fail: |
5358 |
+ |
return NULL; |
5359 |
+ |
} |
5360 |
+ |
|
5361 |
+ |
|
5362 |
|
static PyObject *_wrap_BossTask_query(PyObject *self, PyObject *args) { |
5363 |
|
PyObject *resultobj; |
5364 |
|
BossTask *arg1 = (BossTask *) 0 ; |
5688 |
|
} |
5689 |
|
|
5690 |
|
|
5691 |
+ |
static PyObject *_wrap_BossTask_Chain(PyObject *self, PyObject *args) { |
5692 |
+ |
PyObject *resultobj; |
5693 |
+ |
BossTask *arg1 = (BossTask *) 0 ; |
5694 |
+ |
std::string *arg2 = 0 ; |
5695 |
+ |
PyObject *result; |
5696 |
+ |
std::string temp2 ; |
5697 |
+ |
PyObject * obj0 = 0 ; |
5698 |
+ |
PyObject * obj1 = 0 ; |
5699 |
+ |
|
5700 |
+ |
if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_Chain",&obj0,&obj1)) goto fail; |
5701 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5702 |
+ |
{ |
5703 |
+ |
if (PyString_Check(obj1)) { |
5704 |
+ |
temp2 = std::string(PyString_AsString(obj1)); |
5705 |
+ |
arg2 = &temp2; |
5706 |
+ |
}else { |
5707 |
+ |
SWIG_exception(SWIG_TypeError, "string expected"); |
5708 |
+ |
} |
5709 |
+ |
} |
5710 |
+ |
{ |
5711 |
+ |
try { |
5712 |
+ |
result = (PyObject *)BossTask_Chain(arg1,(std::string const &)*arg2); |
5713 |
+ |
|
5714 |
+ |
}catch (const BossSchedFailure & e) { |
5715 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
5716 |
+ |
return NULL; |
5717 |
+ |
}catch (const std::exception& e) { |
5718 |
+ |
PyErr_SetString ( BossError, e.what() ); |
5719 |
+ |
return NULL; |
5720 |
+ |
} |
5721 |
+ |
} |
5722 |
+ |
resultobj = result; |
5723 |
+ |
return resultobj; |
5724 |
+ |
fail: |
5725 |
+ |
return NULL; |
5726 |
+ |
} |
5727 |
+ |
|
5728 |
+ |
|
5729 |
|
static PyObject *_wrap_BossTask_jobStates(PyObject *self, PyObject *args) { |
5730 |
|
PyObject *resultobj; |
5731 |
|
BossTask *arg1 = (BossTask *) 0 ; |
5753 |
|
} |
5754 |
|
|
5755 |
|
|
5756 |
+ |
static PyObject *_wrap_BossTask_joblist(PyObject *self, PyObject *args) { |
5757 |
+ |
PyObject *resultobj; |
5758 |
+ |
BossTask *arg1 = (BossTask *) 0 ; |
5759 |
+ |
PyObject *result; |
5760 |
+ |
PyObject * obj0 = 0 ; |
5761 |
+ |
|
5762 |
+ |
if(!PyArg_ParseTuple(args,(char *)"O:BossTask_joblist",&obj0)) goto fail; |
5763 |
+ |
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5764 |
+ |
{ |
5765 |
+ |
try { |
5766 |
+ |
result = (PyObject *)BossTask_joblist(arg1); |
5767 |
+ |
|
5768 |
+ |
}catch (const BossSchedFailure & e) { |
5769 |
+ |
PyErr_SetString ( SchedulerError, e.what() ); |
5770 |
+ |
return NULL; |
5771 |
+ |
}catch (const std::exception& e) { |
5772 |
+ |
PyErr_SetString ( BossError, e.what() ); |
5773 |
+ |
return NULL; |
5774 |
+ |
} |
5775 |
+ |
} |
5776 |
+ |
resultobj = result; |
5777 |
+ |
return resultobj; |
5778 |
+ |
fail: |
5779 |
+ |
return NULL; |
5780 |
+ |
} |
5781 |
+ |
|
5782 |
+ |
|
5783 |
|
static PyObject *_wrap_BossTask_jobStatistic(PyObject *self, PyObject *args) { |
5784 |
|
PyObject *resultobj; |
5785 |
|
BossTask *arg1 = (BossTask *) 0 ; |
6987 |
|
{ (char *)"delete_BossSession", _wrap_delete_BossSession, METH_VARARGS }, |
6988 |
|
{ (char *)"BossSession_resetDB", _wrap_BossSession_resetDB, METH_VARARGS }, |
6989 |
|
{ (char *)"BossSession_clear", _wrap_BossSession_clear, METH_VARARGS }, |
6990 |
+ |
{ (char *)"BossSession_task_begin", _wrap_BossSession_task_begin, METH_VARARGS }, |
6991 |
+ |
{ (char *)"BossSession_task_end", _wrap_BossSession_task_end, METH_VARARGS }, |
6992 |
+ |
{ (char *)"BossSession_tasksInMemory", _wrap_BossSession_tasksInMemory, METH_VARARGS }, |
6993 |
+ |
{ (char *)"BossSession_locate", _wrap_BossSession_locate, METH_VARARGS }, |
6994 |
|
{ (char *)"BossSession_makeBossTask", _wrap_BossSession_makeBossTask, METH_VARARGS }, |
6995 |
|
{ (char *)"BossSession_destroyBossTask", _wrap_BossSession_destroyBossTask, METH_VARARGS }, |
6996 |
|
{ (char *)"BossSession_showCHTools", _wrap_BossSession_showCHTools, METH_VARARGS }, |
7006 |
|
{ (char *)"BossSession_showConfigs", _wrap_BossSession_showConfigs, METH_VARARGS }, |
7007 |
|
{ (char *)"BossSession_RTupdate", _wrap_BossSession_RTupdate, METH_VARARGS }, |
7008 |
|
{ (char *)"BossSession_listMatch", _wrap_BossSession_listMatch, METH_VARARGS }, |
6848 |
– |
{ (char *)"BossSession_schedulerQuery", _wrap_BossSession_schedulerQuery, METH_VARARGS }, |
6849 |
– |
{ (char *)"BossSession_selectTasks", _wrap_BossSession_selectTasks, METH_VARARGS }, |
6850 |
– |
{ (char *)"BossSession_selectTasksByName", _wrap_BossSession_selectTasksByName, METH_VARARGS }, |
7009 |
|
{ (char *)"BossSession_query", _wrap_BossSession_query, METH_VARARGS }, |
7010 |
|
{ (char *)"BossSession_getTasksByName", _wrap_BossSession_getTasksByName, METH_VARARGS }, |
7011 |
+ |
{ (char *)"BossSession_getTasksByTaskInfo", _wrap_BossSession_getTasksByTaskInfo, METH_VARARGS }, |
7012 |
+ |
{ (char *)"BossSession_getTasksByJobName", _wrap_BossSession_getTasksByJobName, METH_VARARGS }, |
7013 |
|
{ (char *)"BossSession_show", _wrap_BossSession_show, METH_VARARGS }, |
7014 |
|
{ (char *)"BossSession_CHTools", _wrap_BossSession_CHTools, METH_VARARGS }, |
7015 |
|
{ (char *)"BossSession_ProgramTypes", _wrap_BossSession_ProgramTypes, METH_VARARGS }, |
7016 |
|
{ (char *)"BossSession_RTMons", _wrap_BossSession_RTMons, METH_VARARGS }, |
7017 |
|
{ (char *)"BossSession_schedulers", _wrap_BossSession_schedulers, METH_VARARGS }, |
7018 |
|
{ (char *)"BossSession_schedListMatch", _wrap_BossSession_schedListMatch, METH_VARARGS }, |
7019 |
< |
{ (char *)"BossSession_queryTasks", _wrap_BossSession_queryTasks, METH_VARARGS }, |
7019 |
> |
{ (char *)"BossSession_schedulerQuery", _wrap_BossSession_schedulerQuery, METH_VARARGS }, |
7020 |
|
{ (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 }, |
7021 |
|
{ (char *)"new_BossTaskException", _wrap_new_BossTaskException, METH_VARARGS }, |
6864 |
– |
{ (char *)"BossTaskException_what", _wrap_BossTaskException_what, METH_VARARGS }, |
7022 |
|
{ (char *)"delete_BossTaskException", _wrap_delete_BossTaskException, METH_VARARGS }, |
7023 |
|
{ (char *)"BossTaskException_swigregister", BossTaskException_swigregister, METH_VARARGS }, |
7024 |
|
{ (char *)"BossTask_job_begin", _wrap_BossTask_job_begin, METH_VARARGS }, |
7025 |
|
{ (char *)"BossTask_job_end", _wrap_BossTask_job_end, METH_VARARGS }, |
7026 |
+ |
{ (char *)"BossTask_jobsInMemory", _wrap_BossTask_jobsInMemory, METH_VARARGS }, |
7027 |
|
{ (char *)"BossTask_queryJobPrograms", _wrap_BossTask_queryJobPrograms, METH_VARARGS }, |
7028 |
|
{ (char *)"BossTask_queryProgram", _wrap_BossTask_queryProgram, METH_VARARGS }, |
7029 |
|
{ (char *)"BossTask_queryProgramExec", _wrap_BossTask_queryProgramExec, METH_VARARGS }, |
7031 |
|
{ (char *)"new_BossTask", _wrap_new_BossTask, METH_VARARGS }, |
7032 |
|
{ (char *)"BossTask_id", _wrap_BossTask_id, METH_VARARGS }, |
7033 |
|
{ (char *)"BossTask_name", _wrap_BossTask_name, METH_VARARGS }, |
7034 |
+ |
{ (char *)"BossTask_chain", _wrap_BossTask_chain, METH_VARARGS }, |
7035 |
|
{ (char *)"BossTask_taskMap", _wrap_BossTask_taskMap, METH_VARARGS }, |
7036 |
|
{ (char *)"BossTask_jobsMap", _wrap_BossTask_jobsMap, METH_VARARGS }, |
7037 |
|
{ (char *)"BossTask_jobMap", _wrap_BossTask_jobMap, METH_VARARGS }, |
7045 |
|
{ (char *)"BossTask_getOutput", _wrap_BossTask_getOutput, METH_VARARGS }, |
7046 |
|
{ (char *)"BossTask_loadByName", _wrap_BossTask_loadByName, METH_VARARGS }, |
7047 |
|
{ (char *)"BossTask_load", _wrap_BossTask_load, METH_VARARGS }, |
7048 |
+ |
{ (char *)"BossTask_schedulerQuery", _wrap_BossTask_schedulerQuery, METH_VARARGS }, |
7049 |
|
{ (char *)"BossTask_query", _wrap_BossTask_query, METH_VARARGS }, |
7050 |
|
{ (char *)"BossTask_query_out", _wrap_BossTask_query_out, METH_VARARGS }, |
7051 |
|
{ (char *)"BossTask_clear", _wrap_BossTask_clear, METH_VARARGS }, |
7053 |
|
{ (char *)"BossTask_jobDict", _wrap_BossTask_jobDict, METH_VARARGS }, |
7054 |
|
{ (char *)"BossTask_jobsDict", _wrap_BossTask_jobsDict, METH_VARARGS }, |
7055 |
|
{ (char *)"BossTask_job", _wrap_BossTask_job, METH_VARARGS }, |
7056 |
+ |
{ (char *)"BossTask_Chain", _wrap_BossTask_Chain, METH_VARARGS }, |
7057 |
|
{ (char *)"BossTask_jobStates", _wrap_BossTask_jobStates, METH_VARARGS }, |
7058 |
+ |
{ (char *)"BossTask_joblist", _wrap_BossTask_joblist, METH_VARARGS }, |
7059 |
|
{ (char *)"BossTask_jobStatistic", _wrap_BossTask_jobStatistic, METH_VARARGS }, |
7060 |
|
{ (char *)"BossTask_progDict", _wrap_BossTask_progDict, METH_VARARGS }, |
7061 |
|
{ (char *)"BossTask_jobPrograms", _wrap_BossTask_jobPrograms, METH_VARARGS }, |
7090 |
|
static swig_type_info _swigt__p_XMLDoc[] = {{"_p_XMLDoc", 0, "XMLDoc *", 0},{"_p_XMLDoc"},{0}}; |
7091 |
|
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}}; |
7092 |
|
static swig_type_info _swigt__p_BossProgramExec[] = {{"_p_BossProgramExec", 0, "BossProgramExec *", 0},{"_p_BossProgramExec"},{0}}; |
7093 |
< |
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}}; |
7093 |
> |
static swig_type_info _swigt__p_BossChain[] = {{"_p_BossChain", 0, "BossChain *", 0},{"_p_BossChain"},{0}}; |
7094 |
|
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}}; |
7095 |
|
static swig_type_info _swigt__p_BossTask[] = {{"_p_BossTask", 0, "BossTask *", 0},{"_p_BossTask"},{0}}; |
7096 |
|
static swig_type_info _swigt__p_BossTaskException[] = {{"_p_BossTaskException", 0, "BossTaskException *", 0},{"_p_BossTaskException"},{0}}; |
7104 |
|
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}}; |
7105 |
|
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}}; |
7106 |
|
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}}; |
7107 |
|
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}}; |
7108 |
+ |
static swig_type_info _swigt__p_BossSession__task_iterator[] = {{"_p_BossSession__task_iterator", 0, "BossSession::task_iterator const *", 0},{"_p_BossSession__task_iterator"},{0}}; |
7109 |
+ |
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}}; |
7110 |
|
static swig_type_info _swigt__p_jobStates[] = {{"_p_jobStates", 0, "jobStates const &", 0},{"_p_jobStates"},{0}}; |
7111 |
|
|
7112 |
|
static swig_type_info *swig_types_initial[] = { |
7114 |
|
_swigt__p_XMLDoc, |
7115 |
|
_swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator, |
7116 |
|
_swigt__p_BossProgramExec, |
7117 |
< |
_swigt__p_std__vectorTBossTask_p_t, |
7117 |
> |
_swigt__p_BossChain, |
7118 |
|
_swigt__p_std__mapTstd__string_std__mapTstd__string_std__string_t_t, |
7119 |
|
_swigt__p_BossTask, |
7120 |
|
_swigt__p_BossTaskException, |
7128 |
|
_swigt__p_std__vectorTstd__string_t, |
7129 |
|
_swigt__p_std__mapTstd__string_std__string_t, |
7130 |
|
_swigt__p_BossAdministratorSession, |
6968 |
– |
_swigt__p_std__vectorTBossJob_p_t__const_iterator, |
7131 |
|
_swigt__p_BossTask__job_iterator, |
7132 |
+ |
_swigt__p_BossSession__task_iterator, |
7133 |
+ |
_swigt__p_std__vectorTBossJob_p_t__const_iterator, |
7134 |
|
_swigt__p_jobStates, |
7135 |
|
0 |
7136 |
|
}; |