Ejemplo n.º 1
0
 def createDbOsh(self, dbsid, dbport, ipaddress):
     hostOsh = modeling.createHostOSH(ipaddress)
     mysqlOsh = modeling.createDatabaseOSH('mysql', dbsid, dbport,
                                           ipaddress, hostOsh)
     if not mysqlOsh.getAttribute('application_version'):
         mysql_version_by_shell.setVersion(mysqlOsh, self.processPath,
                                           self.shell)
     return mysqlOsh, hostOsh
Ejemplo n.º 2
0
 def createDbOsh(self, dbsid, dbport, ipaddress): 
     hostOsh = modeling.createHostOSH(ipaddress)
     mysqlOsh = modeling.createDatabaseOSH('mysql', dbsid, dbport, ipaddress, hostOsh)
     if not mysqlOsh.getAttribute('application_version'): 
         mysql_version_by_shell.setVersion(mysqlOsh, self.processPath, self.shell)
     return mysqlOsh, hostOsh 
 def process(self, context):
     applicationOsh = context.application.getOsh()
     mysql_version_by_shell.setVersion(applicationOsh,
                                       self.__process.executablePath,
                                       self.__client)
 def process(self, context):
     applicationOsh = context.application.getOsh()
     mysql_version_by_shell.setVersion(applicationOsh, self.__process.executablePath, self.__client)