19 #include "wrench/managers/JobManager.h"
47 simgrid::s4u::Mailbox *popCallbackMailbox();
49 void printCallbackMailboxStack();
51 void pushCallbackMailbox(simgrid::s4u::Mailbox *mailbox);
53 simgrid::s4u::Mailbox *getCallbackMailbox();
55 simgrid::s4u::Mailbox *getOriginCallbackMailbox();
57 void setParentComputeService(std::shared_ptr<ComputeService> compute_service);
59 std::shared_ptr<ComputeService> getParentComputeService();
64 virtual void setPriority(
double priority);
66 double getPriority()
const;
68 std::map<std::string, std::string> &getServiceSpecificArguments();
74 Job(std::string name, std::shared_ptr<JobManager> job_manager);
76 void setServiceSpecificArguments(std::map<std::string, std::string> args);
78 unsigned long getNewUniqueNumber();
81 std::map<std::string, std::string> service_specific_args;
84 std::stack<simgrid::s4u::Mailbox *> callback_mailbox_stack;
86 std::shared_ptr<JobManager> job_manager;
88 simgrid::s4u::Mailbox *originator_mailbox;
99 std::shared_ptr<ComputeService> parent_compute_service;
102 bool already_submitted_to_job_manager =
false;
105 double priority = 0.0;
123 #endif //WRENCH_JOB_H