/** * <p> * Returns the name of the <code>Scheduler</code>. * </p> */ public String getSchedulerName() throws SchedulerException { return (String)getAttribute("SchedulerName"); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void shutdown() throws SchedulerException { // Have to get the scheduler name before we actually call shutdown. String schedulerName = getSchedulerName(); invoke("shutdown", new Object[] {}, new String[] {}); SchedulerRepository.getInstance().remove(schedulerName); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>, * passing the <code>SchedulingContext</code> associated with this * instance. * </p> */ public void triggerJob(JobKey jobKey) throws SchedulerException { triggerJob(jobKey, null); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void standby() throws SchedulerException { invoke("standby", new Object[] {}, new String[] {}); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void shutdown(boolean waitForJobsToComplete) throws SchedulerException { // Have to get the scheduler name before we actually call shutdown. String schedulerName = getSchedulerName(); invoke( "shutdown", new Object[] { toBoolean(waitForJobsToComplete) }, new String[] { boolean.class.getName() }); SchedulerRepository.getInstance().remove(schedulerName); }
public SchedulerMetaData getMetaData() throws SchedulerException { AttributeList attributeList = getAttributes( new String[] { "schedulerName", "schedulerInstanceId", "inStandbyMode", "shutdown", "jobStoreClass", "threadPoolClass", "threadPoolSize", "version" }); return new SchedulerMetaData( (String)attributeList.get(0), (String)attributeList.get(1), getClass(), true, isStarted(), ((Boolean)attributeList.get(2)).booleanValue(), ((Boolean)attributeList.get(3)).booleanValue(), (Date)invoke("runningSince", new Object[] {}, new String[] {}), ((Integer)invoke("numJobsExecuted", new Object[] {}, new String[] {})).intValue(), (Class)attributeList.get(4), ((Boolean)invoke("supportsPersistence", new Object[] {}, new String[] {})).booleanValue(), (Class)attributeList.get(5), ((Integer)attributeList.get(6)).intValue(), (String)attributeList.get(7)); }
jmxScheduler.setSchedulingContext(schedCtxt); jmxScheduler.setSchedulerObjectName(jmxObjectName); jmxScheduler.initialize();
public SchedulerMetaData getMetaData() throws SchedulerException { AttributeList attributeList = getAttributes( new String[] { "SchedulerName", (String)getAttribute(attributeList, 0).getValue(), (String)getAttribute(attributeList, 1).getValue(), getClass(), true, false, (Boolean)getAttribute(attributeList, 2).getValue(), (Boolean)getAttribute(attributeList, 3).getValue(), null, Integer.parseInt(((Map)getAttribute(attributeList, 8).getValue()).get("JobsExecuted").toString()), Class.forName((String)getAttribute(attributeList, 4).getValue()), false, false, Class.forName((String)getAttribute(attributeList, 5).getValue()), (Integer)getAttribute(attributeList, 6).getValue(), (String)getAttribute(attributeList, 7).getValue()); } catch (ClassNotFoundException e) { throw new SchedulerException(e);
jmxScheduler.setSchedulerObjectName(jmxObjectName); jmxScheduler.initialize();
/** * @see org.quartz.Scheduler#isInStandbyMode() * @deprecated */ public boolean isPaused() throws SchedulerException { return isInStandbyMode(); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void start() throws SchedulerException { invoke("start", new Object[] {}, new String[] {}); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void shutdown(boolean waitForJobsToComplete) throws SchedulerException { // Have to get the scheduler name before we actually call shutdown. String schedulerName = getSchedulerName(); invoke( "shutdown", new Object[] { toBoolean(waitForJobsToComplete) }, new String[] { boolean.class.getName() }); SchedulerRepository.getInstance().remove(schedulerName); }
public SchedulerMetaData getMetaData() throws SchedulerException { AttributeList attributeList = getAttributes( new String[] { "schedulerName", "schedulerInstanceId", "inStandbyMode", "shutdown", "jobStoreClass", "threadPoolClass", "threadPoolSize", "version" }); return new SchedulerMetaData( (String)attributeList.get(0), (String)attributeList.get(1), getClass(), true, isStarted(), ((Boolean)attributeList.get(2)).booleanValue(), ((Boolean)attributeList.get(3)).booleanValue(), (Date)invoke("runningSince", new Object[] {}, new String[] {}), ((Integer)invoke("numJobsExecuted", new Object[] {}, new String[] {})).intValue(), (Class)attributeList.get(4), ((Boolean)invoke("supportsPersistence", new Object[] {}, new String[] {})).booleanValue(), (Class)attributeList.get(5), ((Integer)attributeList.get(6)).intValue(), (String)attributeList.get(7)); }
jmxScheduler.setSchedulingContext(schedCtxt); jmxScheduler.setSchedulerObjectName(jmxObjectName); jmxScheduler.initialize();
public SchedulerMetaData getMetaData() throws SchedulerException { AttributeList attributeList = getAttributes( new String[] { "SchedulerName", (String)getAttribute(attributeList, 0).getValue(), (String)getAttribute(attributeList, 1).getValue(), getClass(), true, false, (Boolean)getAttribute(attributeList, 2).getValue(), (Boolean)getAttribute(attributeList, 3).getValue(), null, Integer.parseInt(((Map)getAttribute(attributeList, 8).getValue()).get("JobsExecuted").toString()), Class.forName((String)getAttribute(attributeList, 4).getValue()), false, false, Class.forName((String)getAttribute(attributeList, 5).getValue()), (Integer)getAttribute(attributeList, 6).getValue(), (String)getAttribute(attributeList, 7).getValue()); } catch (ClassNotFoundException e) { throw new SchedulerException(e);
jmxScheduler.setSchedulerObjectName(jmxObjectName); jmxScheduler.initialize();
/** * @see org.quartz.Scheduler#isInStandbyMode() * @deprecated */ public boolean isPaused() throws SchedulerException { return isInStandbyMode(); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void start() throws SchedulerException { invoke("start", new Object[] {}, new String[] {}); }
/** * <p> * Returns the instance Id of the <code>Scheduler</code>. * </p> */ public String getSchedulerInstanceId() throws SchedulerException { return (String)getAttribute("SchedulerInstanceId"); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */ public void shutdown() throws SchedulerException { // Have to get the scheduler name before we actually call shutdown. String schedulerName = getSchedulerName(); invoke("shutdown", new Object[] {}, new String[] {}); SchedulerRepository.getInstance().remove(schedulerName); }