comparison OrthancServer/ServerContext.h @ 3660:f159b731c47d storage-commitment

IStorageCommitmentFactory
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Feb 2020 17:39:53 +0100
parents 94f4a18a79cc
children d8371b4302ff
comparison
equal deleted inserted replaced
3659:08eb0f93c491 3660:f159b731c47d
35 35
36 #include "IServerListener.h" 36 #include "IServerListener.h"
37 #include "LuaScripting.h" 37 #include "LuaScripting.h"
38 #include "OrthancHttpHandler.h" 38 #include "OrthancHttpHandler.h"
39 #include "ServerIndex.h" 39 #include "ServerIndex.h"
40 #include "ServerJobs/IStorageCommitmentFactory.h"
40 41
41 #include "../Core/Cache/MemoryCache.h" 42 #include "../Core/Cache/MemoryCache.h"
42 43
43 44
44 namespace Orthanc 45 namespace Orthanc
58 /** 59 /**
59 * This class is responsible for maintaining the storage area on the 60 * This class is responsible for maintaining the storage area on the
60 * filesystem (including compression), as well as the index of the 61 * filesystem (including compression), as well as the index of the
61 * DICOM store. It implements the required locking mechanisms. 62 * DICOM store. It implements the required locking mechanisms.
62 **/ 63 **/
63 class ServerContext : private JobsRegistry::IObserver 64 class ServerContext :
65 public IStorageCommitmentFactory,
66 private JobsRegistry::IObserver
64 { 67 {
65 public: 68 public:
66 class ILookupVisitor : public boost::noncopyable 69 class ILookupVisitor : public boost::noncopyable
67 { 70 {
68 public: 71 public:
422 425
423 bool IsExecuteLuaEnabled() const 426 bool IsExecuteLuaEnabled() const
424 { 427 {
425 return isExecuteLuaEnabled_; 428 return isExecuteLuaEnabled_;
426 } 429 }
430
431 virtual IStorageCommitmentFactory::ILookupHandler*
432 CreateStorageCommitment(const std::string& jobId,
433 const std::string& transactionUid,
434 const std::vector<std::string>& sopClassUids,
435 const std::vector<std::string>& sopInstanceUids) ORTHANC_OVERRIDE;
427 }; 436 };
428 } 437 }