Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Quartz api ???

 
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP page that you can pause / unpause a job.
I want to list in a column of my table the status of the job either running , or paused.

But No function in the job or trigger class gives me the status.
(i.e their is no getStatus() method anywhere except for the scheduler)

I am using api 1.5 of quartz.

I know I can pass a key/value pair in the JobDataMap but I was wondering if their is a simple function that I could call instead?
I find it kind of weird that quartz doesn't provide such a function when they have static varablies like STATE_PAUSED STATE_COMPLETE , etc etc.

I am currently looking at TriggerStatus but I don't know how this ties into
the job or trigger class how do you set the TriggerStatus for a trigger?

Thanks for any help.
If worst comes to worst I can always use the JobDataMap class to keep track of this.
 
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!