RStudio Launcher Plugin SDK
1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
|
24 #ifndef LAUNCHER_PLUGINS_LOCAL_JOB_REPOSITORY_HPP
25 #define LAUNCHER_PLUGINS_LOCAL_JOB_REPOSITORY_HPP
27 #include <jobs/AbstractJobRepository.hpp>
31 #include <api/Job.hpp>
32 #include <jobs/JobStatusNotifier.hpp>
33 #include <system/FilePath.hpp>
36 namespace launcher_plugins {
44 namespace launcher_plugins {
59 LocalJobRepository(
const std::string& in_hostname, jobs::JobStatusNotifierPtr in_notifier);
66 void saveJob(api::JobPtr in_job)
const;
83 Error loadJobs(api::JobList& out_jobs)
const override;
90 void onJobAdded(
const api::JobPtr& in_job)
override;
97 virtual void onJobRemoved(
const api::JobPtr& in_job)
override;
104 Error onInitialize()
override;
107 const std::string& m_hostname;
116 const bool m_saveUnspecifiedOutput;
void saveJob(api::JobPtr in_job) const
Saves a job to disk.
Class which represents a path on the system. May be any type of file (e.g. directory,...
Definition: FilePath.hpp:77
Stores any jobs currently in the job scheduling system.
Definition: AbstractJobRepository.hpp:50
Responsible for job persistence.
Definition: LocalJobRepository.hpp:50
Class which represents an error.
Definition: Error.hpp:174
Error setJobOutputPaths(api::JobPtr io_job) const
Sets the default output paths for the specified job.
LocalJobRepository(const std::string &in_hostname, jobs::JobStatusNotifierPtr in_notifier)
Constructor.