KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > config > backup > status > UndoRestoreStatus


1 /*
2  * BackupStatus.java
3  *
4  * Created on December 13, 2000, 6:52 AM
5  */

6
7 package com.sun.enterprise.config.backup.status;
8
9 import com.sun.enterprise.config.backup.pluggable.EnvironmentFactory;
10 import com.sun.enterprise.config.backup.BackupException;
11 import com.sun.enterprise.config.backup.utils.BackupHelper;
12
13
14 /**
15  *
16  * @author sridatta
17  */

18 public class UndoRestoreStatus extends Status {
19     
20     /**
21      * This file is used to undo restore operation
22      */

23     private String JavaDoc _absSnapShotFile;
24     
25     /** Creates a new instance of BackupStatus */
26     public UndoRestoreStatus() {
27     }
28     public UndoRestoreStatus(String JavaDoc name) throws BackupException {
29         super(true);
30         _absSnapShotFile = name;
31     }
32     
33     public String JavaDoc thisToString() {
34         return "SnapShot File= " + _absSnapShotFile;
35     }
36     
37     /*
38     public static UndoRestoreStatus createFailedUndoRestoreStatus1(String msg) {
39         UndoRestoreStatus rs = new UndoRestoreStatus();
40         BackupHelper.setExceptionInStatus(rs, new BackupException(msg));
41         return rs;
42     }
43      */

44     
45     
46     public String JavaDoc getOperation() {
47         return "undoRestore";
48     }
49     
50     
51 }
52
Popular Tags