KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > cjdbc > common > shared > DumpInfo


1 /**
2  * C-JDBC: Clustered JDBC.
3  * Copyright (C) 2005 Emic Networks.
4  * Contact: c-jdbc@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License as published by the
8  * Free Software Foundation; either version 2.1 of the License, or any later
9  * version.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
14  * for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; if not, write to the Free Software Foundation,
18  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19  *
20  * Initial developer(s): Emmanuel Cecchet.
21  * Contributor(s): ______________________.
22  */

23
24 package org.objectweb.cjdbc.common.shared;
25
26 import java.io.Serializable JavaDoc;
27
28 /**
29  * This class defines a DumpInfo which carries dump metadata information that is
30  * mapped on a row in the dump table of the recovery log.
31  *
32  * @author <a HREF="mailto:emmanuel.cecchet@emicnetworks.com">Emmanuel Cecchet</a>
33  * @version 1.0
34  */

35 public class DumpInfo implements Serializable JavaDoc
36 {
37   private static final long serialVersionUID = -5627995243952765938L;
38
39   private String JavaDoc dumpName;
40   private String JavaDoc dumpDate;
41   private String JavaDoc dumpPath;
42   private String JavaDoc dumpFormat;
43   private String JavaDoc checkpointName;
44   private String JavaDoc backendName;
45   private String JavaDoc tables;
46
47   /**
48    * Creates a new <code>DumpInfo</code> object
49    *
50    * @param dumpName the dump logical name
51    * @param dumpDate the date at which the dump was started
52    * @param dumpPath the path where the dump can be found
53    * @param dumpFormat the format of the dump
54    * @param checkpointName the checkpoint name associated to this dump
55    * @param backendName the name of the backend that was dumped
56    * @param tables the list of tables contained in the dump ('*' means all
57    * tables)
58    */

59   //FIXME dumpDate should be a java.util.Date
60
public DumpInfo(String JavaDoc dumpName, String JavaDoc dumpDate, String JavaDoc dumpPath,
61       String JavaDoc dumpFormat, String JavaDoc checkpointName, String JavaDoc backendName,
62       String JavaDoc tables)
63   {
64     this.dumpName = dumpName;
65     this.dumpDate = dumpDate;
66     this.dumpPath = dumpPath;
67     this.dumpFormat = dumpFormat;
68     this.checkpointName = checkpointName;
69     this.backendName = backendName;
70     this.tables = tables;
71   }
72
73   /**
74    * Returns the backendName value.
75    *
76    * @return Returns the backendName.
77    */

78   public String JavaDoc getBackendName()
79   {
80     return backendName;
81   }
82
83   /**
84    * Sets the backendName value.
85    *
86    * @param backendName The backendName to set.
87    */

88   public void setBackendName(String JavaDoc backendName)
89   {
90     this.backendName = backendName;
91   }
92
93   /**
94    * Returns the checkpointName value.
95    *
96    * @return Returns the checkpointName.
97    */

98   public String JavaDoc getCheckpointName()
99   {
100     return checkpointName;
101   }
102
103   /**
104    * Sets the checkpointName value.
105    *
106    * @param checkpointName The checkpointName to set.
107    */

108   public void setCheckpointName(String JavaDoc checkpointName)
109   {
110     this.checkpointName = checkpointName;
111   }
112
113   /**
114    * Returns the dumpDate value.
115    *
116    * @return Returns the dumpDate.
117    */

118   public String JavaDoc getDumpDate()
119   {
120     return dumpDate;
121   }
122
123   /**
124    * Sets the dumpDate value.
125    *
126    * @param dumpDate The dumpDate to set.
127    */

128   public void setDumpDate(String JavaDoc dumpDate)
129   {
130     this.dumpDate = dumpDate;
131   }
132
133   /**
134    * Returns the dumpName value.
135    *
136    * @return Returns the dumpName.
137    */

138   public String JavaDoc getDumpName()
139   {
140     return dumpName;
141   }
142
143   /**
144    * Sets the dumpName value.
145    *
146    * @param dumpName The dumpName to set.
147    */

148   public void setDumpName(String JavaDoc dumpName)
149   {
150     this.dumpName = dumpName;
151   }
152
153   /**
154    * Returns the dumpPath value.
155    *
156    * @return Returns the dumpPath.
157    */

158   public String JavaDoc getDumpPath()
159   {
160     return dumpPath;
161   }
162
163   /**
164    * Sets the dumpPath value.
165    *
166    * @param dumpPath The dumpPath to set.
167    */

168   public void setDumpPath(String JavaDoc dumpPath)
169   {
170     this.dumpPath = dumpPath;
171   }
172
173   /**
174    * Returns the dumpFormat value.
175    *
176    * @return Returns the dumpFormat.
177    */

178   public String JavaDoc getDumpFormat()
179   {
180     return dumpFormat;
181   }
182
183   /**
184    * Sets the dumpFormat value.
185    *
186    * @param dumpFormat The dumpFormat to set.
187    */

188   public void setDumpFormat(String JavaDoc dumpFormat)
189   {
190     this.dumpFormat = dumpFormat;
191   }
192
193   /**
194    * Returns the tables value.
195    *
196    * @return Returns the tables.
197    */

198   public String JavaDoc getTables()
199   {
200     return tables;
201   }
202
203   /**
204    * Sets the tables value.
205    *
206    * @param tables The tables to set.
207    */

208   public void setTables(String JavaDoc tables)
209   {
210     this.tables = tables;
211   }
212
213 }
214
Popular Tags