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

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

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

This class defines a Report

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 41 of file Report.java.


Constructor & Destructor Documentation

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

Creates a new Report.java object

Parameters:
module the command is attached to

Definition at line 49 of file Report.java.

00050   {
00051     super(module);
00052   }


Member Function Documentation

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

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

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

Definition at line 86 of file Report.java.

00087   {
00088     return ConsoleTranslate.get("controller.command.generateReport");
00089   }

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

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

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

Definition at line 78 of file Report.java.

00079   {
00080     return "generateReport";
00081   }

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

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

00058   {
00059     if (commandText == null || commandText.equalsIgnoreCase(""))
00060     {
00061       // Display on std output
00062       console.println(jmxClient.getControllerProxy().generateReport());
00063     }
00064     else
00065     {
00066       // Write to file
00067       File f = new File(commandText.trim());
00068       BufferedWriter writer = new BufferedWriter(new FileWriter(f));
00069       writer.write(jmxClient.getControllerProxy().generateReport());
00070       writer.flush();
00071       writer.close();
00072     }
00073   }


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