Boot updated bom to use batch 5.x
Updated code to remove new deprecations Updated code to fix compilation errors. Updated code to add new bits for tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2019 the original author or authors.
|
||||
* Copyright 2016-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -64,8 +64,6 @@ public class JobExecutionEvent extends Entity {
|
||||
|
||||
private List<Throwable> failureExceptions = new CopyOnWriteArrayList<>();
|
||||
|
||||
private String jobConfigurationName;
|
||||
|
||||
public JobExecutionEvent() {
|
||||
super();
|
||||
}
|
||||
@@ -90,7 +88,6 @@ public class JobExecutionEvent extends Entity {
|
||||
this.exitStatus = new ExitStatus(original.getExitStatus());
|
||||
this.executionContext = original.getExecutionContext();
|
||||
this.failureExceptions = original.getFailureExceptions();
|
||||
this.jobConfigurationName = original.getJobConfigurationName();
|
||||
this.setId(original.getId());
|
||||
this.setVersion(original.getVersion());
|
||||
}
|
||||
@@ -213,10 +210,6 @@ public class JobExecutionEvent extends Entity {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getJobConfigurationName() {
|
||||
return this.jobConfigurationName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the date representing the last time this JobExecution was updated in the
|
||||
* JobRepository.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015-2019 the original author or authors.
|
||||
* Copyright 2015-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -41,19 +41,19 @@ public class StepExecutionEvent extends Entity {
|
||||
|
||||
private BatchStatus status = BatchStatus.STARTING;
|
||||
|
||||
private int readCount = 0;
|
||||
private long readCount = 0;
|
||||
|
||||
private int writeCount = 0;
|
||||
private long writeCount = 0;
|
||||
|
||||
private int commitCount = 0;
|
||||
private long commitCount = 0;
|
||||
|
||||
private int rollbackCount = 0;
|
||||
private long rollbackCount = 0;
|
||||
|
||||
private int readSkipCount = 0;
|
||||
private long readSkipCount = 0;
|
||||
|
||||
private int processSkipCount = 0;
|
||||
private long processSkipCount = 0;
|
||||
|
||||
private int writeSkipCount = 0;
|
||||
private long writeSkipCount = 0;
|
||||
|
||||
private Date startTime = new Date(System.currentTimeMillis());
|
||||
|
||||
@@ -68,7 +68,7 @@ public class StepExecutionEvent extends Entity {
|
||||
|
||||
private boolean terminateOnly;
|
||||
|
||||
private int filterCount;
|
||||
private long filterCount;
|
||||
|
||||
private List<Throwable> failureExceptions = new CopyOnWriteArrayList<>();
|
||||
|
||||
@@ -133,7 +133,7 @@ public class StepExecutionEvent extends Entity {
|
||||
* Returns the current number of commits for this execution.
|
||||
* @return the current number of commits
|
||||
*/
|
||||
public int getCommitCount() {
|
||||
public long getCommitCount() {
|
||||
return this.commitCount;
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ public class StepExecutionEvent extends Entity {
|
||||
* Returns the current number of items read for this execution.
|
||||
* @return the current number of items read for this execution
|
||||
*/
|
||||
public int getReadCount() {
|
||||
public long getReadCount() {
|
||||
return this.readCount;
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ public class StepExecutionEvent extends Entity {
|
||||
* Returns the current number of items written for this execution.
|
||||
* @return the current number of items written for this execution
|
||||
*/
|
||||
public int getWriteCount() {
|
||||
public long getWriteCount() {
|
||||
return this.writeCount;
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ public class StepExecutionEvent extends Entity {
|
||||
* Returns the current number of rollbacks for this execution.
|
||||
* @return the current number of rollbacks for this execution
|
||||
*/
|
||||
public int getRollbackCount() {
|
||||
public long getRollbackCount() {
|
||||
return this.rollbackCount;
|
||||
}
|
||||
|
||||
@@ -213,7 +213,7 @@ public class StepExecutionEvent extends Entity {
|
||||
* Returns the current number of items filtered out of this execution.
|
||||
* @return the current number of items filtered out of this execution
|
||||
*/
|
||||
public int getFilterCount() {
|
||||
public long getFilterCount() {
|
||||
return this.filterCount;
|
||||
}
|
||||
|
||||
@@ -300,7 +300,7 @@ public class StepExecutionEvent extends Entity {
|
||||
/**
|
||||
* @return the total number of items skipped.
|
||||
*/
|
||||
public int getSkipCount() {
|
||||
public long getSkipCount() {
|
||||
return this.readSkipCount + this.processSkipCount + this.writeSkipCount;
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ public class StepExecutionEvent extends Entity {
|
||||
/**
|
||||
* @return the number of records skipped on read.
|
||||
*/
|
||||
public int getReadSkipCount() {
|
||||
public long getReadSkipCount() {
|
||||
return this.readSkipCount;
|
||||
}
|
||||
|
||||
@@ -329,7 +329,7 @@ public class StepExecutionEvent extends Entity {
|
||||
/**
|
||||
* @return the number of records skipped on write
|
||||
*/
|
||||
public int getWriteSkipCount() {
|
||||
public long getWriteSkipCount() {
|
||||
return this.writeSkipCount;
|
||||
}
|
||||
|
||||
@@ -344,7 +344,7 @@ public class StepExecutionEvent extends Entity {
|
||||
/**
|
||||
* @return the number of records skipped during processing
|
||||
*/
|
||||
public int getProcessSkipCount() {
|
||||
public long getProcessSkipCount() {
|
||||
return this.processSkipCount;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user