コード例 #1
0
  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();
  }
コード例 #2
0
  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();
  }
コード例 #3
0
  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();
  }
コード例 #4
0
  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();
  }
コード例 #5
0
  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;
    }
  }