|
static final String | SCHEDULER_FILE = "/WEB-INF/elephant/conf/scheduled-entities.xml" |
|
◆ addEntity()
static void org.turro.scheduler.entities.ScheduledEntitySet.addEntity |
( |
ScheduledEntity |
scheduledEntity | ) |
|
|
static |
Definition at line 92 of file ScheduledEntitySet.java.
93 ScheduledEntitySet ses =
new ScheduledEntitySet();
94 ScheduledEntitySet.loadSet(ses);
95 ses.doAddEntity(scheduledEntity);
96 ScheduledEntitySet.saveSet(ses);
◆ getScheduledEntity()
static ScheduledEntity org.turro.scheduler.entities.ScheduledEntitySet.getScheduledEntity |
( |
String |
path | ) |
|
|
static |
Definition at line 106 of file ScheduledEntitySet.java.
107 ScheduledEntitySet ses =
new ScheduledEntitySet();
108 ScheduledEntitySet.loadSet(ses);
109 for(ScheduledEntity se : ses) {
110 if(se.getEntityPath().equals(path)) {
114 return new DefaultEntity(path);
◆ loadSet()
static void org.turro.scheduler.entities.ScheduledEntitySet.loadSet |
( |
Set |
set | ) |
|
|
static |
Definition at line 62 of file ScheduledEntitySet.java.
63 SAXBuilder builder =
new SAXBuilder();
66 File confFile =
new File(ElephantContext.getRealPath(
SCHEDULER_FILE));
67 if(confFile.exists()) {
68 doc = builder.build(confFile);
69 readXML(doc.getRootElement(),
set);
71 }
catch (IOException ex) {
72 Logger.getLogger(ScheduledEntitySet.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
73 }
catch (JDOMException ex) {
74 Logger.getLogger(ScheduledEntitySet.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
static final String SCHEDULER_FILE
◆ removeEntity()
static void org.turro.scheduler.entities.ScheduledEntitySet.removeEntity |
( |
ScheduledEntity |
scheduledEntity | ) |
|
|
static |
Definition at line 99 of file ScheduledEntitySet.java.
100 ScheduledEntitySet ses =
new ScheduledEntitySet();
101 ScheduledEntitySet.loadSet(ses);
102 ses.remove(scheduledEntity);
103 ScheduledEntitySet.saveSet(ses);
◆ saveSet()
static void org.turro.scheduler.entities.ScheduledEntitySet.saveSet |
( |
Set |
set | ) |
|
|
static |
Definition at line 46 of file ScheduledEntitySet.java.
47 Document doc =
new Document(
new Element(
"elephant-entities"));
48 saveXML(doc.getRootElement(),
set);
50 OutputStreamWriter fw = FileUtil.getFileWriter(
52 Format fm = Format.getPrettyFormat();
53 fm.setEncoding(ElephantContext.getEncoding());
54 XMLOutputter xo =
new XMLOutputter(fm);
57 }
catch (IOException ex) {
58 Logger.getLogger(ScheduledEntitySet.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ SCHEDULER_FILE
final String org.turro.scheduler.entities.ScheduledEntitySet.SCHEDULER_FILE = "/WEB-INF/elephant/conf/scheduled-entities.xml" |
|
static |
The documentation for this class was generated from the following file: