ARC SDK
|
Base class for the SubmitterPlugins. More...
#include <arc/compute/SubmitterPlugin.h>
Public Member Functions | |
virtual SubmissionStatus | Submit (const JobDescription &j, const ExecutionTarget &et, EntityConsumer< Job > &jc) |
Submit a single job description. More... | |
virtual SubmissionStatus | Submit (const std::list< JobDescription > &jobdesc, const ExecutionTarget &et, EntityConsumer< Job > &jc, std::list< const JobDescription * > ¬Submitted)=0 |
Submit job. More... | |
virtual SubmissionStatus | Submit (const std::list< JobDescription > &jobdesc, const std::string &endpoint, EntityConsumer< Job > &jc, std::list< const JobDescription * > ¬Submitted) |
virtual bool | Migrate (const std::string &jobid, const JobDescription &jobdesc, const ExecutionTarget &et, bool forcemigration, Job &job) |
Migrate job. More... | |
virtual const std::list < std::string > & | SupportedInterfaces () const |
Protected Member Functions | |
SubmitterPlugin (const UserConfig &usercfg, PluginArgument *parg) | |
bool | PutFiles (const JobDescription &jobdesc, const URL &url) const |
void | AddJobDetails (const JobDescription &jobdesc, Job &job) const |
Protected Attributes | |
const UserConfig & | usercfg |
std::list< std::string > | supportedInterfaces |
DataHandle * | dest_handle |
Static Protected Attributes | |
static Logger | logger |
Base class for the SubmitterPlugins.
SubmitterPlugin is the base class for Grid middleware specialized SubmitterPlugin objects. The class submits job(s) to the computing resource it represents and uploads (needed by the job) local input files.
|
virtual |
Migrate job.
This virtual method should be overridden by plugins which should be capable of migrating jobs. The active job which should be migrated is pointed to by the URL jobid, and is represented by the JobDescription jobdesc. The forcemigration boolean specifies if the migration should succeed if the active job cannot be terminated. The protected method AddJob can be used to save job information. This method should return the URL of the migrated job. In case migration fails an empty URL should be returned.
|
inlinevirtual |
Submit a single job description.
Convenience method for submitting single job description, it simply calls the SubmitterPlugin::Submit method taking a list of job descriptions.
j | JobDescription object to be submitted. |
et | ExecutionTarget to submit the job description to. |
jc | callback object used to add Job object of newly submitted job to. |
|
pure virtual |
Submit job.
This virtual method should be overridden by plugins which should be capable of submitting jobs, defined in the JobDescription jobdesc, to the ExecutionTarget et. The protected convenience method AddJob can be used to save job information. This method should return the URL of the submitted job. In case submission fails an empty URL should be returned.