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_RESOURCE_STREAM_HPP
25 #define LAUNCHER_PLUGINS_ABSTRACT_RESOURCE_STREAM_HPP
27 #include <api/stream/AbstractMultiStream.hpp>
31 #include <api/Response.hpp>
32 #include <comms/AbstractLauncherCommunicator.hpp>
33 #include <jobs/JobStatusNotifier.hpp>
36 namespace launcher_plugins {
81 const ConstJobPtr& in_job,
82 comms::AbstractLauncherCommunicatorPtr in_launcherCommunicator);
119 PRIVATE_IMPL(m_resBaseImpl);
123 typedef std::shared_ptr<AbstractResourceStream> AbstractResourceStreamPtr;
Manages the sending of streamed responses.
Definition: AbstractMultiStream.hpp:58
Streams job resource utilization data to the Launcher.
Definition: AbstractResourceStream.hpp:42
const ConstJobPtr m_job
The job for which resource utilization metrics should be streamed.
Definition: AbstractResourceStream.hpp:114
Class which represents a system user.
Definition: User.hpp:55
Represents the current resource utilization of a job.
Definition: ResponseTypes.hpp:111
void reportError(const Error &in_error)
Reports an error to the Launcher.
AbstractResourceStream(const ConstJobPtr &in_job, comms::AbstractLauncherCommunicatorPtr in_launcherCommunicator)
Constructor.
virtual ~AbstractResourceStream()=default
Virtual destructor for inheritance.
void addRequest(uint64_t in_requestId, const system::User &in_requestUser) override
Adds a request to the stream.
Class which represents an error.
Definition: Error.hpp:174
virtual Error initialize()=0
Initializes the resource utilization stream.
void setStreamComplete()
Notifies that the data stream has completed.
void reportData(const ResourceUtilData &in_data)
Reports resource utilization data to the Launcher.