带注释的 Spring 3 调度 - 看看队列?

发布于 2024-12-07 17:02:50 字数 194 浏览 4 评论 0原文

大家好,Java 狂热者们,

我们最近在 Spring 3 中从 xdoclet 生成的 XML 文件(quartz)更改为注释驱动的调度。

现在我想看看所有排队的任务和正在运行的任务。但我找不到办法做到这一点。 我想我需要联系执行人?

我希望这不是一个太愚蠢的问题。

提前致谢!

问候, 大卫

Hello fellow Java fanatics,

We've recently changed from xdoclet generated XML files (quartz) to annotation driven scheduling in spring 3.

Now i'd like to have a look at all the queued tasks and running tasks. But i can not find a way of doing this.
I presume that i would need to get hold of the executor?

I hope this isn't too much of dumb question.

Thanks in advance!

Greetings,
David

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

稍尽春風 2024-12-14 17:02:50

当使用 spring 的 quarts 支持时,您有一个 SchedulerFactoryBean 类型的 bean,它实例化一个 Scheduler。所以你可以简单地使用@Inject Scheduler调度器

When using spring's quarts support, you have a bean of type SchedulerFactoryBean, which instantiates a Scheduller. So you can simply use @Inject Scheduller scheduller

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文