JobRepository class is an interface for developers, that need to
access jobs/job attributes stored in the database. Implementation details
are given in the derived class.
|
__init__(self,
schema,
role,
streamer=None,
tree_streamer=None)
schema is a subset of job schema. |
source code
|
|
|
|
|
|
|
registerJobs(self,
jobs)
registerJobs(self, jobs) --> None throws RepositoryError jobs --
list of jobs to register |
source code
|
|
|
commitJobs(self,
jobs)
commitJobs(self, jobs) --> None throws RepositoryError jobs --
list of jobs to commit jobs must already be registered |
source code
|
|
|
checkoutJobs(self,
ids_or_attributes)
checkoutJobs(self, ids_or_attributes) --> list of jobs throws
RepositoryError ids_or_attributes -- list of job ids or dictionary of
job attributes saved in the DB as metadata. |
source code
|
|
|
deleteJobs(self,
ids)
deleteJob(self, ids) --> None throws RepositoryError ids -- list
of job ids |
source code
|
|
|
getJobIds(self,
ids_or_attributes)
getJobIds(self, ids_or_attributes) --> list of ids for the jobs
having specified attributes. |
source code
|
|
|
getJobAttributes(self,
ids_or_attributes)
getJobAttributes(self, ids_or_attributes) --> list of dictionaries
with job metadata stored in the registry. |
source code
|
|
|
setJobsStatus(self,
statusList)
setJobsStatus(self, statusList) --> None throws RepositoryError
statusList -- list of tuples (<jobId>, <status>) Supposed
to be used by JobManager |
source code
|
|
|
getJobsStatus(self,
ids_or_attributes)
getJobsStatus(self, ids_or_attributes) --> list of tuples,
indicating jobid and job status: (id, status). |
source code
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|