Public Member Functions | |
Bind (AbstractConsoleModule module) | |
void | parse (String commandText) throws Exception |
String | getCommandName () |
String | getCommandDescription () |
Definition at line 38 of file Bind.java.
|
Creates a new
Definition at line 46 of file Bind.java. 00047 { 00048 super(module); 00049 }
|
|
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 }
|
|
Implements org.objectweb.cjdbc.console.text.commands.ConsoleCommand. Definition at line 82 of file Bind.java. 00083 { 00084 return "bind"; 00085 }
|
|
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 }
|