KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > continuent > sequoia > controller > virtualdatabase > management > TransferBackendOperation


1 /**
2  * Sequoia: Database clustering technology.
3  * Copyright (C) 2006 Continuent, Inc.
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.controller.virtualdatabase.management;
23
24 import org.continuent.sequoia.common.exceptions.NotImplementedException;
25
26 /**
27  * This class defines a TransferBackendOperation
28  *
29  * @author <a HREF="mailto:emmanuel.cecchet@continuent.com">Emmanuel Cecchet</a>
30  * @version 1.0
31  */

32 public class TransferBackendOperation extends AbstractAdminOperation
33 {
34   private String JavaDoc backendName;
35   private String JavaDoc controllerDestination;
36
37   /**
38    * Creates a new <code>TransferBackendOperation</code> object
39    *
40    * @param backendName name of the backend being transferred
41    * @param controllerDestination controller the backend is being transferred to
42    */

43   public TransferBackendOperation(String JavaDoc backendName,
44       String JavaDoc controllerDestination)
45   {
46     this.backendName = backendName;
47     this.controllerDestination = controllerDestination;
48   }
49
50   /**
51    * {@inheritDoc}
52    *
53    * @see org.continuent.sequoia.controller.virtualdatabase.management.AbstractAdminOperation#cancel()
54    */

55   public void cancel() throws NotImplementedException
56   {
57     throw new NotImplementedException(
58         "Cancel operation is not implemented for TransferBackendOperation");
59   }
60
61   /**
62    * {@inheritDoc}
63    *
64    * @see org.continuent.sequoia.controller.virtualdatabase.management.AbstractAdminOperation#getDescription()
65    */

66   public String JavaDoc getDescription()
67   {
68     return "Transferring backend " + backendName + " to controller"
69         + controllerDestination;
70   }
71
72 }
73
Popular Tags