Constructors/Destructor | |
Job () | |
Instantiates an empty Job object. | |
Job (const edg::workload::common::jobid::JobId &id) | |
Instantiates an Job object with a JobId. More... | |
Job (const edg::workload::common::requestad::JobAd &ad) | |
Instantiates an Job object with a JobAd. More... | |
Job (const Job &job) | |
Copy constructor. | |
~Job () | |
destructor. | |
void | operator= (const Job &job) |
Assignment operator. | |
void | initialise () |
Static Open ssl initialisation, called before any operation Prepare the. | |
Public Methods | |
Get/Set Methods | |
edg::workload::common::jobid::JobId * | getJobId () |
Get the JobId instance. More... | |
edg::workload::common::requestad::JobAd * | getJobAd () |
Get the JobAd instance. More... | |
void | setCredPath (const std::string cp) |
Set a different Proxy certificate from the default one. More... | |
void | unsetCredPath () |
Set the Proxy certificate as default. | |
void | setLoggerLevel (int level) |
Se the verbosity level for NS debug default value = 0 (no verbosity) max value = 6 (dreadful verbosity, print screen). | |
void | setJobAd (const edg::workload::common::requestad::JobAd &ad) |
set the JobAd instance. More... | |
void | setJobId (const edg::workload::common::jobid::JobId &id) |
set the JobId instance. More... | |
void | retrieveJobAd () |
Set the JobAd member attribute of the Job instance to the job description got from the LB. | |
jType | getType () |
returns the type of the job _jobType. | |
Job Special Action Methods | |
edg::workload::checkpointing::JobState | getState (unsigned int step=0) |
Allow to retrieve back the state of a Job in the specified step (default value is last reached step, 1 means lust but one ect etc...). More... | |
int | attach (Listener *, int port=0) |
Attach the job to a new listener (if possible) and log new information to LB. More... | |
LB retrieve info Methods | |
Status | getStatus (bool ad=true) |
Retrieve the status of the job. More... | |
Events | getLogInfo () |
Retrieve the bookkeeping information of the job. More... | |
Job NS require operation Methods | |
void | submit (const std::string &nSHost, int nsPort, const std::string &lbHost, int lbPort,const std::string &ce_id="") |
Submit the job to the Network Server. More... | |
void | submit (const std::string &ns_host, int ns_port, const std::string &lbHost, int lbPort, edg::workload::checkpointing::JobState *state, Listener *ls, const std::string &ce_id="") |
Submit the job to the Network Server starting from an intermediate step specified in the JobState. More... | |
std::vector< std::pair< std::string, double > > | listMatchingCE (const std::string &host, int port) |
Look for matching Computing Element available resources. More... | |
edg::workload::common::utilities::ResultCode | cancel () |
Cancel the job from the Network Server. More... | |
void | getOutput (const std::string &dir_path) |
Retrieve output files of a submitted job ( Success Done status has to be reached). More... | |
Static Public Methods | |
Static Methods | |
edg::workload::common::jobid::JobId * | submit (const std::string &host, int port, const std::string &lbHost, int lbPort, const std::string &executable, const std::string &stdOutput, const std::string &stdErr, const std::string &outputDir="/tmp", const std::string &ce_id="", int timeout=10, int time_interval=60) |
Submits and get the output of a simple Job once it's ready. More... | |
Friends | |
class | JobCollection |
The Job class provides methods that allow controlling the job during its lifetime. The allowed operations are:
|
Instantiates an Job object with a JobId.
|
|
Instantiates an Job object with a JobAd.
|
|
Attach the job to a new listener (if possible) and log new information to LB.
|
|
Cancel the job from the Network Server.
|
|
Get the JobAd instance.
|
|
Get the JobId instance.
|
|
Retrieve the bookkeeping information of the job.
|
|
Retrieve output files of a submitted job ( Success Done status has to be reached).
|
|
Allow to retrieve back the state of a Job in the specified step (default value is last reached step, 1 means lust but one ect etc...).
|
|
Retrieve the status of the job.
|
|
Look for matching Computing Element available resources.
|
|
Set a different Proxy certificate from the default one.
|
|
set the JobAd instance.
|
|
set the JobId instance.
|
|
Submits and get the output of a simple Job once it's ready. once the job has been submitted, a cycle of status retrieval is done untill the status code is reached. Then the output files are retrieved and stored in the specified output directory
|
|
Submit the job to the Network Server starting from an intermediate step specified in the JobState.
|
|
Submit the job to the Network Server.
|