public Set<String> getOrCreateAllTriggersGroupsSet() { String allTriggersGrpsName = generateName(ALL_TRIGGERS_GROUP_NAMES_SET_PREFIX); ToolkitSet<String> temp = toolkit.getSet(allTriggersGrpsName, String.class); allTriggersGroupsReference.compareAndSet(null, temp); return allTriggersGroupsReference.get(); }
public Set<JobKey> getOrCreateBlockedJobsSet() { String blockedJobsSetName = generateName(BLOCKED_JOBS_SET_PREFIX); ToolkitSet<JobKey> temp = toolkit.getSet(blockedJobsSetName, JobKey.class); blockedJobsReference.compareAndSet(null, temp); return blockedJobsReference.get(); }
public Set<String> getOrCreatePausedTriggerGroupsSet() { String pausedGrpsSetName = generateName(PAUSED_TRIGGER_GROUPS_SET_PREFIX); ToolkitSet<String> temp = toolkit.getSet(pausedGrpsSetName, String.class); pausedTriggerGroupsReference.compareAndSet(null, temp); return pausedTriggerGroupsReference.get(); }
public Set<String> getOrCreateAllGroupsSet() { String allGrpSetNames = generateName(ALL_JOBS_GROUP_NAMES_SET_PREFIX); ToolkitSet<String> temp = toolkit.getSet(allGrpSetNames, String.class); allGroupsReference.compareAndSet(null, temp); return allGroupsReference.get(); }
public Set<String> getOrCreateTriggersGroupMap(String name) { ToolkitSet<String> set = triggersGroupSet.get(name); if (set != null && !set.isDestroyed()) { return set; } else { String nameForMap = generateName(TRIGGERS_GROUP_MAP_PREFIX + name); set = toolkit.getSet(nameForMap, String.class); triggersGroupSet.put(name, set); return set; } }