[][src]Trait sarchive::scheduler::job::JobInfo

pub trait JobInfo: Send {
    fn jobid(&self) -> String;
fn moment(&self) -> Instant;
fn cluster(&self) -> String;
fn read_job_info(&mut self) -> Result<(), Error>;
fn files(&self) -> Vec<(String, Vec<u8>)>;
fn script(&self) -> String;
fn extra_info(&self) -> Option<HashMap<String, String>>; }

Required methods

fn jobid(&self) -> String

fn moment(&self) -> Instant

fn cluster(&self) -> String

fn read_job_info(&mut self) -> Result<(), Error>

fn files(&self) -> Vec<(String, Vec<u8>)>

fn script(&self) -> String

fn extra_info(&self) -> Option<HashMap<String, String>>

Loading content...

Implementors

impl JobInfo for SlurmJobEntry[src]

fn jobid(&self) -> String[src]

Returns the job ID as a String

fn moment(&self) -> Instant[src]

Returns the time the jpb entry was created by SArchive

fn read_job_info(&mut self) -> Result<(), Error>[src]

Populates the job entry structure with the relevant information

For Slurm, this encompasses the job script and the job environment

fn files(&self) -> Vec<(String, Vec<u8>)>[src]

Returns a Vector with tuples containing the filename and the file contents for the script and environment files

fn script(&self) -> String[src]

Returns the job script as a String

fn extra_info(&self) -> Option<HashMap<String, String>>[src]

Returns the environment info (if any) as a HashMap, mapping env keys to values

impl JobInfo for TorqueJobEntry[src]

Loading content...