Improved toString(0 for *Execution.
This commit is contained in:
@@ -20,6 +20,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.BeanNameAware;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
/**
|
||||
* Batch domain object representing a job configuration. JobConfiguration is an
|
||||
@@ -115,4 +116,8 @@ public class JobConfiguration implements BeanNameAware {
|
||||
public boolean isRestartable() {
|
||||
return restartable;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return ClassUtils.getShortName(JobConfiguration.class) + ": [name="+name+"]";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,11 +191,15 @@ public class StepExecution extends Entity {
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return super.toString() + ", taskCount=" + taskCount + ", commitCount=" + commitCount + ", rollbackCount="
|
||||
return super.toString() + ", name=" + getName() + ", taskCount=" + taskCount + ", commitCount=" + commitCount + ", rollbackCount="
|
||||
+ rollbackCount;
|
||||
}
|
||||
|
||||
|
||||
private String getName() {
|
||||
return step==null ? null : step.getName();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param exitStatus
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user