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

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

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

This class defines a EnableRead

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 40 of file EnableRead.java.


Constructor & Destructor Documentation

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

Creates a new EnableRead object

Parameters:
module module that owns this commands

Definition at line 48 of file EnableRead.java.

00049   {
00050     super(module);
00051   }


Member Function Documentation

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

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

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

Definition at line 81 of file EnableRead.java.

00082   {
00083     return ConsoleTranslate.get("admin.command.enable.read");
00084   }

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

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

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

Definition at line 73 of file EnableRead.java.

00074   {
00075     return "enableRead";
00076   }

String org.objectweb.cjdbc.console.text.commands.dbadmin.EnableRead.getCommandParameters  ) 
 

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

Reimplemented from org.objectweb.cjdbc.console.text.commands.ConsoleCommand.

Definition at line 89 of file EnableRead.java.

00090   {
00091     return "<backendName>";
00092   }

void org.objectweb.cjdbc.console.text.commands.dbadmin.EnableRead.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 EnableRead.java.

References org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.enableRead(), org.objectweb.cjdbc.console.jmx.RmiJmxClient.getDatabaseBackendProxy(), and org.objectweb.cjdbc.console.text.Console.println().

00057   {
00058     StringTokenizer st = new StringTokenizer(commandText);
00059     if (st.countTokens() != 1)
00060       throw new ConsoleException(ConsoleTranslate
00061           .get("console.error.invalid.comment.argument"));
00062     String backendName = st.nextToken();
00063     console.println(ConsoleTranslate.get("admin.command.enable.read.echo",
00064         backendName));
00065     DatabaseBackendMBean mbean = jmxClient.getDatabaseBackendProxy(dbName,
00066         backendName, user, password);
00067     mbean.enableRead();
00068   }


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