#include <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. | |
| job | create_job (description job_desc) |
| Create a job instance. | |
| saga::url | get_url () const |
| Create a job instance. | |
| job | run_job (std::string commandline, std::string hostname, saga::job::ostream &stdin_stream, saga::job::istream &stdout_stream, saga::job::istream &stderr_stream) |
| Run a command synchronously. | |
| job | run_job (std::string commandline, std::string hostname="") |
| std::vector< std::string > | list (void) |
| Get a list of jobs which are currently known by the resource manager. | |
| job | get_job (std::string job_id) |
| Given a job identifier, this method returns a job object representing this job. | |
| saga::job::self | get_self () |
| This method returns a job object representing _this_ job, i.e. the calling application. | |
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()) |
The job management methods are on the job object itself - this probably implies that implementations need to internally track what resource manager (or job_service instance) created the job.
| saga::job::service::service | ( | saga::object const & | o | ) | [explicit] |
Creates the object.
Reimplemented in saga::cpr::service.
References saga::BadParameter, saga::object::get_type(), and saga::object::JobService.
| saga::job::service::~service | ( | void | ) |
Factory function resembling service(url, int) constructor.
Reimplemented in saga::cpr::service, and saga::cpr::service.
| static saga::task saga::job::service::create | ( | saga::url | rm = saga::url() |
) | [inline, static] |
Reimplemented in saga::cpr::service, and saga::cpr::service.
| service & saga::job::service::operator= | ( | saga::object const & | o | ) |
| job saga::job::service::create_job | ( | description | job_desc | ) | [inline] |
| saga::url saga::job::service::get_url | ( | ) | const [inline] |
| job saga::job::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 in saga::cpr::service.
| job saga::job::service::run_job | ( | std::string | commandline, | |
| std::string | hostname = "" | |||
| ) | [inline] |
| std::vector<std::string> saga::job::service::list | ( | void | ) | [inline] |
Get a list of jobs which are currently known by the resource manager.
| job saga::job::service::get_job | ( | std::string | job_id | ) | [inline] |
| saga::job::self saga::job::service::get_self | ( | ) | [inline] |
1.5.6