org.objectweb.cjdbc.console.text.commands.dbadmin
Class ExpertMode
java.lang.Object
org.objectweb.cjdbc.console.text.commands.ConsoleCommand
org.objectweb.cjdbc.console.text.commands.dbadmin.AbstractAdminCommand
org.objectweb.cjdbc.console.text.commands.dbadmin.ExpertMode
- All Implemented Interfaces:
- java.lang.Comparable
- public class ExpertMode
- extends AbstractAdminCommand
This class defines the command used to switch to expert mode
(i.e. advanced admin commands are available).
- Version:
- 1.0
- Author:
- Jeff Mesnil
Field Summary |
private static java.lang.String |
OFF
|
private static java.lang.String |
ON
|
Method Summary |
java.lang.String |
getCommandDescription()
Get the description of the command |
java.lang.String |
getCommandName()
Get the name of the command |
java.lang.String |
getCommandParameters()
Return a String description of the parameters of this
command. |
void |
parse(java.lang.String commandText)
Parse the text of the command |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ON
private static final java.lang.String ON
- See Also:
- Constant Field Values
OFF
private static final java.lang.String OFF
- See Also:
- Constant Field Values
ExpertMode
public ExpertMode(VirtualDatabaseAdmin module)
- Creates a new
ExpertMode
object
- Parameters:
module
- module that owns this commands
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()
getCommandParameters
public java.lang.String getCommandParameters()
- Description copied from class:
ConsoleCommand
- Return a
String
description of the parameters of this
command.
- Overrides:
getCommandParameters
in class ConsoleCommand
- Returns:
String
like <driverPathName>- See Also:
ConsoleCommand.getCommandParameters()
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.