Exemple #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()
Exemple #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()
 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):
     '''
         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)
Exemple #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
Exemple #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)
 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()
Exemple #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()
Exemple #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()
Exemple #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)