クラス org.objectweb.cjdbc.console.text.module.MonitorConsole

org.objectweb.cjdbc.console.text.module.MonitorConsoleに対する継承グラフ

Inheritance graph
[凡例]
org.objectweb.cjdbc.console.text.module.MonitorConsoleのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

説明

Monitoring console to retrieve information from the controller.

作者:
Nicolas Modrzyk

Mathieu Peltier

MonitorConsole.java48 行で定義されています。

Public メソッド

String getCurrentTarget ()
void setCurrentTarget (String currentTarget)
 MonitorConsole (Console console)
String getDescriptionString ()
String getPromptString ()
void login (String[] params)

Protected メソッド

void loadCommands ()

Private 変数

String currentTarget


コンストラクタとデストラクタ

org.objectweb.cjdbc.console.text.module.MonitorConsole.MonitorConsole Console  console  ) 
 

Creates a new VirtualDatabaseAdmin instance.

引数:
console console console
MonitorConsole.java88 行で定義されています。
00089 { 00090 super(console); 00091 }


メソッド

String org.objectweb.cjdbc.console.text.module.MonitorConsole.getCurrentTarget  ) 
 

Returns the currentTarget value.

戻り値:
Returns the currentTarget.
MonitorConsole.java58 行で定義されています。

参照先 org.objectweb.cjdbc.console.text.module.MonitorConsole.currentTarget.

00059 { 00060 return currentTarget; 00061 }

String org.objectweb.cjdbc.console.text.module.MonitorConsole.getDescriptionString  )  [virtual]
 

参照:
org.objectweb.cjdbc.console.text.module.AbstractConsoleModule.getDescriptionString()

org.objectweb.cjdbc.console.text.module.AbstractConsoleModuleを実装しています.

MonitorConsole.java96 行で定義されています。

00097 { 00098 return "Monitoring"; 00099 }

String org.objectweb.cjdbc.console.text.module.MonitorConsole.getPromptString  )  [virtual]
 

参照:
org.objectweb.cjdbc.console.text.module.AbstractConsoleModule.getPromptString()

org.objectweb.cjdbc.console.text.module.AbstractConsoleModuleを実装しています.

MonitorConsole.java104 行で定義されています。

参照先 org.objectweb.cjdbc.console.text.module.MonitorConsole.currentTarget.

00105 { 00106 return "Monitoring:" + currentTarget; 00107 }

void org.objectweb.cjdbc.console.text.module.MonitorConsole.loadCommands  )  [protected, virtual]
 

参照:
org.objectweb.cjdbc.console.text.module.AbstractConsoleModule.loadCommands()

org.objectweb.cjdbc.console.text.module.AbstractConsoleModuleを実装しています.

MonitorConsole.java112 行で定義されています。

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 }

void org.objectweb.cjdbc.console.text.module.MonitorConsole.login String[]  params  )  [virtual]
 

参照:
org.objectweb.cjdbc.console.text.module.AbstractConsoleModule.login(java.lang.String[])

org.objectweb.cjdbc.console.text.module.AbstractConsoleModuleを実装しています.

MonitorConsole.java128 行で定義されています。

参照先 org.objectweb.cjdbc.console.text.Console.printError().

参照元 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 } 00141 } 00142 else 00143 { 00144 console.printError(ConsoleTranslate.get("module.database.invalid", "")); 00145 quit = true; 00146 } 00147 }

void org.objectweb.cjdbc.console.text.module.MonitorConsole.setCurrentTarget String  currentTarget  ) 
 

Sets the currentTarget value.

引数:
currentTarget The currentTarget to set.
MonitorConsole.java68 行で定義されています。

参照元 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 }


変数

String org.objectweb.cjdbc.console.text.module.MonitorConsole.currentTarget [private]
 

MonitorConsole.java51 行で定義されています。

参照元 org.objectweb.cjdbc.console.text.module.MonitorConsole.getCurrentTarget(), と org.objectweb.cjdbc.console.text.module.MonitorConsole.getPromptString().


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0.4に対してTue Oct 12 15:16:33 2004に生成されました。 doxygen 1.3.8