RStudio Launcher Plugin SDK  1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
QuickStartResourceStream.hpp
1 /*
2  * QuickStartResourceStream.hpp
3  *
4  * Copyright (C) 2019-20 by RStudio, PBC
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
7  * documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
8  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
9  * permit persons to whom the Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
12  * Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
15  * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
17  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18  *
19  */
20 
21 #ifndef LAUNCHER_PLUGINS_QUICK_START_RESOURCE_STREAM_HPP
22 #define LAUNCHER_PLUGINS_QUICK_START_RESOURCE_STREAM_HPP
23 
24 #include <api/stream/AbstractResourceStream.hpp>
25 
26 namespace rstudio {
27 namespace launcher_plugins {
28 namespace quickstart {
29 
31 {
32 public:
40  const api::ConstJobPtr& in_job,
41  comms::AbstractLauncherCommunicatorPtr in_launcherCommunicator);
42 
48  Error initialize() override;
49 };
50 
51 } // namespace quickstart
52 } // namespace launcher_plugins
53 } // namespace rstudio
54 
55 #endif
rstudio::launcher_plugins::api::AbstractResourceStream
Streams job resource utilization data to the Launcher.
Definition: AbstractResourceStream.hpp:42
rstudio::launcher_plugins::quickstart::QuickStartResourceStream::QuickStartResourceStream
QuickStartResourceStream(const api::ConstJobPtr &in_job, comms::AbstractLauncherCommunicatorPtr in_launcherCommunicator)
Constructor.
rstudio::launcher_plugins::quickstart::QuickStartResourceStream::initialize
Error initialize() override
Initializes the resource utilization stream.
rstudio::launcher_plugins::Error
Class which represents an error.
Definition: Error.hpp:174
rstudio::launcher_plugins::quickstart::QuickStartResourceStream
Definition: QuickStartResourceStream.hpp:30