Changes between Version 16 and Version 17 of v1


Ignore:
Timestamp:
Jul 19, 2010, 11:12:39 AM (15 years ago)
Author:
naitabde
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • v1

    v16 v17  
    3333* ''' 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
    3434{{{
    35 ^1^: PowerMon project supports all types of databases that are tolerated by sqlAlchemy (sqlite,mysql,posgresql,oracle...)
     351: PowerMon project supports all types of databases that are tolerated by sqlAlchemy (sqlite,mysql,posgresql,oracle...)
    3636     Therefore, we can specify which database we want to connect to , in the default section of f_config_pdus.cfg
    3737}}}
    3838= Classes =
    3939
    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
     42Constructor:
     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
    4148
    4249* ''' class PDU: ''' Allows to be connected to a supervisable pdu and extract machines' power consumption data