BrightSide Workbench Full Report + Source Code
org.turro.scheduler.task.TaskSet Class Reference
Inheritance diagram for org.turro.scheduler.task.TaskSet:
Collaboration diagram for org.turro.scheduler.task.TaskSet:

Static Public Member Functions

static Set< AbstractTaskload (IConstructor constructor)
 
static void save (Set< AbstractTask > tasks)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 35 of file TaskSet.java.

Member Function Documentation

◆ load()

static Set<AbstractTask> org.turro.scheduler.task.TaskSet.load ( IConstructor  constructor)
static

Definition at line 41 of file TaskSet.java.

41  {
42  try {
43  tasks.clear();
44  TaskSettingsSet set = TaskSettingsSet.load();
45  for(TaskSettings settings : set) {
46  AbstractTask task = settings.build(constructor);
47  if(task != null) {
48  tasks.add(task);
49  }
50  }
51  return tasks;
52  } catch (IOException ex) {
53  WebLoggers.severe(TaskSet.class).exception(ex).log();
54  }
55  return Collections.EMPTY_SET;
56  }
Here is the call graph for this function:

◆ save()

static void org.turro.scheduler.task.TaskSet.save ( Set< AbstractTask tasks)
static

Definition at line 58 of file TaskSet.java.

58  {
59  try {
60  TaskSettingsSet settings = tasks.stream()
61  .filter(t -> !t.isSystem())
62  .map(t -> t.getSettings())
63  .collect(Collectors.toCollection(TaskSettingsSet::new));
64  settings.save();
65  } catch (IOException ex) {
66  WebLoggers.severe(TaskSet.class).exception(ex).log();
67  }
68  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: