HTCondorNegotiatorService.h
1 
10 #ifndef WRENCH_HTCONDORNEGOTIATORSERVICE_H
11 #define WRENCH_HTCONDORNEGOTIATORSERVICE_H
12 
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/StandardJob.h"
17 
18 namespace wrench {
19 
20  /***********************/
22  /***********************/
24  private:
25  std::map<std::string, std::string> default_messagepayload_values = {
29  };
30 
31  public:
32 
34  std::map<ComputeService *, unsigned long> &compute_resources,
35  std::map<StandardJob *, ComputeService *> &running_jobs,
36  std::vector<StandardJob *> &pending_jobs,
37  std::string &reply_mailbox);
38 
40 
41  private:
42  int main() override;
43 
44  struct JobPriorityComparator {
45  bool operator()(StandardJob *&lhs, StandardJob *&rhs);
46  };
47 
49  std::string reply_mailbox;
51  std::map<ComputeService *, unsigned long> *compute_resources;
52  std::map<StandardJob *, ComputeService *> *running_jobs;
54  std::vector<StandardJob *> pending_jobs;
55  };
56 
57  /***********************/
59  /***********************/
60 }
61 
62 #endif //WRENCH_HTCONDORNEGOTIATORSERVICE_H
~HTCondorNegotiatorService()
Destructor.
Definition: HTCondorNegotiatorService.cpp:46
static const std::string STOP_DAEMON_MESSAGE_PAYLOAD
The number of bytes in the control message sent to the daemon to terminate it.
Definition: ServiceMessagePayload.h:31
A service that can be added to the simulation and that can be used by a WMS when executing a workflow...
Definition: Service.h:26
static const std::string HTCONDOR_NEGOTIATOR_DONE_MESSAGE_PAYLOAD
The number of bytes in the control message sent by the daemon to state that the negotiator has been c...
Definition: HTCondorCentralManagerServiceMessagePayload.h:23
std::string hostname
The name of the host on which the daemon is running.
Definition: S4U_Daemon.h:47
A standard (i.e., non-pilot) workflow job that can be submitted to a ComputeService by a WMS (via a J...
Definition: StandardJob.h:38
HTCondorNegotiatorService(std::string &hostname, std::map< ComputeService *, unsigned long > &compute_resources, std::map< StandardJob *, ComputeService *> &running_jobs, std::vector< StandardJob *> &pending_jobs, std::string &reply_mailbox)
Constructor.
Definition: HTCondorNegotiatorService.cpp:31
Definition: HTCondorNegotiatorService.h:23
static const std::string DAEMON_STOPPED_MESSAGE_PAYLOAD
The number of bytes in the control message sent by the daemon to confirm it has terminated.
Definition: ServiceMessagePayload.h:33
Definition: TerminalOutput.cpp:15