summaryrefslogtreecommitdiffstats
path: root/server
Commit message (Collapse)AuthorAgeFilesLines
...
| * Cleaned up and added commentsDavid Sommerseth2009-10-152-27/+60
| |
| * Added first-cut of the parsethread() functionDavid Sommerseth2009-10-142-0/+135
| |
| * Added db_begin(), db_rollback() and db_commit() functionsDavid Sommerseth2009-10-142-1/+72
| |
| * Added needed pgsql.h file and cleaned up the DB API a little bitDavid Sommerseth2009-10-132-20/+52
| |
| * Added doxygen comments for xmlparser.[ch] and pgsql.cDavid Sommerseth2009-10-123-2/+188
| |
| * Added db_register_cyclictest()David Sommerseth2009-10-121-0/+65
| |
| * Note to self: it's more clever to use strdup_nullsafe() than strdup() ...David Sommerseth2009-10-121-1/+1
| |
| * Added db_register_rtevalrun()David Sommerseth2009-10-122-2/+82
| | | | | | | | | | Registers report XML data into the rtevalruns and rtevalruns_details tables in the database.
| * Added db_register_system()David Sommerseth2009-10-121-3/+111
| | | | | | | | | | This functions registers a report XML's system and hostname information in the database. It will return the numeric syskey ID.
| * Added sqldataGetHostInfo()David Sommerseth2009-10-122-1/+42
| | | | | | | | | | | | This function parses the input report XML through the xmlparser.xsl XSLT template. It returns hostname and IP address via the function arguments and an sqldata XML document as the return value. On errors, NULL is returned.
| * Refactored sqldataGetFid() and sqldataGetValue() functionsDavid Sommerseth2009-10-122-11/+15
| | | | | | | | | | | | | | | | sqldataGetFid() now takes xmlNode instead of xmlDoc, and sqldataGetValue() takes field name instead of numeric field id (fid) to simpilfy the API. Fixed a double-free bug caused by a missing strdup() in sqldataValueHas().
| * Made some basic DB API stuff more genericDavid Sommerseth2009-10-091-1/+6
| | | | | | | | | | Renamed connectdb() to db_connect() and introduced db_disconnect(). This is to make it easier to introduce a new database backend.
| * Make pgsql_INSERT() make use of the new neat functions in xmlparserDavid Sommerseth2009-10-091-46/+11
| |
| * Added some more useful functions to xmlparserDavid Sommerseth2009-10-092-0/+153
| |
| * Added needed pieces to make the C based summary.xml parser workDavid Sommerseth2009-10-0714-0/+2126
| |
| * Add XML-RPC submissions into a submission queue instead of parsing it directlyDavid Sommerseth2009-09-302-9/+30
|/ | | | | | This is to avoid overloading the Apache process doing XML parsing and database inserts on bigger XML reports. A separate parser process will need to pick files from the submission queue and parse them in separate thread(s).
* Fixed missing variable. The value should be picked out from the configurationDavid Sommerseth2009-09-251-2/+2
|
* Updated XML-RPC README file and installation scriptsDavid Sommerseth2009-09-253-68/+127
|
* Rewritten XML-RPC server to use rtevalConfigDavid Sommerseth2009-09-243-12/+35
| | | | | | | | | | | | | | | | | | | | | | | | | Introduced a new rteval.conf section for configuring the xmlrpc server. [xmlrpc_server] datadir: <path to where to save copy of summary.xml report> xsltpath: <path to where xmlparser.xsl can be found> db_server: <hostname of PostgreSQL server to connect to> db_port: <port number of PostgreSQL> database: <database to use> db_username: <connect to database as this user> db_password: <password for the db account> The default values of these parameters are: datadir: /var/lib/rteval xsltpath: /usr/share/rteval db_server: localhost db_port: 5432 database: rteval db_username: xmlrpc db_password: rtevaldb The xmlrpc_server section in the /etc/rteval.conf file only need those parameters which are different from the default values.
* Added README file for quick info for setting up an XML-RPC serviceDavid Sommerseth2009-09-011-0/+92
|
* Set correct path for XML-RPC API1 server data dirDavid Sommerseth2009-08-251-1/+1
|
* Fixed wrong rterid ID return from xmlrpc_API1::SendReport() functionDavid Sommerseth2009-08-051-1/+1
| | | | It had inverse boolean logic than what was expected
* Corrected missing scope with debug variable in Database::SELECT() methodDavid Sommerseth2009-08-051-1/+1
|
* Added remove_rtevalrun utilityDavid Sommerseth2009-08-051-0/+84
| | | | | This utility connects to the rteval database and removes all data connected to a given rteval run.
* Implemented Database::DELETE() metodDavid Sommerseth2009-08-051-0/+22
|
* Cleaned up a DB connection regressionDavid Sommerseth2009-08-051-2/+1
| | | | | This was introduced in commit 3b21ff811a792becdbc59ad7800940df3befe09f by a mistake.
* Added simple testclient which sends a report file to an XML-RPC serverDavid Sommerseth2009-08-051-0/+55
|
* Simplified test server, default - no DB actions and debug info enabledDavid Sommerseth2009-08-052-90/+3
|
* Improved possibility to get more debug info, and to run tests without ↵David Sommerseth2009-08-053-14/+38
| | | | executing SQL queries
* Improved error message on SQL SELECT queriesDavid Sommerseth2009-08-051-7/+10
|
* Added better error handling when reading XML files and returning empty tag ↵David Sommerseth2009-08-051-2/+5
| | | | values as None
* Save IPv4 address of the system in systems_hostnamesDavid Sommerseth2009-08-052-3/+4
|
* Made the XML-RPC test server work without database (just save a copy of XML ↵David Sommerseth2009-08-052-5/+8
| | | | | | report) Also fixed XML-RPC URL path for requests, to match the production environment
* Added missing database.py in PYTHON_FILESDavid Sommerseth2009-07-301-1/+1
|
* Fixed missing reference to moduleDavid Sommerseth2009-07-301-1/+1
|
* Added new files needed for XML-RPC serverDavid Sommerseth2009-07-301-1/+1
|
* Implemented the register_report() feature in the XMLRPC handlerDavid Sommerseth2009-07-301-3/+7
|
* Added rtevaldb.py, contains register_report() functionDavid Sommerseth2009-07-301-0/+93
| | | | | This function parses the summary.xml data with rteval data and puts it into the database
* database - added NumTuples() methodDavid Sommerseth2009-07-301-0/+17
|
* xmlparser - did not try to take value out of a listDavid Sommerseth2009-07-301-1/+1
|
* database: Added SELECT() and GetValue() methodsDavid Sommerseth2009-07-301-0/+70
|
* xmlparser: Don't include the <value/> tag when processing xmlblobsDavid Sommerseth2009-07-301-1/+1
|
* Added new column: rtevalruns.report_filename.David Sommerseth2009-07-302-8/+16
| | | | Corrected also some typos
* Completed the Database classDavid Sommerseth2009-07-301-7/+29
| | | | | It now properly returns a list with results of the INSERT queries. COMMIT() and ROLLBACK() methods implemented as well.
* xmlparser: Correctly format rterid and syskey arguments, added support for ↵David Sommerseth2009-07-302-4/+14
| | | | /sqlite/@key attribute
* First cut at a Database class, almost completed INSERT() functionDavid Sommerseth2009-07-291-0/+104
|
* Improved xmlparser.py/XMLSQLparser class to handle libxml2.xmlDoc and ↵David Sommerseth2009-07-291-3/+22
| | | | | | | libxml2.xmlNode Valid input for both the XSLT and XML input parameters in the constructor now can parse libxml2.xmlDoc, libxml2.xmlNode or a string containing a filename
* Implemented Python part of XML -> SQL parserDavid Sommerseth2009-07-291-56/+65
| | | | | | | | | | | | | | | | | | | | This module will prepare a dictionary which can be used by a Database object for quering a database. class XMLSQLparser(XSLT, XMLdata) def GetSQLdata(table, rterid=None, syskey=None) The XSLT is a filename to a xmlparser.xsl file, which defines the mapping of XML fields into SQL tables and fields. The XMLdata parameter is a filename to the XML data being processed. Future version will support both filename and xmlDoc. The XMLSQLparser::GetSQLdata(...) function will parse the XML data into a Python dictionary containing all needed field names, values and table name which is useable by a Database object. The table parameter is required, and a matching table name must be defined in the XSLT template. The rterid and syskey paramters are optional, but some table definitions might need them. For more info, look into the xmlparser.xsl file
* Fixed some syntax issues with parsing the rtevalruns_details tableDavid Sommerseth2009-07-281-7/+9
|
* Added XML parsing rules for systems and systems_hostname tablesDavid Sommerseth2009-07-281-0/+51
|