comparison OrthancServer/Sources/ServerJobs/ArchiveJob.h @ 4810:7afbb54bd028

merge storage-cache
author Alain Mazy <am@osimis.io>
date Tue, 23 Nov 2021 09:22:11 +0100
parents 0a38000b086d 4e765c18ace7
children 70d2a97ca8cb 7053502fbf97
comparison
equal deleted inserted replaced
4809:2ca4213fb50a 4810:7afbb54bd028
53 class IArchiveVisitor; 53 class IArchiveVisitor;
54 class MediaIndexVisitor; 54 class MediaIndexVisitor;
55 class ResourceIdentifiers; 55 class ResourceIdentifiers;
56 class ZipCommands; 56 class ZipCommands;
57 class ZipWriterIterator; 57 class ZipWriterIterator;
58 58 class InstanceLoader;
59 class SynchronousInstanceLoader;
60 class ThreadedInstanceLoader;
61
59 std::unique_ptr<ZipWriter::IOutputStream> synchronousTarget_; // Only valid before "Start()" 62 std::unique_ptr<ZipWriter::IOutputStream> synchronousTarget_; // Only valid before "Start()"
60 std::unique_ptr<TemporaryFile> asynchronousTarget_; 63 std::unique_ptr<TemporaryFile> asynchronousTarget_;
61 ServerContext& context_; 64 ServerContext& context_;
65 std::unique_ptr<InstanceLoader> instanceLoader_;
62 boost::shared_ptr<ArchiveIndex> archive_; 66 boost::shared_ptr<ArchiveIndex> archive_;
63 bool isMedia_; 67 bool isMedia_;
64 bool enableExtendedSopClass_; 68 bool enableExtendedSopClass_;
65 std::string description_; 69 std::string description_;
66 70
72 std::string mediaArchiveId_; 76 std::string mediaArchiveId_;
73 77
74 // New in Orthanc 1.7.0 78 // New in Orthanc 1.7.0
75 bool transcode_; 79 bool transcode_;
76 DicomTransferSyntax transferSyntax_; 80 DicomTransferSyntax transferSyntax_;
81
82 // New in Orthanc 1.9.8
83 unsigned int loaderThreads_;
77 84
78 void FinalizeTarget(); 85 void FinalizeTarget();
79 86
80 public: 87 public:
81 ArchiveJob(ServerContext& context, 88 ArchiveJob(ServerContext& context,
94 } 101 }
95 102
96 void AddResource(const std::string& publicId); 103 void AddResource(const std::string& publicId);
97 104
98 void SetTranscode(DicomTransferSyntax transferSyntax); 105 void SetTranscode(DicomTransferSyntax transferSyntax);
106
107 void SetLoaderThreads(unsigned int loaderThreads);
99 108
100 virtual void Reset() ORTHANC_OVERRIDE; 109 virtual void Reset() ORTHANC_OVERRIDE;
101 110
102 virtual void Start() ORTHANC_OVERRIDE; 111 virtual void Start() ORTHANC_OVERRIDE;
103 112