/** * @see com.helger.quartz.spi.IJobStore#getPausedTriggerGroups() */ public ICommonsSet <String> getPausedTriggerGroups () throws JobPersistenceException { final ICommonsSet <String> set = new CommonsHashSet <> (); set.addAll (m_aPausedTriggerGroups); return set; }
public ICommonsList <IMatcher <JobKey>> getJobListenerMatchers (final String listenerName) { synchronized (m_aGlobalJobListeners) { final List <IMatcher <JobKey>> matchers = m_aGlobalJobListenersMatchers.get (listenerName); if (matchers == null) return null; return new CommonsArrayList <> (matchers); } }
public ICommonsList <IJobExecutionContext> getExecutingJobs () { synchronized (executingJobs) { return new CommonsArrayList <> (executingJobs.values ()); } }
/** * <p> * Get the names of all of the <code>{@link com.helger.quartz.IJob}</code> * groups. * </p> */ public ICommonsList <String> getJobGroupNames () { synchronized (m_aLock) { return new CommonsArrayList <> (m_aJobsByGroup.keySet ()); } }
/** * <p> * Add the given <code>{@link com.helger.quartz.spi.ISchedulerPlugin}</code> * for the <code>{@link QuartzScheduler}</code> to use. This method expects * the plugin's "initialize" method to be invoked externally (either before or * after this method is called). * </p> */ public void addSchedulerPlugin (final ISchedulerPlugin plugin) { m_aSchedulerPlugins.add (plugin); }
@Override public final int getChildCount () { return m_aChildren == null ? 0 : m_aChildren.size (); }
public ITriggerListener getTriggerListener (final String name) { synchronized (m_aGlobalTriggerListeners) { return m_aGlobalTriggerListeners.get (name); } }
/** * @return <code>true</code> if this block is empty and does not contain any * statement. */ public boolean isEmpty () { return m_aObjs.isEmpty (); }
/** * @return <code>true</code> if any async listener is present, * <code>false</code> otherwise. */ public boolean hasAsyncListeners () { return m_aAsyncListeners.isNotEmpty (); }
public int getNumJobsCurrentlyExecuting () { synchronized (executingJobs) { return executingJobs.size (); } }
public ICommonsList <IJobListener> getJobListeners () { synchronized (m_aGlobalJobListeners) { return m_aGlobalJobListeners.copyOfValues (); } }
public boolean removeSchedulerListener (final ISchedulerListener schedulerListener) { synchronized (m_aSchedulerListeners) { return m_aSchedulerListeners.remove (schedulerListener); } }
/** * @return <code>true</code> if at least one cookie is present. * @since 6.0.5 */ public final boolean hasCookies () { return m_aCookies != null && m_aCookies.isNotEmpty (); }
/** * End the current namespace level. */ public void pop () { // remove at front m_aStack.removeFirst (); }
public ICommonsList <IMatcher <TriggerKey>> getTriggerListenerMatchers (final String listenerName) { synchronized (m_aGlobalTriggerListeners) { final List <IMatcher <TriggerKey>> matchers = m_aGlobalTriggerListenersMatchers.get (listenerName); if (matchers == null) return null; return new CommonsArrayList <> (matchers); } }
/** * <p> * Get the names of all of the <code>{@link com.helger.quartz.ITrigger}</code> * groups. * </p> */ public ICommonsList <String> getTriggerGroupNames () { synchronized (m_aLock) { return new CommonsArrayList <> (m_aTriggersByGroup.keySet ()); } }
/** * @return <code>true</code> if at least 1 arg is present, <code>false</code> * otherwise. */ public boolean hasArgs () { return m_aArgs.isNotEmpty (); }
@Override public final boolean hasChildren () { return m_aChildren != null && m_aChildren.isNotEmpty (); }