org.objectweb.cjdbc.controller.jmx
Class VirtualDatabaseJmxClient
java.lang.Object
org.objectweb.cjdbc.controller.jmx.JmxClient
org.objectweb.cjdbc.controller.jmx.VirtualDatabaseJmxClient
- public class VirtualDatabaseJmxClient
- extends JmxClient
This class is used to connect to the CjdbcJmxAgent and contains CJDBC
information
- Version:
- 1.0
- Author:
- Nicolas Modrzyk
Field Summary |
static boolean |
DEBUG
Development variable to check JMX calls |
private java.lang.String |
password
|
private java.lang.String |
username
|
private javax.management.ObjectName |
virtualDb
|
private java.lang.String |
virtualDbName
|
Constructor Summary |
VirtualDatabaseJmxClient(java.lang.String name,
java.lang.String username,
java.lang.String password,
java.lang.String host,
java.lang.String port)
Creates VirtualDatabaseManagement tool. |
Methods inherited from class org.objectweb.cjdbc.controller.jmx.JmxClient |
connect |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
- Development variable to check JMX calls
- See Also:
- Constant Field Values
virtualDb
private javax.management.ObjectName virtualDb
virtualDbName
private java.lang.String virtualDbName
username
private java.lang.String username
password
private java.lang.String password
VirtualDatabaseJmxClient
public VirtualDatabaseJmxClient(java.lang.String name,
java.lang.String username,
java.lang.String password,
java.lang.String host,
java.lang.String port)
throws JmxException
- Creates VirtualDatabaseManagement tool.
- Parameters:
name
- of vitual databaseusername
- of adminpassword
- of adminhost
- jmx hostport
- jmx port
- Throws:
JmxException
- if fails to authenticate or to connect to MBean.
connect
private void connect(java.lang.String name,
java.lang.String username,
java.lang.String password)
throws JmxException
- Get connection to virtual database if authentication is valid
- Parameters:
name
- the name of the virtual databases to administrateusername
- authentication of user namepassword
- authentication of user password
- Throws:
JmxException
- if fails
getBackendInformation
public java.lang.String getBackendInformation(java.lang.String backendName)
throws JmxException
- (non-Javadoc)
- Throws:
JmxException
- See Also:
VirtualDatabaseMBean.getBackendInformation(java.lang.String)
checkAdminAuthentication
public boolean checkAdminAuthentication(java.lang.String adminLogin,
java.lang.String adminPassword)
throws JmxException
- Throws:
JmxException
- See Also:
VirtualDatabaseMBean.checkAdminAuthentication(java.lang.String,
java.lang.String)
disableBackend
public void disableBackend(java.lang.String databaseBackendName)
throws JmxException
- Throws:
JmxException
- See Also:
VirtualDatabaseMBean.disableBackend(java.lang.String)
disableBackendForCheckpoint
public void disableBackendForCheckpoint(java.lang.String databaseBackendName,
java.lang.String checkpointName)
throws JmxException
- Throws:
JmxException
- See Also:
VirtualDatabaseMBean.disableBackendForCheckpoint(java.lang.String,
java.lang.String)
enableBackend
public void enableBackend(java.lang.String databaseBackendName)
throws JmxException
- Throws:
JmxException
- See Also:
VirtualDatabaseMBean.enableBackend(java.lang.String)
enableBackendFromCheckpoint
public void enableBackendFromCheckpoint(java.lang.String databaseBackendName,
java.lang.String checkpointName)
throws JmxException
- Throws:
JmxException
- See Also:
VirtualDatabaseMBean.enableBackendFromCheckpoint(java.lang.String,
java.lang.String)
getAllBackendNames
public java.util.ArrayList getAllBackendNames()
throws JmxException
- Throws:
JmxException
- See Also:
org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabaseMBean#getAllBackendNames()
getName
public java.lang.String getName()
throws VirtualDatabaseException
- Throws:
VirtualDatabaseException
- See Also:
VirtualDatabaseMBean.getName()
enableAllBackend
public void enableAllBackend()
throws JmxException
- Throws:
JmxException
- See Also:
VirtualDatabaseMBean.enableAllBackend()
enableAllBackend
public void enableAllBackend(java.lang.String checkpoint)
throws JmxException
- Throws:
JmxException
- See Also:
VirtualDatabaseMBean.enableAllBackend(java.lang.String)
disableAllBackend
public void disableAllBackend()
throws JmxException
- Throws:
JmxException
- See Also:
VirtualDatabaseMBean.disableAllBackend()
disableAllBackendForCheckpoint
public void disableAllBackendForCheckpoint(java.lang.String checkpoint)
throws JmxException
- Throws:
JmxException
- See Also:
VirtualDatabaseMBean.disableAllBackendForCheckpoint(java.lang.String)
Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.