クラス org.objectweb.cjdbc.console.jmx.ControllerJmxClient

org.objectweb.cjdbc.console.jmx.ControllerJmxClientに対する継承グラフ

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

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

説明

This class is used to connect to the CjdbcJmxAgent and contains CJDBC information

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

ControllerJmxClient.java46 行で定義されています。

Public メソッド

void connect (String host, String port, Object credentials) throws JmxException
boolean isDistributedVirtualDatabase (String databaseName) throws JmxException, MBeanException
void connect (String controllerName) throws JmxException
String getInfo () throws JmxException, MBeanException
String getXml () throws JmxException, MBeanException
String viewDatabasesXml () throws JmxException, MBeanException
String viewDatabaseXml (String databaseName) throws JmxException, MBeanException
void refreshLogConfiguration () throws JmxException, MBeanException
void addVirtualDatabase (String xmlConfig) throws JmxException, MBeanException
void addDriver (String filename) throws FileNotFoundException, IOException, JmxException, MBeanException
void addVirtualDatabases (String xml, String virtualName, boolean autoEnable, String checkPoint) throws JmxException, MBeanException
void addVirtualDatabases (String xml) throws JmxException, MBeanException
ArrayList listVirtualDatabases () throws JmxException, MBeanException
ArrayList listBackends (String virtualDbName) throws JmxException, MBeanException
String loadXML (String filename) throws IOException, JmxException, MBeanException
String loadXmlConfiguration (String filename, String virtualName, boolean autoEnable, String checkPoint) throws Exception
String removeVirtualDatabase (String virtualname) throws Exception
String saveConfiguration () throws Exception
void shutdown (int level) throws Exception
void shutdownDatabase (String databaseName, int level) throws JmxException, MBeanException
String generateReport () throws JmxException, MBeanException
String generateLogReport () throws JmxException, MBeanException
ArrayList listDatabaseClients (String virtualDbName) throws JmxException, MBeanException
boolean isCacheEnableForDatabase (String virtualDbName) throws JmxException, MBeanException
File[] listAvailableDumpFiles () throws JmxException, MBeanException
boolean removeDumpFile (File dumpFile) throws JmxException, MBeanException
String viewLogConfigurationFile () throws JmxException, MBeanException
void updateLogConfigurationFile (String newConfiguration) throws JmxException, MBeanException

Private メソッド

void addDriver (byte[] bytes) throws JmxException, MBeanException


メソッド

void org.objectweb.cjdbc.console.jmx.ControllerJmxClient.addDriver String  filename  )  throws FileNotFoundException, IOException, JmxException, MBeanException
 

Add a driver given its filename

引数:
filename the path to the library to add
例外:
FileNotFoundException if path to file is invalid
IOException if reading of file fails
JmxException if jmx reports an error
MBeanException if the call on the controller failed
ControllerJmxClient.java186 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.ControllerJmxClient.addDriver().

00188 { 00189 File file; 00190 FileInputStream fileInput = null; 00191 file = new File(filename); 00192 fileInput = new FileInputStream(file); 00193 00194 // Read the file into an array of bytes 00195 long size = file.length(); 00196 if (size > Integer.MAX_VALUE) 00197 { 00198 // File is too large 00199 throw new IOException("File is too large"); 00200 } 00201 byte[] bytes = new byte[(int) size]; 00202 00203 int nb = fileInput.read(bytes); 00204 fileInput.close(); 00205 if (nb != size) 00206 { 00207 throw new IOException("Failed to read the file"); 00208 } 00209 addDriver(bytes); 00210 }

void org.objectweb.cjdbc.console.jmx.ControllerJmxClient.addDriver byte[]  bytes  )  throws JmxException, MBeanException [private]
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.addDriver(java.lang.String)
ControllerJmxClient.java172 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

参照元 org.objectweb.cjdbc.console.jmx.ControllerJmxClient.addDriver().

00173 { 00174 invoke("addDriver", new Object[]{bytes}, new String[]{"[B"}); 00175 }

void org.objectweb.cjdbc.console.jmx.ControllerJmxClient.addVirtualDatabase String  xmlConfig  )  throws JmxException, MBeanException
 

Sends a XML configuration file to the controller.

引数:
xmlConfig the configuration of the virtualDatabase in xml fornat wrapped in a string
例外:
JmxException if jmx reports an error
MBeanException if the call on the controller failed
ControllerJmxClient.java162 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

00164 { 00165 invoke("addVirtualDatabases", new Object[]{xmlConfig}, 00166 new String[]{"java.lang.String"}); 00167 }

void org.objectweb.cjdbc.console.jmx.ControllerJmxClient.addVirtualDatabases String  xml  )  throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.addVirtualDatabases(java.lang.String)
ControllerJmxClient.java227 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

00229 { 00230 invoke("addVirtualDatabases", new Object[]{xml}, 00231 new String[]{"java.lang.String"}); 00232 }

void org.objectweb.cjdbc.console.jmx.ControllerJmxClient.addVirtualDatabases String  xml,
String  virtualName,
boolean  autoEnable,
String  checkPoint
throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.addVirtualDatabases(java.lang.String, java.lang.String, boolean, java.lang.String)
ControllerJmxClient.java216 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

00219 { 00220 00221 invoke("addVirtualDatabase", new Object[]{xml, virtualName, 00222 new Boolean(autoEnable), checkPoint}, new String[]{"java.lang.String", 00223 "java.lang.String", "boolean", "java.lang.String"}); 00224 }

void org.objectweb.cjdbc.console.jmx.ControllerJmxClient.connect String  controllerName  )  throws JmxException
 

Connects to the controller given its jmx name

参照:
org.objectweb.cjdbc.console.jmx.JmxClient.connect
ControllerJmxClient.java80 行で定義されています。
00081 { 00082 int index = controllerName.indexOf(":"); 00083 String ip = controllerName.substring(0, index); 00084 String port = controllerName.substring(index + 1); 00085 this.connect(ip, port, credentials); 00086 }

void org.objectweb.cjdbc.console.jmx.ControllerJmxClient.connect String  host,
String  port,
Object  credentials
throws JmxException
 

参照:
org.objectweb.cjdbc.console.jmx.JmxClient.connect

org.objectweb.cjdbc.console.jmx.JmxClientを再定義しています。

ControllerJmxClient.java52 行で定義されています。

00054 { 00055 mbean = JmxConstants.getControllerObjectName(); 00056 super.connect(host, port, credentials); 00057 // validate MBean 00058 if (!this.validateTarget()) 00059 { 00060 throw new JmxException("Invalid MBean target"); 00061 } 00062 }

String org.objectweb.cjdbc.console.jmx.ControllerJmxClient.generateLogReport  )  throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.generateLogReport
ControllerJmxClient.java332 行で定義されています。
00333 { 00334 return (String) invoke("generateLogReport", null, null); 00335 }

String org.objectweb.cjdbc.console.jmx.ControllerJmxClient.generateReport  )  throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.generateReport
ControllerJmxClient.java324 行で定義されています。
00325 { 00326 return (String) invoke("generateReport", null, null); 00327 }

String org.objectweb.cjdbc.console.jmx.ControllerJmxClient.getInfo  )  throws JmxException, MBeanException
 

Gets information from the C-JDBC controller.

戻り値:
the info of the controller
例外:
JmxException if jmx reports an error
MBeanException if the call on the controller failed
ControllerJmxClient.java95 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

00096 { 00097 StringBuffer info = new StringBuffer(); 00098 info.append((String) (invoke("viewConfiguration", null))); 00099 info.append((String) (invoke("viewDatabases", null))); 00100 return info.toString(); 00101 }

String org.objectweb.cjdbc.console.jmx.ControllerJmxClient.getXml  )  throws JmxException, MBeanException
 

Gets information from the C-JDBC controller.

戻り値:
the info of the controller
例外:
JmxException if jmx reports an error
MBeanException if the call on the controller failed
ControllerJmxClient.java110 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

00111 { 00112 return (String) (invoke("viewInfo", null, null)); 00113 }

boolean org.objectweb.cjdbc.console.jmx.ControllerJmxClient.isCacheEnableForDatabase String  virtualDbName  )  throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.isCacheEnableForDatabase(java.lang.String)
ControllerJmxClient.java350 行で定義されています。
00352 { 00353 return ((Boolean) invoke("isCacheEnableForDatabase", 00354 new Object[]{virtualDbName}, new String[]{"java.lang.String"})) 00355 .booleanValue(); 00356 }

boolean org.objectweb.cjdbc.console.jmx.ControllerJmxClient.isDistributedVirtualDatabase String  databaseName  )  throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.isDistributedVirtualDatabase(java.lang.String)
ControllerJmxClient.java67 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

00069 { 00070 return ((Boolean) invoke("isDistributedVirtualDatabase", 00071 new Object[]{databaseName}, new String[]{"java.lang.String"})) 00072 .booleanValue(); 00073 }

File [] org.objectweb.cjdbc.console.jmx.ControllerJmxClient.listAvailableDumpFiles  )  throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.listAvailableDumpFiles()
ControllerJmxClient.java361 行で定義されています。
00362 { 00363 return (File[]) invoke("listAvailableDumpFiles", null, null); 00364 }

ArrayList org.objectweb.cjdbc.console.jmx.ControllerJmxClient.listBackends String  virtualDbName  )  throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.listBackends(java.lang.String)
ControllerJmxClient.java245 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

00247 { 00248 return (ArrayList) invoke("listBackends", new Object[]{virtualDbName}, 00249 new String[]{"java.lang.String"}); 00250 }

ArrayList org.objectweb.cjdbc.console.jmx.ControllerJmxClient.listDatabaseClients String  virtualDbName  )  throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.listDatabaseClients(java.lang.String)
ControllerJmxClient.java340 行で定義されています。
00342 { 00343 return (ArrayList) invoke("listDatabaseClients", 00344 new Object[]{virtualDbName}, new String[]{"java.lang.String"}); 00345 }

ArrayList org.objectweb.cjdbc.console.jmx.ControllerJmxClient.listVirtualDatabases  )  throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.listVirtualDatabases()
ControllerJmxClient.java237 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

00238 { 00239 return (ArrayList) invoke("listVirtualDatabases", null, null); 00240 }

String org.objectweb.cjdbc.console.jmx.ControllerJmxClient.loadXML String  filename  )  throws IOException, JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.loadXML(java.lang.String)
ControllerJmxClient.java255 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

00257 { 00258 FileInputStream fis = new FileInputStream(filename); 00259 DataInputStream dis = new DataInputStream(fis); 00260 StringBuffer sb = new StringBuffer(); 00261 String concat = ""; 00262 while ((concat = DataInputStream.readUTF(dis)) != null) 00263 sb.append(concat); 00264 return (String) invoke("loadXML", new Object[]{sb.toString()}, 00265 new String[]{"java.lang.String"}); 00266 }

String org.objectweb.cjdbc.console.jmx.ControllerJmxClient.loadXmlConfiguration String  filename,
String  virtualName,
boolean  autoEnable,
String  checkPoint
throws Exception
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.loadXmlConfiguration(java.lang.String, java.lang.String, boolean, java.lang.String)
ControllerJmxClient.java272 行で定義されています。
00274 { 00275 FileInputStream fis = new FileInputStream(filename); 00276 DataInputStream dis = new DataInputStream(fis); 00277 StringBuffer sb = new StringBuffer(); 00278 String concat = ""; 00279 while ((concat = DataInputStream.readUTF(dis)) != null) 00280 sb.append(concat); 00281 return (String) invoke("loadXML", new Object[]{sb.toString(), virtualName, 00282 new Boolean(autoEnable), checkPoint}, new String[]{"java.lang.String", 00283 "java.lang.String", "boolean", "java.lang.String"}); 00284 }

void org.objectweb.cjdbc.console.jmx.ControllerJmxClient.refreshLogConfiguration  )  throws JmxException, MBeanException
 

Forces logging system configuration refresh.

例外:
JmxException if jmx reports an error
MBeanException if the call on the controller failed
ControllerJmxClient.java148 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

00149 { 00150 invoke("refreshLogConfiguration", null, null); 00151 00152 }

boolean org.objectweb.cjdbc.console.jmx.ControllerJmxClient.removeDumpFile File  dumpFile  )  throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.removeDumpFile(java.io.File)
ControllerJmxClient.java369 行で定義されています。
00371 { 00372 return ((Boolean) invoke("removeDumpFile", new Object[]{dumpFile}, 00373 new String[]{"java.io.File"})).booleanValue(); 00374 }

String org.objectweb.cjdbc.console.jmx.ControllerJmxClient.removeVirtualDatabase String  virtualname  )  throws Exception
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.removeVirtualDatabase(java.lang.String)
ControllerJmxClient.java289 行で定義されています。
00290 { 00291 return (String) invoke("removeVirtualDatabase", new Object[]{virtualname}, 00292 new String[]{"java.lang.String"}); 00293 }

String org.objectweb.cjdbc.console.jmx.ControllerJmxClient.saveConfiguration  )  throws Exception
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.saveConfiguration()
ControllerJmxClient.java298 行で定義されています。
00299 { 00300 return (String) server.invoke(mbean, "saveConfiguration", null, null); 00301 }

void org.objectweb.cjdbc.console.jmx.ControllerJmxClient.shutdown int  level  )  throws Exception
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.shutdown
ControllerJmxClient.java306 行で定義されています。
00307 { 00308 invoke("shutdown", new Object[]{new Integer(level)}, new String[]{"int"}); 00309 }

void org.objectweb.cjdbc.console.jmx.ControllerJmxClient.shutdownDatabase String  databaseName,
int  level
throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.shutdownDatabase
ControllerJmxClient.java314 行で定義されています。
00316 { 00317 invoke("shutdownDatabase", new Object[]{databaseName, new Integer(level)}, 00318 new String[]{"java.lang.String", "int"}); 00319 }

void org.objectweb.cjdbc.console.jmx.ControllerJmxClient.updateLogConfigurationFile String  newConfiguration  )  throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.updateLogConfigurationFile(java.lang.String)
ControllerJmxClient.java387 行で定義されています。
00389 { 00390 invoke("updateLogConfigurationFile", new Object[]{newConfiguration}, 00391 new String[]{"java.lang.String"}); 00392 00393 }

String org.objectweb.cjdbc.console.jmx.ControllerJmxClient.viewDatabasesXml  )  throws JmxException, MBeanException
 

Gets xml information about the databases

戻り値:
the info of the databases in xml format
例外:
JmxException if jmx reports an error
MBeanException if the call on the controller failed
ControllerJmxClient.java122 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

00123 { 00124 return (String) (invoke("viewDatabasesXml", null, null)); 00125 }

String org.objectweb.cjdbc.console.jmx.ControllerJmxClient.viewDatabaseXml String  databaseName  )  throws JmxException, MBeanException
 

Gets xml information about the databases

引数:
databaseName name of the database
戻り値:
the info of the databases in xml format
例外:
JmxException if jmx reports an error
MBeanException if the call on the controller failed
ControllerJmxClient.java135 行で定義されています。

参照先 org.objectweb.cjdbc.console.jmx.JmxClient.invoke().

00137 { 00138 return (String) (invoke("viewDatabaseXml", new Object[]{databaseName}, 00139 new String[]{"java.lang.String"})); 00140 }

String org.objectweb.cjdbc.console.jmx.ControllerJmxClient.viewLogConfigurationFile  )  throws JmxException, MBeanException
 

参照:
org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.viewLogConfigurationFile()
ControllerJmxClient.java379 行で定義されています。
00380 { 00381 return (String) invoke("viewLogConfigurationFile", null, null); 00382 }


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