[][src]Trait sarchive::scheduler::Scheduler

pub trait Scheduler: Send + Sync {
    fn watch_locations(&self, matches: &ArgMatches) -> Vec<PathBuf>;
fn create_job_info(&self, event_path: &Path) -> Option<Box<dyn JobInfo>>;
fn verify_event_kind(&self, event: &Event) -> Option<Vec<PathBuf>>; }

Required methods

fn watch_locations(&self, matches: &ArgMatches) -> Vec<PathBuf>

fn create_job_info(&self, event_path: &Path) -> Option<Box<dyn JobInfo>>

fn verify_event_kind(&self, event: &Event) -> Option<Vec<PathBuf>>

Loading content...

Implementors

impl Scheduler for Slurm[src]

fn watch_locations(&self, _matches: &ArgMatches) -> Vec<PathBuf>[src]

Return a Vector with the locations that need to be watched.

The is the base path + hash.{0..9}

Arguments

  • _matches: reference the ArgMatches in case we pass command line options, which is not done atm.

fn create_job_info(&self, event_path: &Path) -> Option<Box<dyn JobInfo>>[src]

Returns a Box wrapping the actual job info data structure.App

Arguments

  • event_path: A `Path to the job directory that

impl Scheduler for Torque[src]

Loading content...