Mercurial > hg > orthanc
comparison Core/JobsEngine/IJob.h @ 2812:ea7aea6f6a95
improved naming of methods in IJob
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 Sep 2018 16:23:40 +0200 |
parents | 7cfc8d266f41 |
children | cb5d75143da0 |
comparison
equal
deleted
inserted
replaced
2811:7cfc8d266f41 | 2812:ea7aea6f6a95 |
---|---|
48 } | 48 } |
49 | 49 |
50 // Method called once the job enters the jobs engine | 50 // Method called once the job enters the jobs engine |
51 virtual void Start() = 0; | 51 virtual void Start() = 0; |
52 | 52 |
53 virtual JobStepResult ExecuteStep() = 0; | 53 virtual JobStepResult Step() = 0; |
54 | 54 |
55 // Method called once the job is resubmitted after a failure | 55 // Method called once the job is resubmitted after a failure |
56 virtual void SignalResubmit() = 0; | 56 virtual void Reset() = 0; |
57 | 57 |
58 // For pausing/canceling jobs | 58 // For pausing/canceling/ending jobs: This method must release allocated resources |
59 virtual void ReleaseResources(JobReleaseReason reason) = 0; | 59 virtual void Stop(JobStopReason reason) = 0; |
60 | 60 |
61 virtual float GetProgress() = 0; | 61 virtual float GetProgress() = 0; |
62 | 62 |
63 virtual void GetJobType(std::string& target) = 0; | 63 virtual void GetJobType(std::string& target) = 0; |
64 | 64 |