comparison OrthancServer/ServerContext.cpp @ 995:8c67382f44a7 lua-scripting

limit number of jobs in the scheduler
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 03 Jul 2014 15:58:53 +0200
parents b3f6fb1130cd
children cf52f3bcb2b3
comparison
equal deleted inserted replaced
994:b3d4f8a30324 995:8c67382f44a7
65 storage_(storagePath.string()), 65 storage_(storagePath.string()),
66 index_(*this, indexPath.string()), 66 index_(*this, indexPath.string()),
67 accessor_(storage_), 67 accessor_(storage_),
68 compressionEnabled_(false), 68 compressionEnabled_(false),
69 provider_(*this), 69 provider_(*this),
70 dicomCache_(provider_, DICOM_CACHE_SIZE) 70 dicomCache_(provider_, DICOM_CACHE_SIZE),
71 scheduler_(Configuration::GetGlobalIntegerParameter("LimitJobs", 10))
71 { 72 {
72 scu_.SetLocalApplicationEntityTitle(Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC")); 73 scu_.SetLocalApplicationEntityTitle(Configuration::GetGlobalStringParameter("DicomAet", "ORTHANC"));
73 //scu_.SetMillisecondsBeforeClose(1); // The connection is always released 74 //scu_.SetMillisecondsBeforeClose(1); // The connection is always released
74 75
75 lua_.Execute(Orthanc::EmbeddedResources::LUA_TOOLBOX); 76 lua_.Execute(Orthanc::EmbeddedResources::LUA_TOOLBOX);