| | |
| | | <!-- ===== Start instances ===== --> |
| | | <paralleliterate in="topoInstances" var="instance"> |
| | | <sequence> |
| | | <call function="'getLogFileName'"> |
| | | { 'type' : 'instance', |
| | | 'object' : instance, |
| | | 'prefix' : filePrefix |
| | | } |
| | | </call> |
| | | <script> |
| | | logName = '%s_%s' % (instance.getHost(),instance.getName()) |
| | | logFile = '%s/%s_%s.xml' % (LOG_XML_TMP_DIR,filePrefix,logName) |
| | | logFile = STAXResult |
| | | |
| | | fileList.append(logFile) |
| | | |
| | | cFileFd = open(logFile,'w') |
| | |
| | | i += 1 |
| | | |
| | | instanceSource = topoInstances[i] |
| | | </script> |
| | | <call function="'getLogFileName'"> |
| | | { 'type' : 'instance', |
| | | 'object' : instance, |
| | | 'prefix' : filePrefix |
| | | } |
| | | </call> |
| | | <script> |
| | | logFile = STAXResult |
| | | |
| | | logName = '%s_%s' % (instance.getHost(),instance.getName()) |
| | | logFile = '%s/%s_%s.xml' % (LOG_XML_TMP_DIR,filePrefix,logName) |
| | | # reopen existing files, no need to add in fileList variable |
| | | # as it has already been added |
| | | cFileFd = open(logFile,'a') |
| | |
| | | <!--== Initialize replication (totalUpdate) ==--> |
| | | <iterate in="topoInstances" var="instance"> |
| | | <sequence> |
| | | <call function="'getLogFileName'"> |
| | | { 'type' : 'instance', |
| | | 'object' : instance, |
| | | 'prefix' : filePrefix |
| | | } |
| | | </call> |
| | | <script> |
| | | logName = '%s_%s' % (instance.getHost(),instance.getName()) |
| | | logFile = '%s/%s_%s.xml' % (LOG_XML_TMP_DIR,filePrefix,logName) |
| | | logFile = STAXResult |
| | | # reopen existing files, no need to add in fileList variable |
| | | # as it has already been added |
| | | cFileFd = open(logFile,'a') |