10 #ifndef WRENCH_HTCONDORNEGOTIATORSERVICE_H
11 #define WRENCH_HTCONDORNEGOTIATORSERVICE_H
13 #include "wrench/services/Service.h"
14 #include "wrench/services/compute/ComputeService.h"
15 #include "wrench/services/compute/htcondor/HTCondorCentralManagerServiceMessagePayload.h"
16 #include "wrench/workflow/job/WorkflowJob.h"
28 std::map<std::string, double> default_messagepayload_values = {
37 std::map<std::shared_ptr<ComputeService>,
unsigned long> &compute_resources,
38 std::map<std::shared_ptr<WorkflowJob>, std::shared_ptr<ComputeService>> &running_jobs,
39 std::vector<std::tuple<std::shared_ptr<WorkflowJob>, std::map<std::string, std::string>>> &pending_jobs,
40 std::string &reply_mailbox,
41 std::shared_ptr<ComputeService> &grid_universe_batch_service);
48 struct JobPriorityComparator {
49 bool operator()(std::tuple<std::shared_ptr<WorkflowJob>, std::map<std::string, std::string>> &lhs,
50 std::tuple<std::shared_ptr<WorkflowJob>, std::map<std::string, std::string>> &rhs);
54 std::string reply_mailbox;
56 std::map<std::shared_ptr<ComputeService>,
unsigned long> *compute_resources;
58 std::map<std::shared_ptr<WorkflowJob>, std::shared_ptr<ComputeService>> *running_jobs;
60 std::vector<std::tuple<std::shared_ptr<WorkflowJob>, std::map<std::string, std::string>>> pending_jobs;
62 std::shared_ptr<ComputeService> &grid_universe_batch_service;
70 #endif //WRENCH_HTCONDORNEGOTIATORSERVICE_H