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 RestoreLogOperation that resynchronize a remote
26: * controller recovery log.
27: *
28: * @author <a href="mailto:emmanuel.cecchet@continuent.com">Emmanuel Cecchet</a>
29: * @version 1.0
30: */
31: public class RestoreLogOperation extends AbstractAdminOperation {
32: private String dumpName;
33: private String controllerDestination;
34:
35: /**
36: * Creates a new <code>RestoreLogOperation</code> object
37: *
38: * @param dumpName the name of the dump used for resync
39: * @param remoteControllerName name of the destination controller
40: */
41: public RestoreLogOperation(String dumpName,
42: String remoteControllerName) {
43: this .dumpName = dumpName;
44: this .controllerDestination = remoteControllerName;
45: }
46:
47: /**
48: * {@inheritDoc}
49: *
50: * @see org.continuent.sequoia.controller.virtualdatabase.management.AbstractAdminOperation#cancel()
51: */
52: public void cancel() throws NotImplementedException {
53: throw new NotImplementedException(
54: "Cancel operation is not implemented for RestoreLogOperation");
55: }
56:
57: /**
58: * {@inheritDoc}
59: *
60: * @see org.continuent.sequoia.controller.virtualdatabase.management.AbstractAdminOperation#getDescription()
61: */
62: public String getDescription() {
63: return "Resynchonizing recovery log from " + dumpName
64: + " on controller" + controllerDestination;
65: }
66:
67: }
|