Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.h @ 783:c9cdd53a6b31 lua-scripting
main scheduler added to the server context
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Apr 2014 18:36:20 +0200 |
parents | 537837f50fbb |
children | 394a19d44f9d |
comparison
equal
deleted
inserted
replaced
781:f0ac3a53ccf2 | 783:c9cdd53a6b31 |
---|---|
38 #include "../Core/RestApi/RestApiOutput.h" | 38 #include "../Core/RestApi/RestApiOutput.h" |
39 #include "../Core/Lua/LuaContext.h" | 39 #include "../Core/Lua/LuaContext.h" |
40 #include "ServerIndex.h" | 40 #include "ServerIndex.h" |
41 #include "FromDcmtkBridge.h" | 41 #include "FromDcmtkBridge.h" |
42 #include "DicomProtocol/ReusableDicomUserConnection.h" | 42 #include "DicomProtocol/ReusableDicomUserConnection.h" |
43 #include "Scheduler/ServerScheduler.h" | |
43 | 44 |
44 namespace Orthanc | 45 namespace Orthanc |
45 { | 46 { |
46 /** | 47 /** |
47 * This class is responsible for maintaining the storage area on the | 48 * This class is responsible for maintaining the storage area on the |
70 bool compressionEnabled_; | 71 bool compressionEnabled_; |
71 | 72 |
72 DicomCacheProvider provider_; | 73 DicomCacheProvider provider_; |
73 MemoryCache dicomCache_; | 74 MemoryCache dicomCache_; |
74 ReusableDicomUserConnection scu_; | 75 ReusableDicomUserConnection scu_; |
76 ServerScheduler scheduler_; | |
75 | 77 |
76 LuaContext lua_; | 78 LuaContext lua_; |
77 | 79 |
78 public: | 80 public: |
79 ServerContext(const boost::filesystem::path& storagePath, | 81 ServerContext(const boost::filesystem::path& storagePath, |
155 | 157 |
156 ReusableDicomUserConnection& GetReusableDicomUserConnection() | 158 ReusableDicomUserConnection& GetReusableDicomUserConnection() |
157 { | 159 { |
158 return scu_; | 160 return scu_; |
159 } | 161 } |
162 | |
163 ServerScheduler& GetScheduler() | |
164 { | |
165 return scheduler_; | |
166 } | |
160 }; | 167 }; |
161 } | 168 } |