Base class for the SubmitterPlugins. More...
#include <SubmitterPlugin.h>
Public Member Functions | |
virtual bool | Submit (const std::list< JobDescription > &jobdesc, const ExecutionTarget &et, EntityConsumer< Job > &jc, std::list< const JobDescription * > ¬Submitted)=0 |
virtual bool | Migrate (const URL &jobid, const JobDescription &jobdesc, const ExecutionTarget &et, bool forcemigration, Job &job) |
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 bool Arc::SubmitterPlugin::Migrate | ( | const URL & | jobid, | |
const JobDescription & | jobdesc, | |||
const ExecutionTarget & | et, | |||
bool | forcemigration, | |||
Job & | job | |||
) | [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.
virtual bool Arc::SubmitterPlugin::Submit | ( | const std::list< JobDescription > & | jobdesc, | |
const ExecutionTarget & | et, | |||
EntityConsumer< Job > & | jc, | |||
std::list< const JobDescription * > & | notSubmitted | |||
) | [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.