wrench::PilotJob Class Reference

A pilot (i.e., non-standard) workflow job that can be submitted to a ComputeService by a WMS (via a JobManager) More...

#include <PilotJob.h>

Inheritance diagram for wrench::PilotJob:
wrench::WorkflowJob

Public Types

enum  State {
  NOT_SUBMITTED, PENDING, RUNNING, EXPIRED,
  FAILED, TERMINATED
}
 Pilot job states. More...
 
- Public Types inherited from wrench::WorkflowJob
enum  Type { STANDARD, PILOT }
 Job types. More...
 

Public Member Functions

ComputeServicegetComputeService ()
 Get the compute service provided by the (running) pilot job. More...
 
double getDuration () const
 Get the pilot job's duration. More...
 
double getMemoryPerHost () const
 Get the pilot job's memory requirement per host. More...
 
unsigned long getNumCoresPerHost () const
 Get the pilot job's number of cores per host. More...
 
unsigned long getNumHosts () const
 Get the pilot job's number of hosts. More...
 
PilotJob::State getState ()
 Get the state of the pilot job. More...
 
- Public Member Functions inherited from wrench::WorkflowJob
std::string getName ()
 Get the job's name. More...
 
double getSubmitDate ()
 Get the date at which the job was last submitted (<0 means "never submitted") More...
 
Type getType ()
 Get the job type. More...
 
std::string getTypeAsString ()
 Get the job type name. More...
 

Detailed Description

A pilot (i.e., non-standard) workflow job that can be submitted to a ComputeService by a WMS (via a JobManager)

Member Enumeration Documentation

Pilot job states.

Enumerator
NOT_SUBMITTED 

Not submitted yet.

PENDING 

Submitted but not running.

RUNNING 

Running.

EXPIRED 

Expired due to a time-to-live limit.

FAILED 

Failed.

TERMINATED 

Terminated by submitter.

Member Function Documentation

ComputeService * wrench::PilotJob::getComputeService ( )

Get the compute service provided by the (running) pilot job.

Returns
a compute service
double wrench::PilotJob::getDuration ( ) const

Get the pilot job's duration.

Returns
a number of seconds
double wrench::PilotJob::getMemoryPerHost ( ) const

Get the pilot job's memory requirement per host.

Returns
a number of bytes
unsigned long wrench::PilotJob::getNumCoresPerHost ( ) const

Get the pilot job's number of cores per host.

Returns
a number of cores
unsigned long wrench::PilotJob::getNumHosts ( ) const

Get the pilot job's number of hosts.

Returns
a number of hosts
PilotJob::State wrench::PilotJob::getState ( )

Get the state of the pilot job.

Returns
the state

The documentation for this class was generated from the following files:
  • /home/wrench/wrench/include/wrench/workflow/job/PilotJob.h
  • /home/wrench/wrench/src/wrench/workflow/job/PilotJob.cpp