org.objectweb.cjdbc.console.text.commands.dbadmin
Class ViewBackupers

java.lang.Object
  extended byorg.objectweb.cjdbc.console.text.commands.ConsoleCommand
      extended byorg.objectweb.cjdbc.console.text.commands.dbadmin.AbstractAdminCommand
          extended byorg.objectweb.cjdbc.console.text.commands.dbadmin.ViewBackupers
All Implemented Interfaces:
java.lang.Comparable

public class ViewBackupers
extends AbstractAdminCommand

This class defines the command used to display available backupers.

Version:
1.0
Author:
Emmanuel Cecchet

Field Summary
 
Fields inherited from class org.objectweb.cjdbc.console.text.commands.dbadmin.AbstractAdminCommand
dbName, password, user
 
Fields inherited from class org.objectweb.cjdbc.console.text.commands.ConsoleCommand
console, jmxClient, module
 
Constructor Summary
ViewBackupers(VirtualDatabaseAdmin module)
          Creates a "view backupers" command for the admin module.
 
Method Summary
private static java.lang.String[][] getBackupersAsCells(java.lang.String[] backuperNames, java.lang.String[] dumpFormats)
           
private static java.lang.String[] getBackupersHeaders()
           
 java.lang.String getCommandDescription()
          Get the description of the command
 java.lang.String getCommandName()
          Get the name of the command
 void parse(java.lang.String commandText)
          Parse the text of the command
 
Methods inherited from class org.objectweb.cjdbc.console.text.commands.ConsoleCommand
compareTo, execute, getCommandParameters, getUsage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewBackupers

public ViewBackupers(VirtualDatabaseAdmin module)
Creates a "view backupers" command for the admin module.

Parameters:
module - module that owns this commands
Method Detail

parse

public void parse(java.lang.String commandText)
           throws java.lang.Exception
Description copied from class: ConsoleCommand
Parse the text of the command

Specified by:
parse in class ConsoleCommand
Parameters:
commandText - the command text
Throws:
java.lang.Exception - if connection with the mbean server is lost or command does not have the proper format
See Also:
ConsoleCommand.parse(java.lang.String)

getCommandName

public java.lang.String getCommandName()
Description copied from class: ConsoleCommand
Get the name of the command

Specified by:
getCommandName in class ConsoleCommand
Returns:
String of the command name
See Also:
ConsoleCommand.getCommandName()

getCommandDescription

public java.lang.String getCommandDescription()
Description copied from class: ConsoleCommand
Get the description of the command

Specified by:
getCommandDescription in class ConsoleCommand
Returns:
String of the command description
See Also:
ConsoleCommand.getCommandDescription()

getBackupersAsCells

private static java.lang.String[][] getBackupersAsCells(java.lang.String[] backuperNames,
                                                        java.lang.String[] dumpFormats)

getBackupersHeaders

private static java.lang.String[] getBackupersHeaders()


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.