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

org.objectweb.cjdbc.console.text.commands.controller.ListDatabases Class Reference

Inheritance diagram for org.objectweb.cjdbc.console.text.commands.controller.ListDatabases:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ListDatabases (AbstractConsoleModule module)
void parse (String commandText) throws Exception
String getCommandName ()
String getCommandDescription ()

Detailed Description

This class defines a ListDatabases

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 40 of file ListDatabases.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.console.text.commands.controller.ListDatabases.ListDatabases AbstractConsoleModule  module  ) 
 

Creates a new ListDatabases.java object

Parameters:
module the command is attached to

Definition at line 48 of file ListDatabases.java.

00049   {
00050     super(module);
00051   }


Member Function Documentation

String org.objectweb.cjdbc.console.text.commands.controller.ListDatabases.getCommandDescription  )  [virtual]
 

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

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

Definition at line 82 of file ListDatabases.java.

00083   {
00084     return ConsoleTranslate.get("controller.command.listDatabases");
00085   }

String org.objectweb.cjdbc.console.text.commands.controller.ListDatabases.getCommandName  )  [virtual]
 

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

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

Definition at line 74 of file ListDatabases.java.

00075   {
00076     return "listDatabases";
00077   }

void org.objectweb.cjdbc.console.text.commands.controller.ListDatabases.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 56 of file ListDatabases.java.

References org.objectweb.cjdbc.console.jmx.RmiJmxClient.getControllerProxy(), and org.objectweb.cjdbc.console.text.Console.println().

00057   {
00058     try
00059     {
00060       ArrayList list = jmxClient.getControllerProxy().getVirtualDatabaseNames();
00061       for (int i = 0; i < list.size(); i++)
00062         console.println((String) list.get(i));
00063     }
00064     catch (Exception e)
00065     {
00066       throw new ConsoleException(ConsoleTranslate.get(
00067           "controller.command.listDatabases.failed", e));
00068     }
00069   }


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