|
SAGA C++ API 1.5.3
|
The job_service represents a resource management backend, and as such allows to create and submit jobs, and to discover jobs. More...
#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. | |
| saga::job::ostream saga::job::istream saga::job::istream &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_service represents a resource management backend, and as such allows to create and submit jobs, and to discover jobs.
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 | ) |
Destroys the object.
Reimplemented in saga::cpr::service.
| static service saga::job::service::create | ( | session const & | s, |
| saga::url | rm = saga::url() |
||
| ) | [inline, static] |
Factory function resembling service(session, url) constructor.
Reimplemented in saga::cpr::service.
Factory function resembling service(url, int) constructor.
@ SAGA_CALL_CREATE_2_DEF_1(session const&, saga::url, saga::url())
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 | ) |
Brief description starts here.
Reimplemented in saga::cpr::service.
| job saga::job::service::create_job | ( | description | job_desc | ) | [inline] |
Create a job instance.
| job_desc | Description of job to be submitted |
| saga::url saga::job::service::get_url | ( | ) | const [inline] |
Create a job instance.
| 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.
| saga::job::ostream saga::job::istream saga::job::istream& job saga::job::service::run_job | ( | std::string | commandline, |
| std::string | hostname = "" |
||
| ) | [inline] |
Reimplemented in saga::cpr::service.
| std::vector<std::string> saga::job::service::list | ( | void | ) | [inline] |
Get a list of jobs which are currently known by the resource manager.
@ SAGA_CALL_PUB_2_DEF_1(run_job, std::string, std::string, "")
| job saga::job::service::get_job | ( | std::string | job_id | ) | [inline] |
Given a job identifier, this method returns a job object representing this job.
| job_id | Job identifier as returned by the resource manager |
| saga::job::self saga::job::service::get_self | ( | ) | [inline] |
This method returns a job object representing _this_ job, i.e. the calling application.
@ SAGA_CALL_PUB_1_DEF_0(get_job, std::string)