KickJava   Java API By Example, From Geeks To Geeks.

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


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
12 /**
13  *
14  * @author sridatta
15  */

16 public class RemoveStatus extends Status {
17         
18     private String JavaDoc _removedBackupFileName;
19     
20     //can be user or system
21
private boolean _isSystemRemoved=true;
22     
23     /** Creates a new instance of BackupStatus */
24     public RemoveStatus() throws BackupException {
25         super(true);
26     }
27      public RemoveStatus(String JavaDoc file, boolean system) throws BackupException {
28          super(true);
29         _removedBackupFileName = file;
30         _isSystemRemoved = system;
31     }
32     
33     public String JavaDoc getOperation() {
34         return "RemoveStatus";
35     }
36     /*
37     public void setIsSystemRemoved(boolean val) {
38         _isSystemRemoved = val;
39     }
40      */

41     
42     public String JavaDoc thisToString() {
43             return "Removed FileName " + _removedBackupFileName +
44                     ", Removed by " + (_isSystemRemoved?"system":"user");
45     }
46 }
47
Popular Tags