Changes between Version 16 and Version 17 of v1
- Timestamp:
- Jul 19, 2010, 11:12:39 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
v16 v17 33 33 * ''' viewCons.py ''' The vizualisation script, that generates different plots via python plotting library `MatplotLib`,representing the power consumption and the average load of a machine during a certan period of time. This vizualisation tool is not finished yet 34 34 {{{ 35 ^1^: PowerMon project supports all types of databases that are tolerated by sqlAlchemy (sqlite,mysql,posgresql,oracle...)35 1: PowerMon project supports all types of databases that are tolerated by sqlAlchemy (sqlite,mysql,posgresql,oracle...) 36 36 Therefore, we can specify which database we want to connect to , in the default section of f_config_pdus.cfg 37 37 }}} 38 38 = Classes = 39 39 40 * '''class DbConn : ''' The class which manages connection to the database and all the interactions with it 40 * '''1. DbConn Objects: ''' a DbConn object is responsible of database connection management and all the interactions with it 41 42 Constructor: 43 44 **class** DbConn(dbName,dbType,username,password,host,port) 45 `dbName,dbType,username,password,host,port` are string arguments specified in the configuration file : f_config_pdu.cfg on section //default// 46 47 In PowerMon V1, "dbType" is either 'sqlite' or 'mysql' : other types may also be supported provided that they are supported by sqlAlchemy and that this constructor is appropriately modified 41 48 42 49 * ''' class PDU: ''' Allows to be connected to a supervisable pdu and extract machines' power consumption data
![(please configure the [header_logo] section in trac.ini)](/PowerMon/chrome/site/your_project_logo.png)