comparison OrthancServer/ServerContext.h @ 2950:dc18d5804746

support of JobsHistorySize set to zero
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 30 Nov 2018 17:19:57 +0100
parents 4767d36679ed
children 9c0b0a6d8b54
comparison
equal deleted inserted replaced
2949:e6204cd21443 2950:dc18d5804746
158 bool storeMD5_; 158 bool storeMD5_;
159 159
160 DicomCacheProvider provider_; 160 DicomCacheProvider provider_;
161 boost::mutex dicomCacheMutex_; 161 boost::mutex dicomCacheMutex_;
162 MemoryCache dicomCache_; 162 MemoryCache dicomCache_;
163 JobsEngine jobsEngine_;
164 163
165 LuaScripting mainLua_; 164 LuaScripting mainLua_;
166 LuaScripting filterLua_; 165 LuaScripting filterLua_;
167 LuaServerListener luaListener_; 166 LuaServerListener luaListener_;
168 167
168 // The "JobsEngine" must be *after* "LuaScripting", as
169 // "LuaScripting" embeds "LuaJobManager" that registers as an
170 // observer to "SequenceOfOperationsJob", whose lifetime
171 // corresponds to that of "JobsEngine"
172 JobsEngine jobsEngine_;
173
169 #if ORTHANC_ENABLE_PLUGINS == 1 174 #if ORTHANC_ENABLE_PLUGINS == 1
170 OrthancPlugins* plugins_; 175 OrthancPlugins* plugins_;
171 #endif 176 #endif
172 177
173 ServerListeners listeners_; 178 ServerListeners listeners_;
204 } 209 }
205 }; 210 };
206 211
207 ServerContext(IDatabaseWrapper& database, 212 ServerContext(IDatabaseWrapper& database,
208 IStorageArea& area, 213 IStorageArea& area,
209 bool unitTesting); 214 bool unitTesting,
215 size_t maxCompletedJobs);
210 216
211 ~ServerContext(); 217 ~ServerContext();
212 218
213 void SetupJobsEngine(bool unitTesting, 219 void SetupJobsEngine(bool unitTesting,
214 bool loadJobsFromDatabase); 220 bool loadJobsFromDatabase);