22 #ifndef DXCPP_BINDINGS_DXJOB_H 23 #define DXCPP_BINDINGS_DXJOB_H 27 #include "dxjson/dxjson.h" 52 DXJob(
const std::string &dxid) : dxid_(dxid) { }
68 void setID(
const std::string &dxid) { dxid_ = dxid; }
85 std::string
getID()
const {
return dxid_; }
104 void create(
const dx::JSON &fn_input,
105 const std::string &fn_name,
106 const std::string &job_name=
"",
107 const std::vector<std::string> &depends_on=std::vector<std::string>(),
108 const dx::JSON &instance_type=dx::JSON(dx::JSON_NULL)
130 void waitOnDone(
const int timeout=std::numeric_limits<int>::max())
const;
164 const std::string &fn_name,
165 const std::string &job_name=
"",
166 const std::vector<std::string> &depends_on=std::vector<std::string>(),
167 const dx::JSON &instance_type=dx::JSON(dx::JSON_NULL)
172 #include "../bindings.h" void setID(const std::string &dxid)
Definition: dxjob.h:68
DXJob(const std::string &dxid)
Definition: dxjob.h:52
static DXJob newDXJob(const dx::JSON &fn_input, const std::string &fn_name, const std::string &job_name="", const std::vector< std::string > &depends_on=std::vector< std::string >(), const dx::JSON &instance_type=dx::JSON(dx::JSON_NULL))
Definition: dxjob.cc:97
void terminate() const
Definition: dxjob.cc:70
std::string getState() const
Definition: dxjob.h:77
void create(const dx::JSON &fn_input, const std::string &fn_name, const std::string &job_name="", const std::vector< std::string > &depends_on=std::vector< std::string >(), const dx::JSON &instance_type=dx::JSON(dx::JSON_NULL))
Definition: dxjob.cc:30
An executable object that can be published for others to discover.
Definition: api.cc:7
std::string getID() const
Definition: dxjob.h:85
The instantiation of an applet or app.
Definition: dxjob.h:41
dx::JSON getOutputRef(const std::string &field)
Definition: dxjob.cc:90
void waitOnDone(const int timeout=std::numeric_limits< int >::max()) const
Definition: dxjob.cc:76
dx::JSON describe() const
Definition: dxjob.cc:23