#include <cpr_job_service.hpp>
Public Member Functions | |
service (session const &s, saga::url rm=saga::url()) | |
Creates the object. | |
service (saga::url rm=saga::url()) | |
Creates the object. | |
service (saga::object const &o) | |
Creates the object. | |
~service (void) | |
Destroys the object. | |
service & | operator= (saga::object const &o) |
Brief description starts here. | |
saga::cpr::job | create_job (saga::cpr::description job_desc) |
Create a job instance. | |
saga::cpr::job | create_job (saga::cpr::description job_desc, saga::cpr::description restart_desc) |
Create a job instance. | |
saga::cpr::job | run_job (std::string cmd, std::string host, saga::job::ostream &in, saga::job::istream &out, saga::job::istream &err) |
Run a command synchronously. | |
saga::cpr::job | run_job (std::string cmd, std::string host) |
Static Public Member Functions | |
static service | create (session const &s, saga::url rm=saga::url()) |
Factory function resembling service(session, url) constructor. | |
static service | create (saga::url rm=saga::url()) |
Factory function resembling service(url, int) constructor. | |
template<typename Tag> | |
static saga::task | create (saga::url rm=saga::url()) |
Factory function resembling service(url, int) constructor. |
saga::cpr::service::service | ( | saga::object const & | o | ) | [explicit] |
Creates the object.
Reimplemented from saga::job::service.
References saga::BadParameter, saga::object::CPRJobService, and saga::object::get_type().
saga::cpr::service::~service | ( | void | ) |
static service saga::cpr::service::create | ( | session const & | s, | |
saga::url | rm = saga::url() | |||
) | [inline, static] |
Factory function resembling service(session, url) constructor.
Reimplemented from saga::job::service.
static saga::task saga::cpr::service::create | ( | saga::url | rm = saga::url() |
) | [inline, static] |
service & saga::cpr::service::operator= | ( | saga::object const & | o | ) |
saga::cpr::job saga::cpr::service::create_job | ( | saga::cpr::description | job_desc | ) | [inline] |
saga::cpr::job saga::cpr::service::create_job | ( | saga::cpr::description | job_desc, | |
saga::cpr::description | restart_desc | |||
) | [inline] |
saga::cpr::job saga::cpr::service::run_job | ( | std::string | commandline, | |
std::string | hostname, | |||
saga::job::ostream & | stdin_stream, | |||
saga::job::istream & | stdout_stream, | |||
saga::job::istream & | stderr_stream | |||
) | [inline] |
Run a command synchronously.
hostname | Hostname to be used by rm for submission | |
commandline | The command and arguments to be run |
Reimplemented from saga::job::service.
saga::cpr::job saga::cpr::service::run_job | ( | std::string | cmd, | |
std::string | host | |||
) | [inline] |
Reimplemented from saga::job::service.