comparison OrthancServer/ServerJobs/LuaJobManager.h @ 3858:3ab2d48c8f69 c-get

integration mainline->c-get
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 21 Apr 2020 16:37:25 +0200
parents 6498739a3c3c
children 8f7ad4989fec
comparison
equal deleted inserted replaced
3818:4f78da5613a1 3858:3ab2d48c8f69
31 **/ 31 **/
32 32
33 33
34 #pragma once 34 #pragma once
35 35
36 #include "../../Core/DicomNetworking/TimeoutDicomConnectionManager.h"
36 #include "../../Core/DicomParsing/DicomModification.h" 37 #include "../../Core/DicomParsing/DicomModification.h"
37 #include "../../Core/JobsEngine/JobsEngine.h" 38 #include "../../Core/JobsEngine/JobsEngine.h"
38 #include "../../Core/JobsEngine/Operations/SequenceOfOperationsJob.h" 39 #include "../../Core/JobsEngine/Operations/SequenceOfOperationsJob.h"
39 #include "../../Core/WebServiceParameters.h" 40 #include "../../Core/WebServiceParameters.h"
40 41
49 std::string currentId_; 50 std::string currentId_;
50 SequenceOfOperationsJob* currentJob_; 51 SequenceOfOperationsJob* currentJob_;
51 size_t maxOperations_; 52 size_t maxOperations_;
52 int priority_; 53 int priority_;
53 unsigned int trailingTimeout_; 54 unsigned int trailingTimeout_;
54 unsigned int dicomTimeout_; 55 TimeoutDicomConnectionManager connectionManager_;
55 56
56 virtual void SignalDone(const SequenceOfOperationsJob& job); 57 virtual void SignalDone(const SequenceOfOperationsJob& job);
57 58
58 public: 59 public:
59 LuaJobManager(); 60 LuaJobManager();
63 void SetPriority(int priority); 64 void SetPriority(int priority);
64 65
65 void SetTrailingOperationTimeout(unsigned int timeout); 66 void SetTrailingOperationTimeout(unsigned int timeout);
66 67
67 void AwakeTrailingSleep(); 68 void AwakeTrailingSleep();
69
70 TimeoutDicomConnectionManager& GetDicomConnectionManager()
71 {
72 return connectionManager_;
73 }
68 74
69 class Lock : public boost::noncopyable 75 class Lock : public boost::noncopyable
70 { 76 {
71 private: 77 private:
72 LuaJobManager& that_; 78 LuaJobManager& that_;