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

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

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

This class defines a Bind

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 38 of file Bind.java.


Constructor & Destructor Documentation

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

Creates a new Bind.java object

Parameters:
module the command is attached to

Definition at line 46 of file Bind.java.

00047   {
00048     super(module);
00049   }


Member Function Documentation

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

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

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

Definition at line 90 of file Bind.java.

00091   {
00092     return ConsoleTranslate.get("controller.command.bind");
00093   }

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

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

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

Definition at line 82 of file Bind.java.

00083   {
00084     return "bind";
00085   }

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

References org.objectweb.cjdbc.console.jmx.RmiJmxClient.connect(), org.objectweb.cjdbc.console.jmx.RmiJmxClient.getCredentials(), org.objectweb.cjdbc.console.text.Console.println(), and org.objectweb.cjdbc.console.text.Console.readLine().

00055   {
00056     String thost = null;
00057     try
00058     {
00059       thost = console.readLine(ConsoleTranslate
00060           .get("controller.command.bind.input.hostname"));
00061       if (thost == null)
00062         return;
00063 
00064       String port = console.readLine(ConsoleTranslate
00065           .get("controller.command.bind.input.jmxport"));
00066       if (port == null)
00067         return;
00068       jmxClient.connect(port,thost, jmxClient.getCredentials());
00069       console.println(ConsoleTranslate.get("controller.command.bind.success",
00070           thost));
00071     }
00072     catch (Exception e)
00073     {
00074       throw new ConsoleException(ConsoleTranslate.get(
00075           "controller.command.bind.failed", thost));
00076     }
00077   }


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