本文整理汇总了Java中org.springframework.batch.core.annotation.AfterStep类的典型用法代码示例。如果您正苦于以下问题:Java AfterStep类的具体用法?Java AfterStep怎么用?Java AfterStep使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AfterStep类属于org.springframework.batch.core.annotation包,在下文中一共展示了AfterStep类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: afterStep
import org.springframework.batch.core.annotation.AfterStep; //导入依赖的package包/类
@AfterStep
public ExitStatus afterStep(StepExecution stepExecution) {
final Interval interval = new Interval(
stepExecution.getStartTime().getTime(),
System.currentTimeMillis());
LOG.debug("Finished step: {} in {}. read = {} write = {} commit = {} rollback = {} filter = {} skip = {}",
stepExecution.getStepName(), PeriodFormat.getDefault().print(interval.toPeriod()),
stepExecution.getReadCount(), stepExecution.getWriteCount(),
stepExecution.getCommitCount(), stepExecution.getRollbackCount(),
stepExecution.getFilterCount(),
stepExecution.getSkipCount());
return stepExecution.getExitStatus();
}
开发者ID:suomenriistakeskus,项目名称:oma-riista-web,代码行数:16,代码来源:LoggingBatchListener.java
示例2: dispose
import org.springframework.batch.core.annotation.AfterStep; //导入依赖的package包/类
/**
* Dispose the excel object
*/
@AfterStep
public void dispose()
{
if(excel != null)
try{ excel.dispose(); } catch(Exception e){}
}
开发者ID:nyla-solutions,项目名称:nyla,代码行数:10,代码来源:ExcelItemReader.java
示例3: afterStep
import org.springframework.batch.core.annotation.AfterStep; //导入依赖的package包/类
@AfterStep
public ExitStatus afterStep(StepExecution stepExecution) {
File file = fileService.getById(getServiceContext(), getFileId());
file.setTotalRecordCount(stepExecution.getReadCount() + stepExecution.getReadSkipCount());
fileService.addOrUpdate(getServiceContext(), file);
return null;
}
开发者ID:SmarterApp,项目名称:TechnologyReadinessTool,代码行数:8,代码来源:ItemCountStepListener.java
示例4: afterStep
import org.springframework.batch.core.annotation.AfterStep; //导入依赖的package包/类
@AfterStep
public ExitStatus afterStep(StepExecution stepExecution) {
log.info("스텝 완료 후 호출됩니다. StepName=[{}], ExitStatus=[{}]",
stepExecution.getStepName(), stepExecution.getExitStatus());
return ExitStatus.COMPLETED;
}
开发者ID:debop,项目名称:spring-batch-experiments,代码行数:8,代码来源:ImportProductsExecutionListener.java
示例5: saveStepExecution
import org.springframework.batch.core.annotation.AfterStep; //导入依赖的package包/类
@AfterStep
public void saveStepExecution(final StepExecution stepExecution) {
this.key2vcf.values().stream().forEach(V->{try {V.close();}catch(Exception err){}});;
stepExecution.getExecutionContext().putString("file", "out");
}
开发者ID:lindenb,项目名称:jvarkit,代码行数:6,代码来源:VariantContextSplitWriter.java
示例6: afterStep
import org.springframework.batch.core.annotation.AfterStep; //导入依赖的package包/类
@Override
@AfterStep
public ExitStatus afterStep(StepExecution stepExecution) {
log.info("$$$ after step {}",stepExecution.getStepName());
return null;
}
开发者ID:przodownikR1,项目名称:springBatchBootJavaConfigkata,代码行数:7,代码来源:StepLoggingListener.java
示例7: afterStep
import org.springframework.batch.core.annotation.AfterStep; //导入依赖的package包/类
@Override
@AfterStep
public ExitStatus afterStep(StepExecution stepExecution) {
return null;
}
开发者ID:cegeka,项目名称:batchers,代码行数:6,代码来源:SlaveJobProgressListener.java
注:本文中的org.springframework.batch.core.annotation.AfterStep类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论