HPS-MC
JobStore Class Reference

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

Public Member Functions

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

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__()

def __init__ (   self,
  path = None 
)

Definition at line 78 of file job.py.

Member Function Documentation

◆ get_job()

def 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()

def get_job_data (   self)

Get the raw dict containing all the job data.

Definition at line 112 of file job.py.

◆ get_job_ids()

def get_job_ids (   self)

Get a sorted list of job IDs.

Definition at line 116 of file job.py.

◆ has_job_id()

def 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()

def 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: