本文整理汇总了Java中org.quartz.impl.matchers.GroupMatcher.groupEquals方法的典型用法代码示例。如果您正苦于以下问题:Java GroupMatcher.groupEquals方法的具体用法?Java GroupMatcher.groupEquals怎么用?Java GroupMatcher.groupEquals使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.quartz.impl.matchers.GroupMatcher
的用法示例。
在下文中一共展示了GroupMatcher.groupEquals方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: pauseTriggers
import org.quartz.impl.matchers.GroupMatcher; //导入方法依赖的package包/类
/**
* <p>
* Pause all of the <code>{@link Trigger}s</code> in the matching groups.
* </p>
*
*/
public void pauseTriggers(GroupMatcher<TriggerKey> matcher)
throws SchedulerException {
validateState();
if(matcher == null) {
matcher = GroupMatcher.groupEquals(Scheduler.DEFAULT_GROUP);
}
Collection<String> pausedGroups = resources.getJobStore().pauseTriggers(matcher);
notifySchedulerThread(0L);
for (String pausedGroup : pausedGroups) {
notifySchedulerListenersPausedTriggers(pausedGroup);
}
}
示例2: pauseJobs
import org.quartz.impl.matchers.GroupMatcher; //导入方法依赖的package包/类
/**
* <p>
* Pause all of the <code>{@link org.quartz.JobDetail}s</code> in the
* matching groups - by pausing all of their <code>Trigger</code>s.
* </p>
*
*/
public void pauseJobs(GroupMatcher<JobKey> groupMatcher)
throws SchedulerException {
validateState();
if(groupMatcher == null) {
groupMatcher = GroupMatcher.groupEquals(Scheduler.DEFAULT_GROUP);
}
Collection<String> pausedGroups = resources.getJobStore().pauseJobs(groupMatcher);
notifySchedulerThread(0L);
for (String pausedGroup : pausedGroups) {
notifySchedulerListenersPausedJobs(pausedGroup);
}
}
示例3: resumeTriggers
import org.quartz.impl.matchers.GroupMatcher; //导入方法依赖的package包/类
/**
* <p>
* Resume (un-pause) all of the <code>{@link Trigger}s</code> in the
* matching groups.
* </p>
*
* <p>
* If any <code>Trigger</code> missed one or more fire-times, then the
* <code>Trigger</code>'s misfire instruction will be applied.
* </p>
*
*/
public void resumeTriggers(GroupMatcher<TriggerKey> matcher)
throws SchedulerException {
validateState();
if(matcher == null) {
matcher = GroupMatcher.groupEquals(Scheduler.DEFAULT_GROUP);
}
Collection<String> pausedGroups = resources.getJobStore().resumeTriggers(matcher);
notifySchedulerThread(0L);
for (String pausedGroup : pausedGroups) {
notifySchedulerListenersResumedTriggers(pausedGroup);
}
}
示例4: resumeJobs
import org.quartz.impl.matchers.GroupMatcher; //导入方法依赖的package包/类
/**
* <p>
* Resume (un-pause) all of the <code>{@link org.quartz.JobDetail}s</code>
* in the matching groups.
* </p>
*
* <p>
* If any of the <code>Job</code> s had <code>Trigger</code> s that
* missed one or more fire-times, then the <code>Trigger</code>'s
* misfire instruction will be applied.
* </p>
*
*/
public void resumeJobs(GroupMatcher<JobKey> matcher)
throws SchedulerException {
validateState();
if(matcher == null) {
matcher = GroupMatcher.groupEquals(Scheduler.DEFAULT_GROUP);
}
Collection<String> resumedGroups = resources.getJobStore().resumeJobs(matcher);
notifySchedulerThread(0L);
for (String pausedGroup : resumedGroups) {
notifySchedulerListenersResumedJobs(pausedGroup);
}
}
示例5: getJobKeys
import org.quartz.impl.matchers.GroupMatcher; //导入方法依赖的package包/类
/**
* <p>
* Get the names of all the <code>{@link org.quartz.Job}s</code> in the
* matching groups.
* </p>
*/
public Set<JobKey> getJobKeys(GroupMatcher<JobKey> matcher)
throws SchedulerException {
validateState();
if(matcher == null) {
matcher = GroupMatcher.groupEquals(Scheduler.DEFAULT_GROUP);
}
return resources.getJobStore().getJobKeys(matcher);
}
示例6: getTriggerKeys
import org.quartz.impl.matchers.GroupMatcher; //导入方法依赖的package包/类
/**
* <p>
* Get the names of all the <code>{@link org.quartz.Trigger}s</code> in
* the matching groups.
* </p>
*/
public Set<TriggerKey> getTriggerKeys(GroupMatcher<TriggerKey> matcher)
throws SchedulerException {
validateState();
if(matcher == null) {
matcher = GroupMatcher.groupEquals(Scheduler.DEFAULT_GROUP);
}
return resources.getJobStore().getTriggerKeys(matcher);
}