代码拉取完成,页面将自动刷新
package gobatch
//JobListener job listener
type JobListener interface {
//BeforeJob execute before job start
BeforeJob(execution *JobExecution) BatchError
//AfterJob execute after job end either normally or abnormally
AfterJob(execution *JobExecution) BatchError
}
//StepListener job listener
type StepListener interface {
//BeforeStep execute before step start
BeforeStep(execution *StepExecution) BatchError
//AfterStep execute after step end either normally or abnormally
AfterStep(execution *StepExecution) BatchError
}
//ChunkListener job listener
type ChunkListener interface {
//BeforeChunk execute before start of a chunk in a chunkStep
BeforeChunk(context *ChunkContext) BatchError
//AfterChunk execute after end of a chunk in a chunkStep
AfterChunk(context *ChunkContext) BatchError
//OnError execute when an error occurred during a chunk in a chunkStep
OnError(context *ChunkContext, err BatchError)
}
//PartitionListener job listener
type PartitionListener interface {
//BeforePartition execute before enter into Partitioner.Partition() in a partitionStep
BeforePartition(execution *StepExecution) BatchError
//AfterPartition execute after return from Partitioner.Partition() in a partitionStep
AfterPartition(execution *StepExecution, subExecutions []*StepExecution) BatchError
//OnError execute when an error return from Partitioner.Partition() in a partitionStep
OnError(execution *StepExecution, err BatchError)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。