1 /* 2 BAREOS® - Backup Archiving REcovery Open Sourced 3 4 Copyright (C) 2000-2012 Free Software Foundation Europe e.V. 5 Copyright (C) 2011-2012 Planets Communications B.V. 6 Copyright (C) 2013-2019 Bareos GmbH & Co. KG 7 8 This program is Free Software; you can redistribute it and/or 9 modify it under the terms of version three of the GNU Affero General Public 10 License as published by the Free Software Foundation and included 11 in the file LICENSE. 12 13 This program is distributed in the hope that it will be useful, but 14 WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 Affero General Public License for more details. 17 18 You should have received a copy of the GNU Affero General Public License 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 21 02110-1301, USA. 22 */ 23 24 #ifndef BAREOS_SRC_INCLUDE_JOB_STATUS_H_ 25 #define BAREOS_SRC_INCLUDE_JOB_STATUS_H_ 26 27 enum JobStatus : char 28 { 29 JS_Canceled = 'A', /**< Canceled by user */ 30 JS_Blocked = 'B', /**< Blocked */ 31 JS_Created = 'C', /**< Created but not yet running */ 32 JS_Differences = 'D', /**< Verify differences */ 33 JS_ErrorTerminated = 'E', /**< Job terminated in error */ 34 JS_WaitFD = 'F', /**< Waiting on File daemon */ 35 JS_Incomplete = 'I', /**< Incomplete Job */ 36 JS_DataCommitting = 'L', /**< Committing data (last despool) */ 37 JS_WaitMount = 'M', /**< Waiting for Mount */ 38 JS_Running = 'R', /**< Running */ 39 JS_WaitSD = 'S', /**< Waiting on the Storage daemon */ 40 JS_Terminated = 'T', /**< Terminated normally */ 41 JS_Warnings = 'W', /**< Terminated normally with warnings */ 42 43 JS_AttrDespooling = 'a', /**< SD despooling attributes */ 44 JS_WaitClientRes = 'c', /**< Waiting for Client resource */ 45 JS_WaitMaxJobs = 'd', /**< Waiting for maximum jobs */ 46 JS_Error = 'e', /**< Non-fatal error */ 47 JS_FatalError = 'f', /**< Fatal error */ 48 JS_AttrInserting = 'i', /**< Doing batch insert file records */ 49 JS_WaitJobRes = 'j', /**< Waiting for job resource */ 50 JS_DataDespooling = 'l', /**< Doing data despooling */ 51 JS_WaitMedia = 'm', /**< Waiting for new media */ 52 JS_WaitPriority = 'p', /**< Waiting for higher priority jobs to finish */ 53 JS_WaitDevice = 'q', /**< Queued waiting for device */ 54 JS_WaitStoreRes = 's', /**< Waiting for storage resource */ 55 JS_WaitStartTime = 't' /**< Waiting for start time */ 56 }; 57 58 #endif // BAREOS_SRC_INCLUDE_JOB_STATUS_H_ 59