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

Public Member Functions

 ScheduledSet ()
 

Static Public Member Functions

static void saveSet (IConstructor constructor, Set set)
 
static void loadSet (IConstructor constructor, Set set)
 

Static Public Attributes

static final String SCHEDULER_FILE = "/WEB-INF/elephant/conf/scheduler.xml"
 

Detailed Description

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

Definition at line 45 of file ScheduledSet.java.

Constructor & Destructor Documentation

◆ ScheduledSet()

org.turro.scheduler.motor.ScheduledSet.ScheduledSet ( )

Definition at line 50 of file ScheduledSet.java.

50  {
51  super(new ScheduledTaskComparator());
52  }

Member Function Documentation

◆ loadSet()

static void org.turro.scheduler.motor.ScheduledSet.loadSet ( IConstructor  constructor,
Set  set 
)
static

Definition at line 70 of file ScheduledSet.java.

70  {
71  SAXBuilder builder = new SAXBuilder();
72  Document doc;
73  try {
74  File confFile = new File(ElephantContext.getRealPath(SCHEDULER_FILE));
75  if(confFile.exists()) {
76  doc = builder.build(confFile);
77  readXML(constructor, doc.getRootElement(), set);
78  }
79  } catch (IOException ex) {
80  Logger.getLogger(ScheduledSet.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
81  } catch (JDOMException ex) {
82  Logger.getLogger(ScheduledSet.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
83  }
84  }
Here is the call graph for this function:

◆ saveSet()

static void org.turro.scheduler.motor.ScheduledSet.saveSet ( IConstructor  constructor,
Set  set 
)
static

Definition at line 54 of file ScheduledSet.java.

54  {
55  Document doc = new Document(new Element("elephant-scheduler"));
56  saveXML(doc.getRootElement(), set);
57  try {
58  OutputStreamWriter fw = FileUtil.getFileWriter(
59  ElephantContext.getRealPath(SCHEDULER_FILE));
60  Format fm = Format.getPrettyFormat();
61  fm.setEncoding(ElephantContext.getEncoding());
62  XMLOutputter xo = new XMLOutputter(fm);
63  xo.output(doc, fw);
64  fw.close();
65  } catch (IOException ex) {
66  Logger.getLogger(ScheduledSet.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
67  }
68  }
Here is the call graph for this function:

Member Data Documentation

◆ SCHEDULER_FILE

final String org.turro.scheduler.motor.ScheduledSet.SCHEDULER_FILE = "/WEB-INF/elephant/conf/scheduler.xml"
static

Definition at line 48 of file ScheduledSet.java.


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