コード例 #1
0
 def connectToDatabases(self, endpointDBName, commandsDBName, databaseUser,
                        databasePassword):
     """
     Establishes the database connections
     Args:
         endpointDBName: the cluster endpoint database's name
         commandsDBName: the commands database's name
         databaseUser: the web application database user
         databasePassword: the web application database user password
     Returns:
         Nothing
     """
     self.__endpointDBConnector = MinimalClusterEndpointDBConnector(
         databaseUser, databasePassword, endpointDBName)
     self.__commandsDBConnector = CommandsDatabaseConnector(
         databaseUser, databasePassword, commandsDBName, 1)