RStudio Launcher Plugin SDK
1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
|
24 #ifndef LAUNCHER_PLUGINS_ABSTRACT_JOB_STATUS_WATCHER_HPP
25 #define LAUNCHER_PLUGINS_ABSTRACT_JOB_STATUS_WATCHER_HPP
27 #include <Noncopyable.hpp>
30 #include <api/Job.hpp>
31 #include <jobs/AbstractJobRepository.hpp>
32 #include <jobs/JobStatusNotifier.hpp>
33 #include <system/DateTime.hpp>
36 namespace launcher_plugins {
58 virtual void stop() = 0;
82 const std::string& in_jobId,
84 const std::string& in_statusMessage =
"",
96 virtual Error getJobDetails(
const std::string& in_jobId, api::JobPtr& out_job)
const = 0;
99 PRIVATE_IMPL(m_baseImpl);
AbstractJobStatusWatcher(JobRepositoryPtr in_jobRepository, JobStatusNotifierPtr in_jobStatusNotifier)
Constructor.
Error updateJobStatus(const std::string &in_jobId, api::Job::State in_newStatus, const std::string &in_statusMessage="", const system::DateTime &in_invocationTime=system::DateTime())
Updates the job status for the specified job.
Manages posting job status updates to the notifier.
Definition: AbstractJobStatusWatcher.hpp:42
State
Definition: Job.hpp:153
Class which represents a date and time in UTC.
Definition: DateTime.hpp:244
Class which represents an error.
Definition: Error.hpp:174
virtual Error start()=0
Starts the job status watcher.
virtual void stop()=0
Stops the job status watcher.
Class which can be inherited from to disallow copying of its child classes.
Definition: Noncopyable.hpp:34
virtual ~AbstractJobStatusWatcher()=default
Virtual destructor for inheritance.