001: /**
002: * Sequoia: Database clustering technology.
003: * Copyright (C) 2005 Emic Networks.
004: * Contact: sequoia@continuent.org
005: *
006: * Licensed under the Apache License, Version 2.0 (the "License");
007: * you may not use this file except in compliance with the License.
008: * You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing, software
013: * distributed under the License is distributed on an "AS IS" BASIS,
014: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015: * See the License for the specific language governing permissions and
016: * limitations under the License.
017: *
018: * Initial developer(s): Emmanuel Cecchet.
019: * Contributor(s): ______________________.
020: */package org.continuent.sequoia.common.jmx.management;
021:
022: import java.io.Serializable;
023: import java.util.Date;
024:
025: /**
026: * This class defines a DumpInfo which carries dump metadata information that is
027: * mapped on a row in the dump table of the recovery log.
028: *
029: * @author <a href="mailto:emmanuel.cecchet@emicnetworks.com">Emmanuel Cecchet</a>
030: * @version 1.0
031: */
032: public class DumpInfo implements Serializable {
033: private static final long serialVersionUID = -5627995243952765938L;
034:
035: private String dumpName;
036: private Date dumpDate;
037: private String dumpPath;
038: private String dumpFormat;
039: private String checkpointName;
040: private String backendName;
041: private String tables;
042:
043: /**
044: * Creates a new <code>DumpInfo</code> object
045: *
046: * @param dumpName the dump logical name
047: * @param dumpDate the date at which the dump was started
048: * @param dumpPath the path where the dump can be found
049: * @param dumpFormat the format of the dump
050: * @param checkpointName the checkpoint name associated to this dump
051: * @param backendName the name of the backend that was dumped
052: * @param tables the list of tables contained in the dump ('*' means all
053: * tables)
054: */
055: public DumpInfo(String dumpName, Date dumpDate, String dumpPath,
056: String dumpFormat, String checkpointName,
057: String backendName, String tables) {
058: this .dumpName = dumpName;
059: this .dumpDate = dumpDate;
060: this .dumpPath = dumpPath;
061: this .dumpFormat = dumpFormat;
062: this .checkpointName = checkpointName;
063: this .backendName = backendName;
064: this .tables = tables;
065: }
066:
067: /**
068: * Returns the backendName value.
069: *
070: * @return Returns the backendName.
071: */
072: public String getBackendName() {
073: return backendName;
074: }
075:
076: /**
077: * Sets the backendName value.
078: *
079: * @param backendName The backendName to set.
080: */
081: public void setBackendName(String backendName) {
082: this .backendName = backendName;
083: }
084:
085: /**
086: * Returns the checkpointName value.
087: *
088: * @return Returns the checkpointName.
089: */
090: public String getCheckpointName() {
091: return checkpointName;
092: }
093:
094: /**
095: * Sets the checkpointName value.
096: *
097: * @param checkpointName The checkpointName to set.
098: */
099: public void setCheckpointName(String checkpointName) {
100: this .checkpointName = checkpointName;
101: }
102:
103: /**
104: * Returns the dumpDate value.
105: *
106: * @return Returns the dumpDate.
107: */
108: public Date getDumpDate() {
109: return dumpDate;
110: }
111:
112: /**
113: * Sets the dumpDate value.
114: *
115: * @param dumpDate The dumpDate to set.
116: */
117: public void setDumpDate(Date dumpDate) {
118: this .dumpDate = dumpDate;
119: }
120:
121: /**
122: * Returns the dumpName value.
123: *
124: * @return Returns the dumpName.
125: */
126: public String getDumpName() {
127: return dumpName;
128: }
129:
130: /**
131: * Sets the dumpName value.
132: *
133: * @param dumpName The dumpName to set.
134: */
135: public void setDumpName(String dumpName) {
136: this .dumpName = dumpName;
137: }
138:
139: /**
140: * Returns the dumpPath value.
141: *
142: * @return Returns the dumpPath.
143: */
144: public String getDumpPath() {
145: return dumpPath;
146: }
147:
148: /**
149: * Sets the dumpPath value.
150: *
151: * @param dumpPath The dumpPath to set.
152: */
153: public void setDumpPath(String dumpPath) {
154: this .dumpPath = dumpPath;
155: }
156:
157: /**
158: * Returns the dumpFormat value.
159: *
160: * @return Returns the dumpFormat.
161: */
162: public String getDumpFormat() {
163: return dumpFormat;
164: }
165:
166: /**
167: * Sets the dumpFormat value.
168: *
169: * @param dumpFormat The dumpFormat to set.
170: */
171: public void setDumpFormat(String dumpFormat) {
172: this .dumpFormat = dumpFormat;
173: }
174:
175: /**
176: * Returns the tables value.
177: *
178: * @return Returns the tables.
179: */
180: public String getTables() {
181: return tables;
182: }
183:
184: /**
185: * Sets the tables value.
186: *
187: * @param tables The tables to set.
188: */
189: public void setTables(String tables) {
190: this.tables = tables;
191: }
192:
193: }
|