Skip to content

Package: IsJobRunningResponse

IsJobRunningResponse

nameinstructionbranchcomplexitylinemethod
IsJobRunningResponse()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
IsJobRunningResponse(KapuaId, Boolean)
M: 9 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
getJobId()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
isRunning()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
setJobId(KapuaId)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setRunning(Boolean)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2021, 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.app.api.core.model.job;
14:
15: import javax.xml.bind.annotation.XmlElement;
16: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
17:
18: import org.eclipse.kapua.model.id.KapuaId;
19: import org.eclipse.kapua.model.id.KapuaIdAdapter;
20:
21: public class IsJobRunningResponse {
22:
23: private KapuaId jobId;
24: private Boolean isRunning;
25:
26: public IsJobRunningResponse() {
27: }
28:
29: public IsJobRunningResponse(KapuaId jobId, Boolean isRunning) {
30: this.jobId = jobId;
31: this.isRunning = isRunning;
32: }
33:
34: @XmlJavaTypeAdapter(KapuaIdAdapter.class)
35: public KapuaId getJobId() {
36: return jobId;
37: }
38:
39: public void setJobId(KapuaId jobId) {
40: this.jobId = jobId;
41: }
42:
43: @XmlElement(name = "isRunning")
44: public Boolean isRunning() {
45: return isRunning;
46: }
47:
48: public void setRunning(Boolean isRunning) {
49: this.isRunning = isRunning;
50: }
51:
52: }