All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tuxdevelop.spring.batch.lightmin.model.StepExecutionModel Maven / Gradle / Ivy

The newest version!
package org.tuxdevelop.spring.batch.lightmin.model;

import lombok.Data;
import lombok.Setter;
import org.springframework.batch.core.StepExecution;
import org.tuxdevelop.spring.batch.lightmin.util.DurationHelper;

import java.io.Serializable;

/**
 * @author Marcel Becker
 * @since 0.1
 */
@Data
public class StepExecutionModel implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long jobInstanceId;
	private StepExecution stepExecution;
	@Setter
	private String duration;

	public String getDuration() {
		this.duration = DurationHelper.createDurationValue(stepExecution.getStartTime(), stepExecution.getEndTime());
		return duration;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy