KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > cjdbc > controller > virtualdatabase > protocol > BackendTransfer


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

24
25 package org.objectweb.cjdbc.controller.virtualdatabase.protocol;
26
27 import java.io.Serializable JavaDoc;
28
29 import org.objectweb.cjdbc.common.shared.BackendInfo;
30
31 /**
32  * This class defines a BackendTransfer message
33  *
34  * @author <a HREF="mailto:Nicolas.Modrzyk@inrialpes.fr">Nicolas Modrzyk </a>
35  * @version 1.0
36  */

37 public class BackendTransfer implements Serializable JavaDoc
38 {
39   private static final long serialVersionUID = 520265407391630486L;
40
41   BackendInfo info;
42   String JavaDoc controllerDest;
43   String JavaDoc checkpointName;
44
45   /**
46    * Creates a new <code>BackendTransfer</code> object
47    *
48    * @param info the info on the backend to transfer
49    * @param controllerDest the JMX name of the target controller
50    * @param checkpointName the name of the ckeckpoint from which to restore
51    */

52   public BackendTransfer(String JavaDoc controllerDest, String JavaDoc checkpointName,
53       BackendInfo info)
54   {
55     this.info = info;
56     this.controllerDest = controllerDest;
57     this.checkpointName = checkpointName;
58   }
59
60   /**
61    * Returns the controllerDest value.
62    *
63    * @return Returns the controllerDest.
64    */

65   public String JavaDoc getControllerDest()
66   {
67     return controllerDest;
68   }
69
70   /**
71    * Returns the info value.
72    *
73    * @return Returns the info.
74    */

75   public BackendInfo getInfo()
76   {
77     return info;
78   }
79
80   /**
81    * Returns the checkpointName value.
82    *
83    * @return Returns the checkpointName.
84    */

85   public String JavaDoc getCheckpointName()
86   {
87     return checkpointName;
88   }
89 }
Popular Tags