01: /**
02: * Sequoia: Database clustering technology.
03: * Copyright (C) 2006 Continuent, Inc.
04: * Contact: sequoia@continuent.org
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
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: */package org.continuent.sequoia.controller.virtualdatabase.management;
21:
22: import org.continuent.sequoia.common.exceptions.NotImplementedException;
23:
24: /**
25: * This class defines a TransferDumpOperation
26: *
27: * @author <a href="mailto:emmanuel.cecchet@continuent.com">Emmanuel Cecchet</a>
28: * @version 1.0
29: */
30: public class TransferDumpOperation extends AbstractAdminOperation {
31: private String dumpName;
32: private String controllerDestination;
33:
34: /**
35: * Creates a new <code>TransferDumpOperation</code> object
36: *
37: * @param dumpName the name of the transferred dump
38: * @param remoteControllerName name of the destination controller
39: */
40: public TransferDumpOperation(String dumpName,
41: String remoteControllerName) {
42: this .dumpName = dumpName;
43: this .controllerDestination = remoteControllerName;
44: }
45:
46: /**
47: * {@inheritDoc}
48: *
49: * @see org.continuent.sequoia.controller.virtualdatabase.management.AbstractAdminOperation#cancel()
50: */
51: public void cancel() throws NotImplementedException {
52: throw new NotImplementedException(
53: "Cancel operation is not implemented for TransferDumpOperation");
54: }
55:
56: /**
57: * {@inheritDoc}
58: *
59: * @see org.continuent.sequoia.controller.virtualdatabase.management.AbstractAdminOperation#getDescription()
60: */
61: public String getDescription() {
62: return "Transferring dump " + dumpName + " to controller"
63: + controllerDestination;
64: }
65:
66: }
|