Skip to content

Package: JobExecutionCreatorImpl

JobExecutionCreatorImpl

nameinstructionbranchcomplexitylinemethod
JobExecutionCreatorImpl(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%
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%
getStartedOn()
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%
getTargetIds()
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%
setStartedOn(Date)
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%
setTargetIds(Set)
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) 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.execution.internal;
14:
15: import org.eclipse.kapua.commons.model.AbstractKapuaUpdatableEntityCreator;
16: import org.eclipse.kapua.model.id.KapuaId;
17: import org.eclipse.kapua.service.job.execution.JobExecution;
18: import org.eclipse.kapua.service.job.execution.JobExecutionCreator;
19:
20: import java.util.Date;
21: import java.util.Set;
22:
23: /**
24: * {@link JobExecutionCreator} implementation
25: *
26: * @since 1.0.0
27: */
28: public class JobExecutionCreatorImpl extends AbstractKapuaUpdatableEntityCreator<JobExecution> implements JobExecutionCreator {
29:
30: private static final long serialVersionUID = 3119071638220738358L;
31:
32: private KapuaId jobId;
33: private Date startedOn;
34: private Set<KapuaId> targetIds;
35:
36: protected JobExecutionCreatorImpl(KapuaId scopeId) {
37: super(scopeId);
38: }
39:
40: @Override
41: public KapuaId getJobId() {
42: return jobId;
43: }
44:
45: @Override
46: public void setJobId(KapuaId jobId) {
47: this.jobId = jobId;
48: }
49:
50: @Override
51: public Date getStartedOn() {
52: return startedOn;
53: }
54:
55: @Override
56: public void setStartedOn(Date startedOn) {
57: this.startedOn = startedOn;
58: }
59:
60: @Override
61: public Set<KapuaId> getTargetIds() {
62: return targetIds;
63: }
64:
65: @Override
66: public void setTargetIds(Set<KapuaId> targetIds) {
67: this.targetIds = targetIds;
68: }
69: }