IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.recorder.compatibility.upgrade
Class BatchRecmodelUpgrade

java.lang.Object
  extended by com.ibm.rational.test.lt.recorder.compatibility.upgrade.BatchRecmodelUpgrade

public class BatchRecmodelUpgrade
extends Object

Performs a batch upgrade of recordings produced using RPT <=8., under a specific directory in the workspace. This upgrader keeps upgrading files even if one file fails to be upgraded.


Constructor Summary
BatchRecmodelUpgrade(IContainer sourceContainer, IContainer destinationContainer, IBatchRecmodelUpgradeLog log)
          Instantiates a new batch upgrader.
 
Method Summary
static void recurseCreate(IContainer container)
           
protected  boolean shouldUpgrade(IFile file)
           
 void upgrade(IProgressMonitor monitor)
          Performs the batch upgrade.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchRecmodelUpgrade

public BatchRecmodelUpgrade(IContainer sourceContainer,
                            IContainer destinationContainer,
                            IBatchRecmodelUpgradeLog log)
Instantiates a new batch upgrader.

Parameters:
sourceContainer - The container where legacy recordings should be searched.
destinationContainer - The container where corresponding upgraded recordings should be written. Files will be saved using the same hierarchy as the one found under sourceContainer. This container may be identical to sourceContainer.
log - A log instance where where any message produced by the upgrade operation will be logged.
Method Detail

upgrade

public void upgrade(IProgressMonitor monitor)
Performs the batch upgrade. The result of the operation can be inferred from the log.

Parameters:
monitor -

shouldUpgrade

protected boolean shouldUpgrade(IFile file)

recurseCreate

public static void recurseCreate(IContainer container)
                          throws CoreException
Throws:
CoreException

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.