comparison OrthancServer/ServerContext.cpp @ 2965:9c0b0a6d8b54

MediaArchiveSize configuration option
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Dec 2018 14:33:47 +0100
parents bfee0b9f3209
children 7695a9c81099
comparison
equal deleted inserted replaced
2964:6896a7c1cbe2 2965:9c0b0a6d8b54
233 haveJobsChanged_(false), 233 haveJobsChanged_(false),
234 isJobsEngineUnserialized_(false) 234 isJobsEngineUnserialized_(false)
235 { 235 {
236 { 236 {
237 OrthancConfiguration::ReaderLock lock; 237 OrthancConfiguration::ReaderLock lock;
238
238 queryRetrieveArchive_.reset( 239 queryRetrieveArchive_.reset(
239 new SharedArchive(lock.GetConfiguration().GetUnsignedIntegerParameter("QueryRetrieveSize", 10))); 240 new SharedArchive(lock.GetConfiguration().GetUnsignedIntegerParameter("QueryRetrieveSize", 10)));
241 mediaArchive_.reset(
242 new SharedArchive(lock.GetConfiguration().GetUnsignedIntegerParameter("MediaArchiveSize", 1)));
240 defaultLocalAet_ = lock.GetConfiguration().GetStringParameter("DicomAet", "ORTHANC"); 243 defaultLocalAet_ = lock.GetConfiguration().GetStringParameter("DicomAet", "ORTHANC");
241 jobsEngine_.SetWorkersCount(lock.GetConfiguration().GetUnsignedIntegerParameter("ConcurrentJobs", 2)); 244 jobsEngine_.SetWorkersCount(lock.GetConfiguration().GetUnsignedIntegerParameter("ConcurrentJobs", 2));
242 } 245 }
243 246
244 jobsEngine_.SetThreadSleep(unitTesting ? 20 : 200); 247 jobsEngine_.SetThreadSleep(unitTesting ? 20 : 200);