Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

isStateful() returns the right value based on the job #6

wants to merge 1 commit into from

1 participant


This way it's possible to create stateful jobs where the job executions can't overlap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Mar 23, 2012
zszugyi zszugyi Overrides the behavior of isStateful() so that it returns the right v…
…alue based on the job.
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 lib/trinidad_scheduler_extension/job_detail.rb
4 lib/trinidad_scheduler_extension/job_detail.rb
@@ -10,6 +10,10 @@ def initialize(name, group, job_class)
10 10 @job =
11 11 end
12 12
  13 + def isStateful()
  14 + @job.is_a?(org.quartz.StatefulJob)
  15 + end
  16 +
13 17 def validate()
14 18 raise"Job's name cannot be null",
15 19 org.quartz.SchedulerException.ERR_CLIENT_ERROR) if get_name == nil

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.