public OpenDJUpgrader(EmbeddedOpenDJBackupManager backupManager,String installRoot,ServletContext servletCtx){
  this.backupManager=backupManager;
  this.installRoot=installRoot;
  this.servletCtx=servletCtx;
  this.upgradeMarker=new File(installRoot + "/.upgrade_marker");
  this.newVersion=readNewVersion();
  OpenDJVersion currentVersion=readCurrentVersion();
  if (upgradeMarker.exists() && newVersion.equals(currentVersion)) {
    this.currentVersion=readVersionFromFile(upgradeMarker);
  }
 else {
    this.currentVersion=currentVersion;
  }
}

public OpenDJUpgrader ( EmbeddedOpenDJBackupManager backupManager , String installRoot , ServletContext servletCtx ) { this . backupManager = backupManager ; this . installRoot = installRoot ; this . servletCtx = servletCtx ; this . upgradeMarker = new File ( installRoot + "/.upgrade_marker" ) ; this . newVersion = readNewVersion ( ) ; OpenDJVersion currentVersion = readCurrentVersion ( ) ; if ( upgradeMarker . exists ( ) && newVersion . equals ( currentVersion ) ) { this . currentVersion = readVersionFromFile ( upgradeMarker ) ; } else { this . currentVersion = currentVersion ; } }
creates a new opendj upgrader .
