1 6 7 package com.sun.enterprise.config.backup.status; 8 9 import com.sun.enterprise.config.backup.BackupException; 10 import com.sun.enterprise.config.backup.utils.BackupHelper; 11 import com.sun.enterprise.config.backup.utils.LocalStringsHelper; 12 13 17 public class RestoreStatus extends Status { 18 19 22 private String _snapshotBackupFile; 23 private String _backupFileName; 24 private String _absoluteBackupFileName; 25 26 27 public RestoreStatus() { 28 } 29 30 public RestoreStatus(String name) throws BackupException { 31 super(true); 32 _absoluteBackupFileName = name; 33 } 34 35 public String getOperation() { 36 return "restore"; 37 } 38 39 public String thisToString() { 40 return "Backup File= " + _absoluteBackupFileName; 41 } 42 43 public static RestoreStatus createFailedRestoreStatus(String msg, String file) { 44 RestoreStatus rs = new RestoreStatus(); 45 BackupHelper.setExceptionInStatus(rs, new BackupException( 46 msg, 47 LocalStringsHelper.getString(msg,file))); 48 return rs; 49 } 50 } 51 | Popular Tags |