wrench::WorkflowJob Class Reference

Abstraction of a job used for executing tasks in a Workflow. More...

#include <WorkflowJob.h>

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

Public Types

enum  Type { STANDARD, PILOT }
 Job types. More...
 

Public Member Functions

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

Abstraction of a job used for executing tasks in a Workflow.

Member Enumeration Documentation

◆ Type

Job types.

Enumerator
STANDARD 

A standard job that can be submitted directly to a ComputeService for execution.

PILOT 

A pilot job that can be submitted to a ComputeService and that, once started, will act as a ComputeService (likely a BareMetalComputeService) with an expiration date.

Member Function Documentation

◆ getName()

std::string wrench::WorkflowJob::getName ( )

Get the job's name.

Returns
the name as a string

◆ getSubmitDate()

double wrench::WorkflowJob::getSubmitDate ( )

Get the date at which the job was last submitted (<0 means "never submitted")

Returns
the submit date

◆ getType()

WorkflowJob::Type wrench::WorkflowJob::getType ( )

Get the job type.

Returns
the type

◆ getTypeAsString()

std::string wrench::WorkflowJob::getTypeAsString ( )

Get the job type name.

Returns
the type name as a string
Exceptions
std::runtime_error

The documentation for this class was generated from the following files: