クラス org.objectweb.cjdbc.console.text.commands.dbadmin.Enable

org.objectweb.cjdbc.console.text.commands.dbadmin.Enableに対する継承グラフ

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

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

説明

This class defines a Enable

作者:
Nicolas Modrzyk
バージョン:
1.0

Enable.java40 行で定義されています。

Public メソッド

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


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

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

Creates a new Enable.java object

引数:
module the command is attached to
Enable.java48 行で定義されています。
00049 { 00050 super(module); 00051 }


メソッド

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

参照:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandDescription()

org.objectweb.cjdbc.console.text.commands.ConsoleCommandを実装しています.

Enable.java101 行で定義されています。

00102 { 00103 return ConsoleTranslate.get("admin.command.enable"); 00104 }

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

参照:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandName()

org.objectweb.cjdbc.console.text.commands.ConsoleCommandを実装しています.

Enable.java92 行で定義されています。

00093 { 00094 00095 return "enable"; 00096 }

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

参照:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.getCommandParameters()

org.objectweb.cjdbc.console.text.commands.ConsoleCommandを再定義しています。

Enable.java109 行で定義されています。

00110 { 00111 return "<backend> [<checkpoint>]"; 00112 }

void org.objectweb.cjdbc.console.text.commands.dbadmin.Enable.parse String  commandText  )  throws Exception [virtual]
 

参照:
org.objectweb.cjdbc.console.text.commands.ConsoleCommand.parse(java.lang.String)

org.objectweb.cjdbc.console.text.commands.ConsoleCommandを実装しています.

Enable.java56 行で定義されています。

参照先 org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.enableBackend(), org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.enableBackendFromCheckpoint(), org.objectweb.cjdbc.console.jmx.RmiJmxClient.getVirtualDatabaseProxy(), と org.objectweb.cjdbc.console.text.Console.println().

00057 { 00058 String checkpoint = null; 00059 String backendName = null; 00060 StringTokenizer st = new StringTokenizer(commandText.trim()); 00061 00062 try 00063 { 00064 backendName = st.nextToken(); 00065 } 00066 catch (Exception e) 00067 { 00068 throw new ConsoleException("admin.command.enable.need.backend"); 00069 } 00070 if (st.hasMoreTokens()) 00071 checkpoint = st.nextToken(); 00072 VirtualDatabaseMBean vdjc = jmxClient.getVirtualDatabaseProxy(dbName, user, 00073 password); 00074 if (checkpoint == null) 00075 { 00076 console.println(ConsoleTranslate.get( 00077 "admin.command.enable.no.checkpoint", backendName)); 00078 vdjc.enableBackend(backendName); 00079 } 00080 else 00081 { 00082 console.println(ConsoleTranslate.get( 00083 "admin.command.enable.with.checkpoint", new String[]{backendName, 00084 checkpoint})); 00085 vdjc.enableBackendFromCheckpoint(backendName, checkpoint); 00086 } 00087 }


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