Spring 批量访问内表数据
Spring batch access data from internal tables
Spring 批处理核心框架正在使用以下 tables(在屏幕截图上)。是否有可能以某种方式从那些 table 中获取数据,例如使用 API 公开此数据。或者以某种方式以编程方式引用此数据。或者那些 table 是 Spring Batch 的内部结构,不应该直接使用?
这些 table 不打算由用户修改,除非在一种情况下作业已被终止并应该重新启动(在这种情况下,作业执行状态应该在table,您可以在 documentation).
中找到更多详细信息
Is it possible somehow to get data from those tables, for example to expose this data with an API. Or somehow reference this data programmatically
JobExplorer
API 正是您所需要的。它是 JobRepository
的 read-only 版本,允许您以编程方式访问那些 table。
Spring 批处理核心框架正在使用以下 tables(在屏幕截图上)。是否有可能以某种方式从那些 table 中获取数据,例如使用 API 公开此数据。或者以某种方式以编程方式引用此数据。或者那些 table 是 Spring Batch 的内部结构,不应该直接使用?
这些 table 不打算由用户修改,除非在一种情况下作业已被终止并应该重新启动(在这种情况下,作业执行状态应该在table,您可以在 documentation).
中找到更多详细信息Is it possible somehow to get data from those tables, for example to expose this data with an API. Or somehow reference this data programmatically
JobExplorer
API 正是您所需要的。它是 JobRepository
的 read-only 版本,允许您以编程方式访问那些 table。