WRENCH
1.11
Cyberinfrastructure Simulation Workbench
|
Overview | Installation | Getting Started | WRENCH 101 | WRENCH 102 |
A batch_standard_and_pilot_jobs job, which encapsulates a Job and additional information used by a batch_standard_and_pilot_jobs. More...
#include <BatchJob.h>
Public Member Functions | |
BatchJob (std::shared_ptr< CompoundJob > job, unsigned long job_id, unsigned long time_in_minutes, unsigned long number_nodes, unsigned long cores_per_node, std::string username, double ending_time_stamp, double arrival_time_stamp) | |
Constructor. More... | |
std::vector< int > | getAllocatedNodeIndices () |
Get the indices of allocated nodes. More... | |
double | getArrivalTimestamp () |
Get the arrival time stamp. More... | |
double | getBeginTimestamp () |
Get the BatchComputeService job's begin timestamp. More... | |
std::shared_ptr< CompoundJob > | getCompoundJob () |
Get the compound job corresponding to this BatchComputeService job. More... | |
double | getEndingTimestamp () |
Get the BatchComputeService job's end timestamp. More... | |
unsigned long | getJobID () |
Get the id of this BatchComputeService job. More... | |
double | getMemoryRequirement () |
Get the memory_manager_service requirement. More... | |
unsigned long | getRequestedCoresPerNode () |
Get the requested number of cores per node. More... | |
unsigned long | getRequestedNumNodes () |
Get the number of requested compute nodes (or hosts) More... | |
unsigned long | getRequestedTime () |
Get the requested time. More... | |
std::map< std::string, std::tuple< unsigned long, double > > | getResourcesAllocated () |
Get the resources allocated to this BatchComputeService job. More... | |
std::string | getUsername () |
Get the username. More... | |
void | setAllocatedNodeIndices (std::vector< int > indices) |
Set the indices of the allocated nodes. More... | |
void | setAllocatedResources (std::map< std::string, std::tuple< unsigned long, double >> resources) |
Set the resources allocated to this BatchComputeService job. More... | |
void | setBeginTimestamp (double time_stamp) |
Set the BatchComputeService job's begin timestamp. More... | |
void | setEndingTimestamp (double time_stamp) |
Set the BatchComputeService job's end timestamp. More... | |
void | setRequestedTime (unsigned long time) |
Set the requested time. More... | |
Public Attributes | |
std::string | csv_allocated_processors |
The allocated processors field for BatSim-style CSV output. | |
std::string | csv_metadata |
The meta-data field for BatSim-style CSV output. | |
A batch_standard_and_pilot_jobs job, which encapsulates a Job and additional information used by a batch_standard_and_pilot_jobs.
wrench::BatchJob::BatchJob | ( | std::shared_ptr< CompoundJob > | job, |
unsigned long | job_id, | ||
unsigned long | time_in_minutes, | ||
unsigned long | num_nodes, | ||
unsigned long | cores_per_node, | ||
std::string | username, | ||
double | ending_time_stamp, | ||
double | arrival_time_stamp | ||
) |
Constructor.
job | the compound job corresponding to the BatchComputeService job |
job_id | the BatchComputeService job id |
time_in_minutes | the requested execution time in minutes |
num_nodes | the requested number of compute nodes (hosts) |
cores_per_node | the requested number of cores per node |
username | the username of the user submitting the job |
ending_time_stamp | the job's end date |
arrival_time_stamp | the job's arrival date |
|
inline |
Get the indices of allocated nodes.
double wrench::BatchJob::getArrivalTimestamp | ( | ) |
Get the arrival time stamp.
double wrench::BatchJob::getBeginTimestamp | ( | ) |
Get the BatchComputeService job's begin timestamp.
std::shared_ptr< CompoundJob > wrench::BatchJob::getCompoundJob | ( | ) |
Get the compound job corresponding to this BatchComputeService job.
double wrench::BatchJob::getEndingTimestamp | ( | ) |
Get the BatchComputeService job's end timestamp.
unsigned long wrench::BatchJob::getJobID | ( | ) |
Get the id of this BatchComputeService job.
double wrench::BatchJob::getMemoryRequirement | ( | ) |
Get the memory_manager_service requirement.
unsigned long wrench::BatchJob::getRequestedCoresPerNode | ( | ) |
Get the requested number of cores per node.
unsigned long wrench::BatchJob::getRequestedNumNodes | ( | ) |
Get the number of requested compute nodes (or hosts)
unsigned long wrench::BatchJob::getRequestedTime | ( | ) |
Get the requested time.
std::map< std::string, std::tuple< unsigned long, double > > wrench::BatchJob::getResourcesAllocated | ( | ) |
Get the resources allocated to this BatchComputeService job.
std::string wrench::BatchJob::getUsername | ( | ) |
Get the username.
|
inline |
Set the indices of the allocated nodes.
indices | a list of indices |
void wrench::BatchJob::setAllocatedResources | ( | std::map< std::string, std::tuple< unsigned long, double >> | resources | ) |
Set the resources allocated to this BatchComputeService job.
resources | a list of resource, each as a <hostname, number of cores, bytes of RAM> tuple |
void wrench::BatchJob::setBeginTimestamp | ( | double | time_stamp | ) |
Set the BatchComputeService job's begin timestamp.
time_stamp | a date |
void wrench::BatchJob::setEndingTimestamp | ( | double | time_stamp | ) |
Set the BatchComputeService job's end timestamp.
time_stamp | a date |
void wrench::BatchJob::setRequestedTime | ( | unsigned long | time | ) |
Set the requested time.
time | a time in seconds |