Skip to content

Package: JobStepDefinition

JobStepDefinition

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.step.definition;
14:
15: import org.eclipse.kapua.model.KapuaNamedEntity;
16:
17: import javax.xml.bind.annotation.XmlAccessType;
18: import javax.xml.bind.annotation.XmlAccessorType;
19: import javax.xml.bind.annotation.XmlRootElement;
20: import javax.xml.bind.annotation.XmlType;
21: import java.util.List;
22:
23: /**
24: * {@link JobStepDefinition} {@link org.eclipse.kapua.model.KapuaEntity} definition.
25: *
26: * @since 1.0.0
27: */
28: @XmlRootElement(name = "jobStepDefinition")
29: @XmlAccessorType(XmlAccessType.PROPERTY)
30: @XmlType(factoryClass = JobStepDefinitionXmlRegistry.class, factoryMethod = "newJobStepDefinition")
31: public interface JobStepDefinition extends KapuaNamedEntity {
32:
33: String TYPE = "stepDefinition";
34:
35: @Override
36: default String getType() {
37: return TYPE;
38: }
39:
40: JobStepType getStepType();
41:
42: void setStepType(JobStepType jobStepType);
43:
44: String getReaderName();
45:
46: void setReaderName(String readerName);
47:
48: String getProcessorName();
49:
50: void setProcessorName(String processorName);
51:
52: String getWriterName();
53:
54: void setWriterName(String writesName);
55:
56: <P extends JobStepProperty> List<P> getStepProperties();
57:
58: void setStepProperties(List<JobStepProperty> jobStepProperties);
59:
60: }