def __getLockFiles(self): files = [] if(self.xmlFile == ""): tmp_dir = DefaultValue.getTmpDirFromEnv() else: tmp_dir = DefaultValue.getTmpDir(self.user, self.xmlFile) instances = [] instances += self.dbNodeInfo.gtms instances += self.dbNodeInfo.cmservers instances += self.dbNodeInfo.coordinators instances += self.dbNodeInfo.datanodes instances += self.dbNodeInfo.datanodes instances += self.dbNodeInfo.cmagents for dbInst in instances: if (dbInst.datadir not in self.Instancedirs): continue pgsql = ".s.PGSQL.%d" % dbInst.port pgsql_lock = ".s.PGSQL.%d.lock" % dbInst.port files.append(os.path.join(tmp_dir, pgsql)) files.append(os.path.join(tmp_dir, pgsql_lock)) for cooInst in self.dbNodeInfo.coordinators: if (cooInst.datadir not in self.Instancedirs): continue pgpool = ".s.PGPOOL.%d" % cooInst.haPort pgpool_lock = ".s.PGPOOL.%d.lock" % cooInst.haPort files.append(os.path.join(tmp_dir, pgpool)) files.append(os.path.join(tmp_dir, pgpool_lock)) return files