Package: JobStepCreatorImpl
JobStepCreatorImpl
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
JobStepCreatorImpl(KapuaId) |
|
|
|
|
|
||||||||||||||||||||
getJobId() |
|
|
|
|
|
||||||||||||||||||||
getJobStepDefinitionId() |
|
|
|
|
|
||||||||||||||||||||
getStepIndex() |
|
|
|
|
|
||||||||||||||||||||
getStepProperties() |
|
|
|
|
|
||||||||||||||||||||
setJobId(KapuaId) |
|
|
|
|
|
||||||||||||||||||||
setJobStepDefinitionId(KapuaId) |
|
|
|
|
|
||||||||||||||||||||
setStepIndex(Integer) |
|
|
|
|
|
||||||||||||||||||||
setStepProperties(List) |
|
|
|
|
|
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.step.internal;
14:
15: import org.eclipse.kapua.commons.model.AbstractKapuaNamedEntityCreator;
16: import org.eclipse.kapua.locator.KapuaProvider;
17: import org.eclipse.kapua.model.id.KapuaId;
18: import org.eclipse.kapua.service.job.step.JobStep;
19: import org.eclipse.kapua.service.job.step.JobStepCreator;
20: import org.eclipse.kapua.service.job.step.definition.JobStepProperty;
21:
22: import java.util.ArrayList;
23: import java.util.List;
24:
25: /**
26: * {@link JobStepCreator} implementation
27: *
28: * @since 1.0.0
29: */
30: @KapuaProvider
31: public class JobStepCreatorImpl extends AbstractKapuaNamedEntityCreator<JobStep> implements JobStepCreator {
32:
33: private static final long serialVersionUID = 3119071638220738358L;
34:
35: private KapuaId jobId;
36: private Integer stepIndex;
37: private KapuaId jobStepDefinitionId;
38: private List<JobStepProperty> jobStepProperty;
39:
40: public JobStepCreatorImpl(KapuaId scopeId) {
41: super(scopeId);
42: }
43:
44: @Override
45: public KapuaId getJobId() {
46: return jobId;
47: }
48:
49: @Override
50: public void setJobId(KapuaId jobId) {
51: this.jobId = jobId;
52: }
53:
54: @Override
55: public Integer getStepIndex() {
56: return stepIndex;
57: }
58:
59: @Override
60: public void setStepIndex(Integer stepIndex) {
61: this.stepIndex = stepIndex;
62: }
63:
64: @Override
65: public KapuaId getJobStepDefinitionId() {
66: return jobStepDefinitionId;
67: }
68:
69: @Override
70: public void setJobStepDefinitionId(KapuaId jobStepDefinitionId) {
71: this.jobStepDefinitionId = jobStepDefinitionId;
72: }
73:
74: @Override
75: public List<JobStepProperty> getStepProperties() {
76:• if (jobStepProperty == null) {
77: jobStepProperty = new ArrayList<>();
78: }
79:
80: return jobStepProperty;
81: }
82:
83: @Override
84: public void setStepProperties(List<JobStepProperty> jobStepProperty) {
85: this.jobStepProperty = jobStepProperty;
86: }
87:
88: }