Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.console.text.commands.dbadmin.DisableAll Class Reference

Inheritance diagram for org.objectweb.cjdbc.console.text.commands.dbadmin.DisableAll:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.console.text.commands.dbadmin.DisableAll:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DisableAll (VirtualDatabaseAdmin module)
void parse (String commandText) throws Exception
String getCommandName ()
String getCommandDescription ()

Detailed Description

This class defines a DisableAll

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 37 of file DisableAll.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.console.text.commands.dbadmin.DisableAll.DisableAll VirtualDatabaseAdmin  module  ) 
 

Creates a new DisableAll.java object

Parameters:
module the command is attached to

Definition at line 45 of file DisableAll.java.

00046   {
00047     super(module);
00048   }


Member Function Documentation

String org.objectweb.cjdbc.console.text.commands.dbadmin.DisableAll.getCommandDescription  )  [virtual]
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandDescription()

Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand.

Definition at line 84 of file DisableAll.java.

00085   {
00086     return ConsoleTranslate.get("admin.command.disableAll");
00087   }

String org.objectweb.cjdbc.console.text.commands.dbadmin.DisableAll.getCommandName  )  [virtual]
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandName()

Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand.

Definition at line 75 of file DisableAll.java.

00076   {
00077 
00078     return "disableAll";
00079   }

void org.objectweb.cjdbc.console.text.commands.dbadmin.DisableAll.parse String  commandText  )  throws Exception [virtual]
 

See also:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.parse(java.lang.String)

Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand.

Definition at line 53 of file DisableAll.java.

References org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.disableAllBackends(), org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.disableAllBackendsWithCheckpoint(), and org.objectweb.cjdbc.console.jmx.RmiJmxClient.getVirtualDatabaseProxy().

00054   {
00055     String checkpointName = null;
00056     try
00057     {
00058       checkpointName = commandText.trim();
00059     }
00060     catch (Exception e)
00061     {
00062 
00063     }
00064     VirtualDatabaseMBean vdjc = jmxClient.getVirtualDatabaseProxy(dbName, user,
00065         password);
00066     if (checkpointName == null || checkpointName.equals(""))
00067       vdjc.disableAllBackends();
00068     else
00069       vdjc.disableAllBackendsWithCheckpoint(checkpointName);
00070   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:02:53 2005 for C-JDBC by  doxygen 1.3.9.1