Public Member Functions | |
String | getCurrentTarget () |
void | setCurrentTarget (String currentTarget) |
MonitorConsole (Console console) | |
String | getDescriptionString () |
String | getPromptString () |
void | login (String[] params) |
Protected Member Functions | |
void | loadCommands () |
Definition at line 48 of file MonitorConsole.java.
|
Creates a new
Definition at line 88 of file MonitorConsole.java. 00089 { 00090 super(console); 00091 }
|
|
Returns the currentTarget value.
Definition at line 58 of file MonitorConsole.java. 00059 {
00060 return currentTarget;
00061 }
|
|
Implements org.objectweb.cjdbc.console.text.module.AbstractConsoleModule. Definition at line 96 of file MonitorConsole.java. 00097 { 00098 return "Monitoring"; 00099 }
|
|
Implements org.objectweb.cjdbc.console.text.module.AbstractConsoleModule. Definition at line 104 of file MonitorConsole.java. 00105 { 00106 return "Monitoring:" + currentTarget; 00107 }
|
|
Implements org.objectweb.cjdbc.console.text.module.AbstractConsoleModule. Definition at line 112 of file MonitorConsole.java. 00113 { 00114 commands.add(new ChangeTarget(this)); 00115 commands.add(new ShowBackends(this)); 00116 commands.add(new ShowCache(this)); 00117 commands.add(new ShowCacheStats(this)); 00118 commands.add(new ShowController(this)); 00119 commands.add(new ShowDatabases(this)); 00120 commands.add(new ShowScheduler(this)); 00121 commands.add(new ShowStats(this)); 00122 commands.add(new ShowRecoveryLog(this)); 00123 }
|
|
Implements org.objectweb.cjdbc.console.text.module.AbstractConsoleModule. Definition at line 128 of file MonitorConsole.java. References org.objectweb.cjdbc.console.text.Console.printError(). Referenced by org.objectweb.cjdbc.console.text.commands.controller.Monitor.parse(). 00129 { 00130 String command = (params.length > 0 && params[0] != null) ? params[0] : ""; 00131 if (command.equals("") == false) 00132 { 00133 try 00134 { 00135 new ChangeTarget(this).execute(params[0]); 00136 } 00137 catch (Exception e) 00138 { 00139 console.printError(e.getMessage(), e); 00140 quit = true; 00141 } 00142 } 00143 else 00144 { 00145 console.printError(ConsoleTranslate.get("module.database.invalid", "")); 00146 quit = true; 00147 } 00148 }
|
|
Sets the currentTarget value.
Definition at line 68 of file MonitorConsole.java. Referenced by org.objectweb.cjdbc.console.text.commands.monitor.ChangeTarget.parse(). 00069 { 00070 this.currentTarget = currentTarget; 00071 Object o; 00072 Iterator it = commands.iterator(); 00073 while (it.hasNext()) 00074 { 00075 o = it.next(); 00076 if (o instanceof AbstractMonitorCommand) 00077 { 00078 ((AbstractMonitorCommand) o).setCurrentTarget(currentTarget); 00079 } 00080 } 00081 }
|