21 #include "softwarecontainer-common.h" 22 #include "executable.h" 32 LOG_DECLARE_CLASS_CONTEXT(
"JOAB",
"JobAbstract");
33 typedef std::shared_ptr<Executable> ExecutablePtr;
36 static constexpr
int UNASSIGNED_STREAM = -1;
42 void setOutputFile(
const std::string &path);
75 void setEnvironmentVariable(
const std::string &key,
const std::string &value);
76 void setEnvironmentVariables(
const EnvironmentVariables &env);
79 EnvironmentVariables m_env;
81 ExecutablePtr m_executable;
85 int m_stdin[2] = {UNASSIGNED_STREAM, UNASSIGNED_STREAM};
86 int m_stdout[2] = {UNASSIGNED_STREAM, UNASSIGNED_STREAM};
87 int m_stderr[2] = {UNASSIGNED_STREAM, UNASSIGNED_STREAM};
bool isRunning()
That method always returns true as soon as the start() method has been called, even if the command fa...
Abstract class for jobs which get executed inside a container.
Developers guide to adding a config item:
bool isSuccess()
Helper about return value of jobs.
bool isError()
Helper about return value of jobs.