Example #1
0
 def __init__(self, sqlUser, sqlPass, databaseName):
     '''
         Constructora de la clase
     '''
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPass, databaseName)
     self.connect()
     self.generateMACsAndUUIDs()
     self.generateVNCPorts()
 def __init__(self, sqlUser, sqlPassword, databaseName):
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword, databaseName)
     self.__vmServerSegmentsData = []
     self.__vmServerSegments = 0
     self.__imageDistributionSegmentsData = []
     self.__imageDistributionSegments = 0
     self.__activeVMSegmentsData = dict()
     self.__activeVMSegments = dict()
Example #3
0
 def __init__(self, sqlUser, sqlPassword, databaseName):
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword,
                                     databaseName)
     self.__vmServerSegmentsData = []
     self.__vmServerSegments = 0
     self.__imageDistributionSegmentsData = []
     self.__imageDistributionSegments = 0
     self.__activeVMSegmentsData = dict()
     self.__activeVMSegments = dict()
Example #4
0
 def __init__(self,sqlUser,sqlPassword,databaseName,logUser):
     '''
         Constructor de la clase
     '''
     #Guardamos los atributos
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword, databaseName)
     self.__user = logUser
     # Nos conectamos a MySql 
     self.connect()
     # Extraemos la lista con los tipos asociados a
     #  el usuario
     self.typeIds = self.getTypeIds()
Example #5
0
 def __init__(self, sqlUser, sqlPassword, databaseName):
     '''
         Constructor de la clase. Recibe el nombre y lla contrasennia del usuario sql encargado
         de gestionar la base de datos
         Argumentos:
             sqlUser: usuario para conectarnos a MySQL
             sqlPassword: contraseña para conectarnos a MySQL
             databaseName: nombre de la base de datos a la que nos vamos a conectar
         Devuelve:
             Nada
     '''
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword, databaseName)
Example #6
0
 def __init__(self, sqlUser, sqlPassword, statusDBName, minCommandInterval):
     """
     Initializes the connector's state
     Args:
         sqlUser: the mysql user to use
         sqlPassword: the mysql password to use
         statusDBName: the mysql database name
         minCommandInterval: the time interval that separates two requests
         sent by the same user.
     """
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword, statusDBName)
     self.__minCommandInterval = minCommandInterval
Example #7
0
 def __init__(self, sqlUser, sqlPassword, databaseName):
     '''
         Constructor de la clase. Recibe el nombre y lla contrasennia del usuario sql encargado
         de gestionar la base de datos
         Argumentos:
             sqlUser: usuario para conectarnos a MySQL
             sqlPassword: contraseña para conectarnos a MySQL
             databaseName: nombre de la base de datos a la que nos vamos a conectar
         Devuelve:
             Nada
     '''
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword,
                                     databaseName)
Example #8
0
 def __init__(self, sqlUser, sqlPassword, databaseName, logUser):
     '''
         Constructor de la clase
     '''
     #Guardamos los atributos
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword,
                                     databaseName)
     self.__user = logUser
     # Nos conectamos a MySql
     self.connect()
     # Extraemos la lista con los tipos asociados a
     #  el usuario
     self.typeIds = self.getTypeIds()
 def __init__(self, sqlUser, sqlPassword, databaseName):
     """
     Inicializa el estado del escritor
     Argumentos:
         sqlUser: usuario SQL a utilizaqr
         sqlPassword: contraseña de ese usuario
         databaseName: nombre de la base de datos de estado
     """
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword, databaseName)
     self.__vmServerSegmentsData = []
     self.__vmServerSegments = 0
     self.__imageDistributionSegmentsData = []
     self.__imageDistributionSegments = 0
     self.__activeVMSegmentsData = dict()
     self.__activeVMSegments = dict()
Example #10
0
 def __init__(self, sqlUser, sqlPassword, databaseName):
     """
     Inicializa el estado del escritor
     Argumentos:
         sqlUser: usuario SQL a utilizaqr
         sqlPassword: contraseña de ese usuario
         databaseName: nombre de la base de datos de estado
     """
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword,
                                     databaseName)
     self.__vmServerSegmentsData = []
     self.__vmServerSegments = 0
     self.__imageDistributionSegmentsData = []
     self.__imageDistributionSegments = 0
     self.__activeVMSegmentsData = dict()
     self.__activeVMSegments = dict()
Example #11
0
 def __init__(self, sqlUser, sqlPassword, databaseName):
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword,
                                     databaseName)
     #Seleccionamos la base de datos que vamos a manejar
     # Nos conectamos a MySql
     self.connect()
Example #12
0
 def __init__(self,sqlUser,sqlPassword,databaseName):
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword, databaseName)
     #Seleccionamos la base de datos que vamos a manejar
     # Nos conectamos a MySql 
     self.connect()
 def __init__(self, sqlUser, sqlPassword, databaseName):
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword,
                                     databaseName)
 def __init__(self, sqlUser, sqlPassword, databaseName):
     BasicDatabaseConnector.__init__(self, sqlUser, sqlPassword, databaseName)