Skip to content

Package: JobTargetStatus

JobTargetStatus

nameinstructionbranchcomplexitylinemethod
static {...}
M: 54 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 6 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2017, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.job.targets;
14:
15: /**
16: * The possible statues for the {@link JobTarget}
17: * <p>
18: * Initial status will be {@link #PROCESS_AWAITING} and then is up to the {@link org.eclipse.kapua.service.job.Job} processing
19: * manage the {@link JobTarget}'s {@link JobTargetStatus} according to the processing results.
20: *
21: * @since 1.0.0
22: */
23: public enum JobTargetStatus {
24: /**
25: * The processing for the current {@link JobTarget#getStepIndex()} has completed.
26: *
27: * @since 1.0.0
28: */
29: PROCESS_OK,
30:
31: /**
32: * The processing for the current {@link JobTarget#getStepIndex()} has failed.
33: *
34: * @since 1.0.0
35: */
36: PROCESS_FAILED,
37:
38: /**
39: * The processing for the current {@link JobTarget#getStepIndex()} is waiting the processing.
40: *
41: * @since 1.0.0
42: */
43: PROCESS_AWAITING,
44:
45: /**
46: * The processing for the current {@link JobTarget#getStepIndex()} is waiting the {@link JobTarget} to complete the processing
47: *
48: * @since 1.1.0
49: */
50: AWAITING_COMPLETION,
51:
52: /**
53: * The processing for the current {@link JobTarget#getStepIndex()} has been notified the completion by {@link JobTarget}.
54: *
55: * @since 1.1.0
56: */
57: NOTIFIED_COMPLETION,
58: }