HPS-MC
 
Loading...
Searching...
No Matches
JobStore Class Reference

Simple JSON based store of job data. More...

Public Member Functions

 __init__ (self, path=None)
 
 load (self, json_store)
 Load raw JSON data into this job store.
 
 get_job (self, job_id)
 Get a job by its job ID.
 
 get_job_data (self)
 Get the raw dict containing all the job data.
 
 get_job_ids (self)
 Get a sorted list of job IDs.
 
 has_job_id (self, job_id)
 Return true if the job ID exists in the store.
 

Public Attributes

 path
 
 data
 

Detailed Description

Simple JSON based store of job data.

Definition at line 73 of file job.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  path = None 
)

Definition at line 78 of file job.py.

Member Function Documentation

◆ get_job()

get_job (   self,
  job_id 
)

Get a job by its job ID.

Parameters
job_idjob ID
Returns
job

Definition at line 104 of file job.py.

◆ get_job_data()

get_job_data (   self)

Get the raw dict containing all the job data.

Definition at line 112 of file job.py.

◆ get_job_ids()

get_job_ids (   self)

Get a sorted list of job IDs.

Definition at line 116 of file job.py.

◆ has_job_id()

has_job_id (   self,
  job_id 
)

Return true if the job ID exists in the store.

Definition at line 120 of file job.py.

◆ load()

load (   self,
  json_store 
)

Load raw JSON data into this job store.

Parameters
json_storejson file containing raw job data

Definition at line 86 of file job.py.

Member Data Documentation

◆ data

data

Definition at line 80 of file job.py.

◆ path

path

Definition at line 79 of file job.py.


The documentation for this class was generated from the following file: