RStudio Launcher Plugin SDK  1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
Public Member Functions | Protected Member Functions | List of all members
rstudio::launcher_plugins::api::MultiStreamResponse Class Reference

Base class for responses which are returned to multiple stream requests. More...

#include <Response.hpp>

Inheritance diagram for rstudio::launcher_plugins::api::MultiStreamResponse:
rstudio::launcher_plugins::api::Response rstudio::launcher_plugins::Noncopyable rstudio::launcher_plugins::api::JobStatusResponse rstudio::launcher_plugins::api::ResourceUtilStreamResponse

Public Member Functions

json::Object toJson () const override
 Converts this MultiStreamResponse to a JSON object. More...
 
- Public Member Functions inherited from rstudio::launcher_plugins::api::Response
virtual ~Response ()=default
 Virtual destructor to allow for inheritance.
 
- Public Member Functions inherited from rstudio::launcher_plugins::Noncopyable
 Noncopyable ()=default
 Default constructor.
 
 Noncopyable (const Noncopyable &)=delete
 Deleted copy constructor.
 
Noncopyableoperator= (const Noncopyable &)=delete
 Deleted assignment operator.
 

Protected Member Functions

 MultiStreamResponse (Type in_responseType, StreamSequences in_sequences)
 Constructor. More...
 
- Protected Member Functions inherited from rstudio::launcher_plugins::api::Response
 Response (Type in_responseType, uint64_t in_requestId)
 Constructor. More...
 

Additional Inherited Members

- Protected Types inherited from rstudio::launcher_plugins::api::Response
enum  Type {
  Type::ERROR = -1, Type::HEARTBEAT = 0, Type::BOOTSTRAP = 1, Type::JOB_STATE = 2,
  Type::JOB_STATUS = 3, Type::CONTROL_JOB = 4, Type::JOB_OUTPUT = 5, Type::JOB_RESOURCE_UTIL = 6,
  Type::JOB_NETWORK = 7, Type::CLUSTER_INFO = 8
}
 

Detailed Description

Base class for responses which are returned to multiple stream requests.

Constructor & Destructor Documentation

◆ MultiStreamResponse()

rstudio::launcher_plugins::api::MultiStreamResponse::MultiStreamResponse ( Type  in_responseType,
StreamSequences  in_sequences 
)
protected

Constructor.

Parameters
in_responseTypeThe type of the base class.
in_sequencesThe sequence IDs for which this response should be sent.

Member Function Documentation

◆ toJson()

json::Object rstudio::launcher_plugins::api::MultiStreamResponse::toJson ( ) const
overridevirtual

Converts this MultiStreamResponse to a JSON object.

Returns
The JSON object which represents this MultiStreamResponse.

Reimplemented from rstudio::launcher_plugins::api::Response.

Reimplemented in rstudio::launcher_plugins::api::ResourceUtilStreamResponse, and rstudio::launcher_plugins::api::JobStatusResponse.


The documentation for this class was generated from the following file: