Skip to content

Package: Job

Job

nameinstructionbranchcomplexitylinemethod
getType()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 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;
14:
15: import org.eclipse.kapua.model.KapuaEntity;
16: import org.eclipse.kapua.model.KapuaNamedEntity;
17: import org.eclipse.kapua.service.job.step.JobStep;
18:
19: import javax.xml.bind.annotation.XmlAccessType;
20: import javax.xml.bind.annotation.XmlAccessorType;
21: import javax.xml.bind.annotation.XmlRootElement;
22: import javax.xml.bind.annotation.XmlTransient;
23: import javax.xml.bind.annotation.XmlType;
24: import java.util.List;
25:
26: /**
27: * {@link Job} {@link KapuaEntity} definition.
28: *
29: * @since 1.0.0
30: */
31: @XmlRootElement(name = "job")
32: @XmlAccessorType(XmlAccessType.PROPERTY)
33: @XmlType(factoryClass = JobXmlRegistry.class, factoryMethod = "newJob")
34: public interface Job extends KapuaNamedEntity {
35:
36: String TYPE = "job";
37:
38: @Override
39: default String getType() {
40: return TYPE;
41: }
42:
43: /**
44: * Gets the {@link List} of {@link JobStep}.
45: *
46: * @return The {@link List} of {@link JobStep}.
47: * @since 1.0.0
48: * @deprecated Since 1.1.0. The {@link JobStep} are no longer bound to the {@link Job}.
49: */
50: @Deprecated
51: @XmlTransient
52: List<JobStep> getJobSteps();
53:
54: /**
55: * Sets the {@link List} of {@link JobStep}.
56: *
57: * @param jobSteps The {@link List} of {@link JobStep}.
58: * @since 1.0.0
59: * @deprecated Since 1.1.0. The {@link JobStep} are no longer bound to the {@link Job}.
60: */
61: @Deprecated
62: void setJobSteps(List<JobStep> jobSteps);
63:
64: /**
65: * Gets the jBatch Job xml definition.
66: *
67: * @return The jBatch Job xml definition.
68: * @since 1.0.0
69: * @deprecated Since 1.1.0. The definition is no longer generated.
70: */
71: @Deprecated
72: String getJobXmlDefinition();
73:
74: /**
75: * Sets the jBatch Job xml definition.
76: *
77: * @param jobXmlDefinition The jBatch Job xml definition.
78: * @since 1.0.0
79: * @deprecated Since 1.1.0. The definition is no longer generated.
80: */
81: @Deprecated
82: void setJobXmlDefinition(String jobXmlDefinition);
83:
84: }