Public Member Functions | |
String | getCommandParameters () |
Backup (VirtualDatabaseAdmin module) | |
void | parse (String commandText) throws Exception |
String | getCommandName () |
String | getCommandDescription () |
Definition at line 44 of file Backup.java.
|
Creates a new
Definition at line 60 of file Backup.java. 00061 { 00062 super(module); 00063 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 107 of file Backup.java. 00108 { 00109 return ConsoleTranslate.get("admin.command.backup"); 00110 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 99 of file Backup.java. 00100 { 00101 return "backup"; 00102 }
|
|
Reimplemented from org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 50 of file Backup.java. 00051 { 00052 return "<backendName> <dumpName> [<tables>]"; 00053 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 68 of file Backup.java. References org.objectweb.cjdbc.console.text.Console.println(). 00069 { 00070 StringTokenizer sb = new StringTokenizer(commandText.trim()); 00071 00072 if (sb == null || sb.countTokens() < 2) 00073 throw new ConsoleException(ConsoleTranslate 00074 .get("admin.command.backup.wrong.parameters")); 00075 String backendName = sb.nextToken(); 00076 String checkpointName = sb.nextToken(); 00077 ArrayList tables = null; 00078 if (sb.hasMoreTokens()) 00079 { 00080 tables = new ArrayList(); 00081 while (sb.hasMoreTokens()) 00082 { 00083 tables.add(sb.nextToken()); 00084 } 00085 } 00086 console.println(ConsoleTranslate.get("admin.command.backup.echo", 00087 new String[]{backendName, checkpointName})); 00088 if (tables != null) 00089 console.println(ConsoleTranslate.get("admin.command.backup.tables", 00090 tables)); 00091 VirtualDatabaseMBean vdjc = jmxClient.getVirtualDatabaseProxy(dbName, user, 00092 password); 00093 vdjc.backupBackendWithCheckpoint(backendName, checkpointName, tables); 00094 }
|