2008-04-14 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/DEM.java: Check upper boundary with '<' and remove '+1' term. This was based on the false assumption that the values in the DEM file names were km based and not 1/10 km. * scheduler/src/main/java/de/intevation/webflys/model/DEMFactory.java: Add 1 before scale to km. 2008-04-13 Sascha L. Teichmann : * ChangeLog.txt: Bring tag entry into usual from. * HowToRelease.txt: Improved sed call to generate ChangeLog.txt tag entry a bit. * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Removed needless generation of Date object in WFS-T insert processing loop. 2008-04-13 Stephan Holl : * HowToRelease.txt: Added mvn clean-command so that src-Tarball does not contain build files 2008-04-13 Stephan Holl : * HowToRelease.txt: missing path to /libs added 2008-04-13 Stephan Holl : * ChangeLog.txt: Tagged as '2008-04-13' 2008-04-13 Stephan Holl : * HowToRelease.txt: Usage-part added 2008-04-13 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/handlers/RiversHandler.java: Uses the DEM factory now. * scheduler/src/main/java/de/intevation/webflys/model/DEM.java: Added property file which stores the filename of the DEM. * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: Refactorized to use the DEM factory to find the needed DEM. * scheduler/src/main/java/de/intevation/webflys/model/Parameter.java: Simplified. Removed DEM lookup code. TODO: Factorize init() method out of Parameter. * scheduler/src/main/java/de/intevation/webflys/model/DEMFactory.java: New. Central construction unit of DEMs. 2008-04-12 Sascha L. Teichmann : * HowToRelease.txt: Added missing parts (ChangeLog entry, push hg tag, added needed libraries and start script to release tar ball), fixed wrongly build source tar ball. Now its a shell script, too. Executable with: $ ./HowToRelease.txt Handle with care! 2008-04-11 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/Parameter.java: Value of 'gel' used by WSPLGEN is always 'Sperre'. * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Variable 'gel' is used to distinguish between global- and user-specific-filters. 2008-04-11 Stephan Holl : * HowToRelease.txt: New. added some notes for releasing. 2008-04-11 Stephan Holl : * TODO.txt: updated tasks * contrib/scheduler.sh: backported new parameters for configuration * doc/schema.sql: adopted schema with new constraint 2008-04-10 Ingo Weinzierl : * doc/scheduler-properties.xhtml: Added wfs parameter to the documentation. 2008-04-10 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/WFST.java, scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java, contrib/scheduler.sh: WFS FeatureType-parameters added. 2008-04-10 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java, scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Added global and user specific filters for writing 'rohre-und-sprerren.shp'. 2008-04-10 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: Simplified generation of output file name. Its now named 'ergebnis.shp' each time. Make constants out of filenames for output, wst, rgd and parameter file. * scheduler/src/main/java/de/intevation/webflys/model/Parameter.java: Remove code which generates output filename from river name and DEM boundaries. 2008-04-08 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Removed needless imports. * scheduler/src/main/java/de/intevation/webflys/scheduler/Log.java: Fixed evaluation of property 'webflys.scheduler.log.level'. Log level was set to INFO every time. 2008-04-08 Stephan Holl : * TODO.txt: updated tasks 2008-04-08 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/util/SimpleProxy.java, scheduler/src/main/java/de/intevation/webflys/webserver/SimpleWebServer.java: Log port usage. 2008-04-07 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: Take the outcommented part in again. * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Cleaned up error handling. * ChangeLog.txt: removed format issues. 2008-04-07 Stephan Holl : * TODO.txt: updated tasks * contrib/scheduler.sh: WFS-Serverconfiguration-parameters added * doc/INSTALL.txt: added hint to doc/scheduler-properties.xhtml to find full documentation of parameters 2008-04-06 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Fixed typo. 2008-04-06 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/Log.java: Added property 'webflys.scheduler.log.level' to configure the log level. * doc/scheduler-properties.xhtml: Adjusted documentation. 2008-04-06 Sascha L. Teichmann : * doc/scheduler-properties.xhtml: Added documentation for the 'webflys.scheduler.properties.file' and 'webflys.scheduler.log.dir' properties. 2008-04-06 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/handlers/ShutdownHandler.java: Renamed property 'password' to 'webflys.scheduler.shutdown.password'. * doc/scheduler-properties.xhtml: Adjusted documentation. 2008-04-06 Sascha L. Teichmann : * doc/scheduler-properties.xhtml: Splitted property 'webflys.geoserver' into 'webflys.scheduler.wfs.server', 'webflys.scheduler.wfs.port' and 'webflys.scheduler.wfs.capabilities' * contrib/run.sh: Use new wfs server access schema now. * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Use internal proxy if 'webflys.internal.proxy.port' is given. * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Setup internal proxy according to 'webflys.scheduler.wfs.server' and 'webflys.scheduler.wfs.port'. The use of the system 'http.proxyHost' and 'http.proxyPort' is still needed. 2008-04-06 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Fixed typo. A value was uninitialized which prevented compiling. * scheduler/src/main/java/de/intevation/webflys/model/GaugeFactory.java: Uses a constant for default encoding of the parsed files. * doc/scheduler-properties.xhtml: New. Table of the properties used by the scheduler. 2008-04-04 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Setup New 'internal' proxy. TODO: make remote host/port configurable depending on WFST settings. This workaround a bug in GeoTools which sends date/timestamps in wrong format to GeoServer. * scheduler/src/main/java/de/intevation/webflys/util/DateConverter.java, scheduler/src/main/java/de/intevation/webflys/util/DateOutputFilterFactory.java, scheduler/src/main/java/de/intevation/webflys/util/SimpleProxy.java, scheduler/src/main/java/de/intevation/webflys/util/TagFilterOutputStream.java: New. New 'internal' proxy to filter WFST output of Geotools for and date containing tags and replace wrong date format with valid ISO format. XXX: This is programming from hell! The right way would be fixing GeoTools to send the right date format. 2008-04-02 Stephan Holl : * TODO.txt: updated TODO.txt with tasks, changed some tasks to [DONE] 2008-03-29 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Added mapping to fill features of WFS-T upload. Still problems with dates or timestamps. 2008-03-29 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Fixed typo. 2008-03-29 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/Log.java: New. Uses the Java logging API to bring logging to the scheduler. To enable it set the system property 'webflys.scheduler.log.dir' to the path of a directory in which rotating log files of pattern 'scheduler-%g.log' will be created. The log rotates if the file size exceeds 5MB. Ten files will be hold. * scheduler/src/main/java/de/intevation/webflys/model/Backend.java,, scheduler/src/main/java/de/intevation/webflys/model/GaugeFactory.java, scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java, scheduler/src/main/java/de/intevation/webflys/model/Parameter.java, scheduler/src/main/java/de/intevation/webflys/model/WFST.java, scheduler/src/main/java/de/intevation/webflys/scheduler/Scheduler.java, scheduler/src/main/java/de/intevation/webflys/util/ReaderWriterCopyThread.java, scheduler/src/main/java/de/intevation/webflys/webserver/SimpleWebServer.java: Use the logging now. 2008-03-28 Stephan Holl : * TODO.txt: updatede TODO.txt with tasks 2008-03-27 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/Backend.java, scheduler/src/main/java/de/intevation/webflys/model/Job.java, scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java, scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Completed shapeToWFS method to write data to a wfs. 2008-03-16 Sascha L. Teichmann : * src/main/java/de/intevation/webflys/model/Gauge.java: Added properties minQ, maxQ, minW and maxW. * src/main/java/de/intevation/webflys/model/GaugeFactory.java: Extract minW/Q from drainage table ('Abflusstafel'). * src/main/resources/templates/rivers-xml.vm: Display new properties. 2008-03-16 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/Gauge.java: Added property 'km'. * scheduler/src/main/java/de/intevation/webflys/model/GaugeFactory.java: Parses the basic data file ('Stammdaten') of a gauge and extracts Aeo (Einflussgebiet), zero ('Pegelnullpunkt') and km ('Stationierung'). * scheduler/src/main/resources/templates/rivers-xml.vm: Adjusted to print these properties. 2008-03-16 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/Gauge.java: New. POJO to store relevant data of a gauge ('Pegel'). * scheduler/src/main/java/de/intevation/webflys/model/GaugeFactory.java: New. Builds a list of gauges out of 'pegel.glt' files from file server. * scheduler/src/main/java/de/intevation/webflys/model/River.java: Now stores the list of gauges. * scheduler/src/main/java/de/intevation/webflys/handlers/RiversHandler.java: Modified to fetch the list of gauges from file server too. * scheduler/src/main/resources/templates/rivers-xml.vm: Iterate over gauges of river too. * scheduler/src/main/java/de/intevation/webflys/util/FileUtil.java: Added a method to look up a file in a given directory case insensitive. 2008-03-11 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Changed attribute name for creating the shape file. 2008-03-11 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/Parameter.java: Modified the toFile method. Now, the lin parameter is only written if used. 2008-03-11 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Added a new parameter 'LAGE' to the shape file. 2008-03-09 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/**/*.java: Mentioned LGPLv3 as license. Removed trailing whitespace. * licenses/lgpl-3.0.txt: New. LGPLv3. 2008-03-08 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: Use NullOutputStream to copy stdout of wsplgen. Set system property 'wsplgen.copy.through' to 'true' if you want to copy stdout of WSPLGEN to stdout of the scheduler. * scheduler/src/main/java/de/intevation/webflys/util/NullOutputStream.java: New. /dev/null as an output stream. 2008-03-08 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: Fixed regular expression. * scheduler/src/main/java/de/intevation/webflys/model/JobResult.java: Added method to return result message as CDATA section. * scheduler/src/main/java/de/intevation/webflys/util/StringUtil.java: Added method to encode string as CDATA section. * scheduler/src/main/resources/templates/info-xml.vm: use CDATA property of JobResult. 2008-03-08 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: stderr of wsplgen is now collected in a string and parse with a regular expression for errors and warnings. Technique borrowed from desktop FLYS. * scheduler/src/main/resources/templates/info-xml.vm: Removed StreamCopyThread.java: Make clear its a byte stream copier. * scheduler/src/main/java/de/intevation/webflys/util/ReaderWriterCopyThread.java: New. reader/writer equivalent to StreamCopyThread 2008-03-08 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/handlers/ShutdownHandler.java: Make default scheduler shutdown password "die!" according to interface documentation. 2008-03-06 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: job id was missing when fetching job result. * scheduler/src/main/resources/templates/list-html.vm: Fixed Typo. Use '.' instead of '_' to access bean property. 2008-03-06 Sascha L. Teichmann : * scheduler/src/main/resources/templates/list-html.vm: Added info command a-refs to finished jobs. 2008-03-06 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/handlers/InfoHandler.java, scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Removed needless imports. 2008-03-06 Sascha L. Teichmann : * scheduler/src/main/resources/templates/info-xml.vm: New. template to display results. * scheduler/src/main/java/de/intevation/webflys/handlers/InfoHandler.java: Use new result template. * scheduler/src/main/java/de/intevation/webflys/model/JobResult.java: Getter for job id. 2008-03-06 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/JobResult.java: New. Bean to access result of job. * scheduler/src/main/java/de/intevation/webflys/handlers/InfoHandler.java: Fills an array of JobResult from job id list now. * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: Fetches the results messages for a given job id now. 2008-03-06 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/handlers/InfoHandler.java: New. handles the 'info' cmd. * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Added 'info' handler. 2008-03-06 Stephan Holl : * doc/INSTALL.txt: Added path to wsplgen-binary added, synced with release-INSTALL-text; is now up-to-date (hopefully). * contrib/scheduler.sh: fixed a problem, 2 $ were missing 2008-03-04 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: Added method call to write result to the geoserver (commented out) * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Added method to write results to the geoserver 2008-03-02 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: Added some tracing output. * scheduler/src/main/java/de/intevation/webflys/model/Parameter.java: Fixed typo in wrong spelled system property. 2008-03-02 Sascha L. Teichmann : * contrib/run.sh: Added new flag to configure used geoserver. * scheduler/pom.xml: Upgraded to geotools 2.4.1 * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: integreate WFS -> shp for Rohre, Graeben, Daemme. * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Do the WFS download for Rohre, Graeben, Daemme. 2008-03-02 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/handlers/*Handler.java, scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Removed needless imports. 2008-02-25 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: Added method call to save results of shape file into wfs * scheduler/src/main/java/de/intevation/webflys/model/WFST.java: Added class. Saves shape file into wfs. 2008-02-19 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Use separate instance model of velocity. * scheduler/src/main/java/de/intevation/webflys/handlers/*Handler.java: Use the singleton of the VelocityEngine provided by main. 2008-02-19 Sascha L. Teichmann : * contrib/scheduler.sh: Added parameter for WSPLGEN. * scheduler/pom.xml: Comment out geotools deps. * ChangeLog.txt: tagged as "2008-02-21" 2008-02-20 Ingo Weinzierl : * scheduler/pom.xml: Added dependency for shapefiles 2008-02-20 Sascha L. Teichmann : * scheduler/pom.xml: Added dependency to geotools 2.4 2008-02-19 Sascha L. Teichmann : * doc/scheduler-schnittstelle.txt: Added 'restart' command to interface description. * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: register 'restart' handler. * scheduler/src/main/resources/templates/list-html.vm: Renamed awake to restart. * scheduler/src/main/java/de/intevation/webflys/handlers/AwakeHandler.java, scheduler/src/main/java/de/intevation/webflys/handlers/RestartHandler.java: Moved AwakeHandler to RestartHandler. Adjusted code. StopHandler.getJobsIds is used now to reduce code duplication. 2008-02-18 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: Sort jobs in overview jobs by enqueue time. 2008-02-18 Sascha L. Teichmann : * scheduler/src/main/resources/templates/list-html.vm: Added 5 (warnings) to recognized states. 2008-02-18 Sascha L. Teichmann : * doc/schema.sql: Added state 5 (warnings) to constraint status_ck. 2008-02-13 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/Job.java: Added a fifth status parameter for jobs with warnings. * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java, scheduler/src/main/java/de/intevation/webflys/scheduler/Scheduler.java: Job status depends on exitValue. Error in WebInteface visible. 2008-02-13 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/handlers/ShutdownHandler.java: Added password in sytem property. ShutdownHandler changes current job status to WAITING and shuts scheduler down. 2008-02-13 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/handlers/AwakeHandler.java: New Handler to continue a stopped job. * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java, scheduler/src/main/resources/templates/list-html.vm: User is able to continue a job from the webinterface. 2008-02-13 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/util/CopyThread.java: New. Helper class to copy input to output stream in a separate thread. * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: Uses CopyThread now. 2008-02-14 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: Deleting of job directory depends on system configuration. * scheduler/src/main/java/de/intevation/webflys/model/Parameter.java: Removed parameter mistake. 2008-02-14 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java, scheduler/src/main/java/de/intevation/webflys/model/Parameter.java: Added WSPLGEN call. 2008-02-14 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java, scheduler/src/main/java/de/intevation/webflys/model/Parameter.java: Added needed and optional parameter to toFile method, which builds the parameter file needed by WSPLGEN. 2008-02-13 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/Parameter.java: Fetched path to rivers from configuration properties. 2008-02-13 Ingo Weinzierl : * scheduler/src/main/java/de/intevation/webflys/handlers/AddHandler.java, scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java, scheduler/src/main/java/de/intevation/webflys/model/Parameter.java: Added Parameter.java. Parameters will be written into par-File. 2008-02-11 Sascha L. Teichmann : * ChangeLog.txt: Tagged as "2008-02-11" 2008-02-11 Sascha L. Teichmann : * contrib/scheduler.sh: new start script for distribution. * doc/INSTALL.txt: short install description. 2008-02-10 Sascha L. Teichmann : * contrib/run.sh: Added property to wsplgen tmp dir * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: When a job get unlocked the current time is inserted as stop time. * scheduler/src/main/java/de/intevation/webflys/model/Job.java: Removed execution code. Its a POJO again. * scheduler/src/main/java/de/intevation/webflys/model/JobExecutor.java: New. Contains the exceution code now. creates temp dir and downloads wst files if present in job. * scheduler/src/main/java/de/intevation/webflys/scheduler/Scheduler.java: Uses the JobExecutor now. * scheduler/src/main/resources/templates/list-html.vm: Modified to only show stop action in case of waiting jobs and jobs in progress. * scheduler/src/main/java/de/intevation/webflys/util/FileUtil.java: New. Eases deletion of none emty directories. 2008-02-10 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: implemented locking and unlocking of jobs in progress. * scheduler/src/main/java/de/intevation/webflys/model/Job.java: Make jobs more robust against killing. * scheduler/src/main/java/de/intevation/webflys/scheduler/Scheduler.java: Before unlock a job look if it is killed. * scheduler/src/main/resources/templates/list-html.vm: Tweaked text a bit. 2008-02-10 Sascha L. Teichmann : * doc/scheduler-schnittstelle.txt: Added "stop" command to halt jobs without removing them from job list. Added a new state 'job in progress'. * doc/schema.sql: Added state check for 'job in progress'. * scheduler/src/main/java/de/intevation/webflys/handlers/AddHandler.java: Sets a new job to 'waiting' now. * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: Added stub methods to lock and unlock a job that is in progress. * scheduler/src/main/java/de/intevation/webflys/model/Job.java: Added state constants, an execute() method and an exception class. * scheduler/src/main/java/de/intevation/webflys/handlers/StopHandler.java: New. Handler to stop jobs. Does nothing by now. * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Added new stop handler. * scheduler/src/main/java/de/intevation/webflys/scheduler/Scheduler.java: Now waits 60secs before looking into database for new jobs repeatly. Jobs are instantiated through backend and released after exceution. * scheduler/src/main/resources/templates/list-html.vm: Modified to show the job states in human readable form. Added links to stop jobs. 2008-02-08 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/webserver/SimpleWebServer.java: URL decoding was done to early. 2008-02-08 Sascha L. Teichmann : * doc/schema.sql: Renamed constraint gel_ch to gel_ck. Now values 0, 1, 2 and 3 are valid. 2008-02-08 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/Scheduler.java: New. Stub implementation of the job processing unit. * doc/scheduler-schnittstelle.txt: delete command does not need user id. * scheduler/src/main/java/de/intevation/webflys/handlers/AddHandler.java: Wakeup scheduler if new job has arrived. * scheduler/src/main/java/de/intevation/webflys/handlers/DeleteHandler.java: Remove given jobs from database and notify Scheduler to kill these jobs. * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: Add method to delete jobs from database. * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Setup Scheduler and put it into the global context of the web server. * scheduler/src/main/resources/templates/list-html.vm: Modified to generate the delete links with job_ids instead of job_id. XXX: For security reason it would be much better if a common secret is needed to delete the jobs. 2008-02-07 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/util/StringUtil.java: return null from entityEncode(s) when s is null. * scheduler/src/main/resources/templates/list-html.vm, scheduler/src/main/resources/templates/list-xml.vm: Added '!' to string interpolation if value is not present. 2008-02-07 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: Using Timestamp instead of Time objects. 2008-02-07 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Setup right handler for HTML listing. * scheduler/src/main/resources/templates/list-html.vm: Fixed issue with string interpolation of enqueue time. 2008-02-07 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/Job.java: Added user id. Fixed timestamp issues. * scheduler/src/main/java/de/intevation/webflys/handlers/AddHandler.java: Fixed parameters typos. Added user id evaluation. * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: Fixed timestamp issues. Added user id. * scheduler/src/main/resources/templates/list-xml.vm: Fixed typos in string interpolation. 2008-02-07 Sascha L. Teichmann : * src/main/java/de/intevation/webflys/handlers/AddHandler.java: Creates new jobs in database now. untested. * src/main/java/de/intevation/webflys/util/PreparedStatementUtil.java: Removed. Not really needed. 2008-02-07 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/Job.java: Added email to job. Added store(boolean create) to update or create job in database. * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: Added method storeJob(job, create) to update create job in database. Only creation is implemented yet. 2008-02-06 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/Job.java: Added inner class Data to model the data part of the job. * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: Fetch data for a given job. 2008-02-06 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/handlers/ListHandler.java: Code cleanup. * scheduler/src/main/java/de/intevation/webflys/util/StringUtil.java: Added vim style line. * scheduler/src/main/java/de/intevation/webflys/util/PreparedStatementUtil.java: New. Helper for set values in prepared Statements. 2008-02-06 Sascha L. Teichmann : * README.txt: New. how to create a jobs database. * doc/schema.sql: Changed schema to contain the river name. Removed columns which are computable out of the river name. * doc/scheduler-schnittstelle.txt: Adjusted description of the add command. * scheduler/src/main/java/de/intevation/webflys/handlers/AddHTMLHandler.java: Adjust to list the fields for the add command. 2008-02-06 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/handlers/ListHTMLHandler.java: New. Lists jobs in HTML form. * scheduler/src/main/resources/templates/list-html.vm: New. Template for HTML job listing. * scheduler/src/main/resources/templates/list-xml.vm: Fixed names of the properties. * scheduler/src/main/java/de/intevation/webflys/handlers/ListHandler.java: If no 'user_id' parameter is given list jobs for all users. * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: Support extracting all users from database. * scheduler/src/main/java/de/intevation/webflys/model/Job.java: Added formatted start and stop time properties. Added quoted output of user message. * scheduler/src/main/java/de/intevation/webflys/model/User.java: Added method to all users. * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Setup new HTML job listing. 2008-02-06 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: allown hosts are now separated by ',' and not ';' any more. 2008-02-04 Sascha L. Teichmann : * contrib/run.sh: root dir for rivers: $WEB_FLYS_DIR; path to derby db: $DERBY_PATH * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Setup handler for rivers. * scheduler/src/main/java/de/intevation/webflys/handlers/RiversHandler.java: New. Handler to serve list of rivers. * scheduler/src/main/java/de/intevation/webflys/model/DEM.java: New. POJO for DEM. * scheduler/src/main/java/de/intevation/webflys/model/River.java: New. POJO for river. * scheduler/src/main/resources/templates/rivers-xml.vm: New. template for XML listing of rivers. 2008-02-04 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/handlers/ListHandler.java: Use database instead of dummy data. * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: Uses User.getId() instead of User.getName(). * scheduler/src/main/java/de/intevation/webflys/model/User.java: Renamed get/setName() to get/setId() to fill template correctly. * contrib/run.sh: Added. start script with path to a derby database. 2008-01-31 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/model/: New package. * scheduler/src/main/java/de/intevation/webflys/model/Backend.java: New. Encapsulates SQL. * scheduler/src/main/java/de/intevation/webflys/scheduler/DBConnection.java, scheduler/src/main/java/de/intevation/webflys/model/DBConnection.java: Moved from scheduler to model package. * scheduler/src/main/java/de/intevation/webflys/model/Job.java: POJO for jobs in queue. * scheduler/src/main/java/de/intevation/webflys/model/User.java: POJO for user in queue. 2008-01-31 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/webserver/, scheduler/src/main/java/de/intevation/webflys/util/, scheduler/src/main/java/de/intevation/webflys/handlers/: New packages * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Modified to use new package structure. * scheduler/src/main/java/de/intevation/webflys/scheduler/AddHTMLHandler.java, scheduler/src/main/java/de/intevation/webflys/scheduler/AddHandler.java, scheduler/src/main/java/de/intevation/webflys/scheduler/DemoHandler.java, scheduler/src/main/java/de/intevation/webflys/scheduler/DeleteHandler.java, scheduler/src/main/java/de/intevation/webflys/scheduler/KillHandler.java, scheduler/src/main/java/de/intevation/webflys/scheduler/ListHandler.java, scheduler/src/main/java/de/intevation/webflys/scheduler/ShutdownHandler.java: Moved to new handlers package. * scheduler/src/main/java/de/intevation/webflys/scheduler/SimpleWebServer.java, scheduler/src/main/java/de/intevation/webflys/scheduler/GlobalContext.java, scheduler/src/main/java/de/intevation/webflys/scheduler/ByteArray.java, scheduler/src/main/java/de/intevation/webflys/scheduler/XMLHandler.java, scheduler/src/main/java/de/intevation/webflys/scheduler/HTMLHandler.java: Moved to new webserver package. * scheduler/src/main/java/de/intevation/webflys/scheduler/Utils.java: Removed * scheduler/src/main/java/de/intevation/webflys/util/StringUtil.java: New. was Utils. 2008-01-30 Sascha L. Teichmann : * doc/scheduler-schnittstelle.txt: A few add-flags are optional. * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Added handler for add-html. * scheduler/src/main/java/de/intevation/webflys/scheduler/AddHTMLHandler.java: New. Handler filling names of flags into HTML form to trigger add. * scheduler/src/main/resources/templates/add-html.vm: Template for add form. 2008-01-28 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/DBConnection.java: Add 'static' to getDataSource(). * scheduler/src/main/resources/templates/list-xml.vm: New. Template for list result. * scheduler/src/main/java/de/intevation/webflys/scheduler/ListHandler.java: Fill template with dummy data. 2008-01-28 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/DBConnection.java: New. Get DataSource from connection pool. * scheduler/pom.xml: Added support for Apache Commons DBCP and Apache Derby. The embedded version is used by default. 2008-01-28 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Removed code to load properties file. * scheduler/src/main/java/de/intevation/webflys/scheduler/Config.java: Wrapper around properties access. 2008-01-28 Sascha L. Teichmann : * doc/scheduler-schnittstelle.txt: New. Description of the interface. * doc/schema.sql: Schema for DB. 2008-01-27 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Configured support for 'kill', 'list' and 'shutdown'. * scheduler/src/main/java/de/intevation/webflys/scheduler/KillHandler.java, scheduler/src/main/java/de/intevation/webflys/scheduler/ListHandler.java, scheduler/src/main/java/de/intevation/webflys/scheduler/ShutdownHandler.java: New. Stub implementations for 'kill', 'list' and 'shutdown'. 2008-01-27 Sascha L. Teichmann : * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Added support for 'add' and 'delete'. * scheduler/src/main/java/de/intevation/webflys/scheduler/XMLHandler.java: New. Common base class for XML handlers. * scheduler/src/main/java/de/intevation/webflys/scheduler/AddHandler.java, scheduler/src/main/java/de/intevation/webflys/scheduler/DeleteHandler.java: New. Stub implementations for 'add' and 'delete' commands. * scheduler/src/main/resources/templates/status.vm: New. Template for status reply. * scheduler/src/main/java/de/intevation/webflys/scheduler/Utils.java: New. For common helpers. * scheduler/src/main/java/de/intevation/webflys/scheduler/DemoHandler.java: Uses Utils.quote() now. * contrib/run-dev.sh: Removed echo. 2008-01-27 Sascha L. Teichmann : * scheduler/pom.xml: Added Velocity to dependencies. * contrib/run-dev.sh: New. For running the server. * scheduler/src/main/java/de/intevation/webflys/scheduler/DemoHandler.java: Uses Velocity template now. * scheduler/src/main/resources/templates/demo.vm: New. Template for demo handler. * scheduler/src/main/java/de/intevation/webflys/scheduler/Main.java: Configured Velocity. * scheduler/src/main/java/de/intevation/webflys/scheduler/SimpleWebServer.java: Added new field global context for inter handler communication. * scheduler/src/main/java/de/intevation/webflys/scheduler/GlobalContext.java: This class may be used as a 'blackboard' for inter handler communication. 2008-01-27 Sascha L. Teichmann : * .hgignore: Make more compatible * scheduler/**: Initial import of the web server. 2008-01-27 Sascha L. Teichmann : * .hgignore, ChangeLog.txt: Added.