1 #ifndef WRENCH_BATCHJOB_H
2 #define WRENCH_BATCHJOB_H
4 #include "wrench/workflow/job/StandardJob.h"
19 BatchJob(
WorkflowJob* job,
unsigned long job_id,
unsigned long time_in_minutes,
unsigned long number_nodes,
20 unsigned long cores_per_node,
double ending_time_stamp,
double arrival_time_stamp);
41 u_int32_t conservative_bf_start_date;
42 u_int32_t conservative_bf_expected_end_date;
45 unsigned long requested_num_nodes;
46 unsigned long requested_time;
48 unsigned long requested_cores_per_node;
49 double begin_time_stamp;
50 double ending_time_stamp;
51 double arrival_time_stamp;
52 std::map<std::string, std::tuple<unsigned long, double>> resources_allocated;
71 #endif //WRENCH_BATCHJOB_H
std::string csv_metadata
The meta-data field for BatSim-style CSV output.
Definition: BatchJob.h:57
void setRequestedTime(unsigned long time)
Set the requested time.
Definition: BatchJob.cpp:73
A batch job, which encapsulates a WorkflowJob and additional information used by a BatchService.
Definition: BatchJob.h:16
unsigned long getRequestedNumNodes()
Get the number of requested compute nodes (or hosts)
Definition: BatchJob.cpp:123
WorkflowJob * getWorkflowJob()
Get the workflow job corresponding to this batch job.
Definition: BatchJob.cpp:107
double getArrivalTimestamp()
Get the arrival time stamp.
Definition: BatchJob.cpp:99
double getMemoryRequirement()
Get the memory requirement.
Definition: BatchJob.cpp:81
double getEndingTimestamp()
Get the batch job's end timestamp.
Definition: BatchJob.cpp:149
std::string csv_allocated_processors
The allocated processors field for BatSim-style CSV output.
Definition: BatchJob.h:59
unsigned long getRequestedTime()
Get the requested time.
Definition: BatchJob.cpp:65
Abstraction of a job used for executing tasks in a Workflow.
Definition: WorkflowJob.h:34
unsigned long getRequestedCoresPerNode()
Get the requested number of cores per node.
Definition: BatchJob.cpp:57
unsigned long getJobID()
Get the id of this batch job.
Definition: BatchJob.cpp:115
BatchJob(WorkflowJob *job, unsigned long job_id, unsigned long time_in_minutes, unsigned long number_nodes, unsigned long cores_per_node, double ending_time_stamp, double arrival_time_stamp)
Constructor.
Definition: BatchJob.cpp:26
void setAllocatedResources(std::map< std::string, std::tuple< unsigned long, double >> resources)
Set the resources allocated to this batch job.
Definition: BatchJob.cpp:178
void setBeginTimestamp(double time_stamp)
Set the batch job's begin timestamp.
Definition: BatchJob.cpp:132
A class that defines a conservative backfilling batch scheduler.
Definition: CONSERVATIVEBFBatchScheduler.h:26
std::map< std::string, std::tuple< unsigned long, double > > getResourcesAllocated()
Get the resources allocated to this batch job.
Definition: BatchJob.cpp:170
void setEndingTimestamp(double time_stamp)
Set the batch job's end timestamp.
Definition: BatchJob.cpp:157
double getBeginTimestamp()
Get the batch job's begin timestamp.
Definition: BatchJob.cpp:141