KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > continuent > sequoia > common > jmx > management > DumpInfo


1 /**
2  * Sequoia: Database clustering technology.
3  * Copyright (C) 2005 Emic Networks.
4  * Contact: sequoia@continuent.org
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * Initial developer(s): Emmanuel Cecchet.
19  * Contributor(s): ______________________.
20  */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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