org.objectweb.cjdbc.console.text.module
Class MonitorConsole

java.lang.Object
  extended byorg.objectweb.cjdbc.console.text.module.AbstractConsoleModule
      extended byorg.objectweb.cjdbc.console.text.module.MonitorConsole

public class MonitorConsole
extends AbstractConsoleModule

Monitoring console to retrieve information from the controller.

Author:
Nicolas Modrzyk , Mathieu Peltier

Nested Class Summary
 
Nested classes inherited from class org.objectweb.cjdbc.console.text.module.AbstractConsoleModule
AbstractConsoleModule.CommandDelimiter
 
Field Summary
private  java.lang.String currentTarget
           
 
Fields inherited from class org.objectweb.cjdbc.console.text.module.AbstractConsoleModule
commands, console, consoleCompletor, history, quit
 
Constructor Summary
MonitorConsole(Console console)
          Creates a new VirtualDatabaseAdmin instance.
 
Method Summary
 java.lang.String getCurrentTarget()
          Returns the currentTarget value.
 java.lang.String getDescriptionString()
          Text description of this module
 java.lang.String getPromptString()
          Get the prompt string for this module
protected  void loadCommands()
          Loads the commands for this module
 void login(java.lang.String[] params)
          Handles login in this module
 void setCurrentTarget(java.lang.String currentTarget)
          Sets the currentTarget value.
 
Methods inherited from class org.objectweb.cjdbc.console.text.module.AbstractConsoleModule
findConsoleCommand, getCommands, getCompletor, getConsole, getHashCommands, getHistory, handleCommandLine, handlePrompt, help, loadCompletor, loadHistory, manageHistory, quit, reloadCompletor, storeHistory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentTarget

private java.lang.String currentTarget
Constructor Detail

MonitorConsole

public MonitorConsole(Console console)
Creates a new VirtualDatabaseAdmin instance.

Parameters:
console - console console
Method Detail

getCurrentTarget

public java.lang.String getCurrentTarget()
Returns the currentTarget value.

Returns:
Returns the currentTarget.

setCurrentTarget

public void setCurrentTarget(java.lang.String currentTarget)
Sets the currentTarget value.

Parameters:
currentTarget - The currentTarget to set.

getDescriptionString

public java.lang.String getDescriptionString()
Description copied from class: AbstractConsoleModule
Text description of this module

Specified by:
getDescriptionString in class AbstractConsoleModule
Returns:
String description to display
See Also:
AbstractConsoleModule.getDescriptionString()

getPromptString

public java.lang.String getPromptString()
Description copied from class: AbstractConsoleModule
Get the prompt string for this module

Specified by:
getPromptString in class AbstractConsoleModule
Returns:
String to place before prompt
See Also:
AbstractConsoleModule.getPromptString()

loadCommands

protected void loadCommands()
Description copied from class: AbstractConsoleModule
Loads the commands for this module

Specified by:
loadCommands in class AbstractConsoleModule
See Also:
AbstractConsoleModule.loadCommands()

login

public void login(java.lang.String[] params)
Description copied from class: AbstractConsoleModule
Handles login in this module

Specified by:
login in class AbstractConsoleModule
Parameters:
params - parameters to use to login in this module
See Also:
AbstractConsoleModule.login(java.lang.String[])


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.