|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.cjdbc.controller.console.VirtualDatabaseAdmin
This is the C-JDBC controller console virtual database administration module.
Field Summary | |
static CommandCompletorInterface |
COMPLETOR
Command completor to use. |
private ConsoleHelperInterface |
helper
Interface to the console helper. |
private VirtualDatabaseJmxClient |
vdjc
Virtual database management interface. |
Constructor Summary | |
VirtualDatabaseAdmin(ConsoleHelperInterface helper)
Creates a new VirtualDatabaseAdmin instance. |
Method Summary | |
void |
disable(java.lang.String backendName,
java.lang.String checkpointName)
Disables the specified backend with an optional checkpoint. |
void |
disableAll(java.lang.String checkpointName)
Disable all backends |
void |
enable(java.lang.String backendName,
java.lang.String checkpointName)
Enables the specified backend with an optional checkpoint. |
void |
enableAll(java.lang.String checkpointName)
Enables all backends with an optional checkpoint. |
void |
handlePrompt(java.lang.String host,
java.lang.String port,
java.lang.String vdbName)
Administrates a virtual database. |
void |
help()
Displays help message. |
void |
status()
Displays the current backend status. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final CommandCompletorInterface COMPLETOR
private VirtualDatabaseJmxClient vdjc
private ConsoleHelperInterface helper
Constructor Detail |
public VirtualDatabaseAdmin(ConsoleHelperInterface helper)
VirtualDatabaseAdmin
instance.
helper
- console helperMethod Detail |
public void help()
public void enable(java.lang.String backendName, java.lang.String checkpointName) throws JmxException
backendName
- the backend namecheckpointName
- the checkpoint name or null
if none
JmxException
- if an error occurspublic void enableAll(java.lang.String checkpointName) throws JmxException
checkpointName
- the checkpoint name or null
if none
JmxException
- if an error occurspublic void disable(java.lang.String backendName, java.lang.String checkpointName) throws JmxException
backendName
- the backend namecheckpointName
- the checkpoint name or null
if none
JmxException
- if an error occurspublic void disableAll(java.lang.String checkpointName) throws JmxException
checkpointName
- leave null if no checkpoint
JmxException
- if jmx reports an errorpublic void status() throws JmxException
JmxException
- if an error occurspublic void handlePrompt(java.lang.String host, java.lang.String port, java.lang.String vdbName)
vdbName
- virtual database name.host
- jmx hostport
- jmx port
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |