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"
The instantiation of an applet or app.
Definition dxjob.h:41
dx::JSON getOutputRef(const std::string &field)
Definition dxjob.cc:90
dx::JSON describe() const
Definition dxjob.cc:23
std::string getState() const
Definition dxjob.h:77
std::string getID() const
Definition dxjob.h:85
DXJob(const std::string &dxid)
Definition dxjob.h:52
void terminate() const
Definition dxjob.cc:70
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 setID(const std::string &dxid)
Definition dxjob.h:68
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
void waitOnDone(const int timeout=std::numeric_limits< int >::max()) const
Definition dxjob.cc:76
An executable object that can be published for others to discover.
Definition api.cc:7