class EmptyLaunchCommand¶
Overview¶
#include <empty_launch_command.h> class EmptyLaunchCommand: public LaunchCommand { public: // methods virtual pid_t launchProcess( const nlohmann::json&, const std::string&, const std::vector<std::string>&, const std::vector<std::string>&, bool, int ); virtual pid_t stopProcess(unsigned int); virtual ENGINE_RUNNING_STATUS getProcessStatus(); };
Inherited Members¶
public: // typedefs typedef std::shared_ptr<T> shared_ptr; typedef std::shared_ptr<const T> const_shared_ptr; typedef std::unique_ptr<T> unique_ptr; typedef std::unique_ptr<const T> const_unique_ptr; // enums enum ENGINE_RUNNING_STATUS; // fields static constexpr auto LaunchType = LAUNCH_COMMAND; // methods virtual pid_t launchProcess( const nlohmann::json& launcherConfig, const std::string& procCmd, const std::vector<std::string>& envParams, const std::vector<std::string>& startParams, bool appendParentEnv = true, int logFD = -1 ) = 0; virtual pid_t stopProcess(unsigned int killWait) = 0; virtual ENGINE_RUNNING_STATUS getProcessStatus(); virtual std::string_view launchType() const = 0; virtual std::string_view launchType() const;
Detailed Documentation¶
Methods¶
virtual pid_t launchProcess( const nlohmann::json&, const std::string&, const std::vector<std::string>&, const std::vector<std::string>&, bool, int )
launchProcess always returns -1
Returns:
-1
virtual pid_t stopProcess(unsigned int)
stopProcess always returns 0
Returns:
0
virtual ENGINE_RUNNING_STATUS getProcessStatus()
getProcessStatus always returns ENGINE_RUNNING_STATUS::UNKNOWN
Returns:
ENGINE_RUNNING_STATUS::UNKNOWN