Java Doc for Console.java in  » Database-JDBC-Connection-Pool » sequoia-2.10.9 » org » continuent » sequoia » console » text » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database JDBC Connection Pool » sequoia 2.10.9 » org.continuent.sequoia.console.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.continuent.sequoia.console.text.Console

Console
public class Console (Code)
This is the Sequoia controller console that allows remote administration and monitoring of any Sequoia controller.
author:
   Emmanuel Cecchet
author:
   Mathieu Peltier
author:
   Nicolas Modrzyk
version:
   1.0


Field Summary
 ListcurrentLine
    
 booleanlastWasCR
    

Constructor Summary
public  Console(RmiJmxClient jmxClient, InputStream in, boolean interactive, boolean debug, boolean silent, boolean exitOnError, boolean sqlClientOnly)
     Creates a new Console instance.

Method Summary
public  voidenableMultilineStatements(boolean multilineStatementEnabled)
    
public  VirtualDatabaseAdmingetAdminModule()
     Returns the adminModule value.
public  VirtualDatabaseConsolegetConsoleModule()
     Returns the consoleModule value.
final public  ConsoleReadergetConsoleReader()
     Returns the consoleReader value.
public  ControllerConsolegetControllerModule()
     Returns the controllerModule value.
public  ListgetHistory()
    
public  RmiJmxClientgetJmxClient()
     Returns the jmxClient value.
public  voidhandlePrompt()
     Main menu prompt handling.
public  booleanisExitOnError()
     Test if the console should exit on error in non interactive mode.
public  booleanisInteractive()
     Returns the interactive value.
public  voidprint(String s)
     Prints a String on the console.
public  voidprintError(String message)
     Prints an error message.
Use this method to print error messages coming either from Sequoia controller or from the console.
public  voidprintError(String message, Exception e)
     Prints an error message (and displays the stack trace of an Exception if the debug option is active).
Use this method to print error messages coming either from Sequoia controller or from the console.
public  voidprintInfo(String message)
     Prints an info message.
Use this method to print info messages coming from the console.
public  voidprintln(String s)
     Prints a String on the console.
Use this method to print things returned by Sequoia controller.
public  voidprintln()
     Prints a new line.
public  StringreadLine(String prompt)
     Reads a line from the console.
public  StringreadPassword(String prompt)
     Read password from the console.
public  voidsetJmxClient(RmiJmxClient jmxClient)
     Sets a new JmxClient (used when console started without being connected).
public  voidsetPrintColor(boolean b)
     Should this console display color in interactive mode? Warning, colors only work on non Windows system.
public  voidsetRequestDelimiter(String delimiter)
    
public  voidstoreHistory()
    

Field Detail
currentLine
List currentLine(Code)



lastWasCR
boolean lastWasCR(Code)




Constructor Detail
Console
public Console(RmiJmxClient jmxClient, InputStream in, boolean interactive, boolean debug, boolean silent, boolean exitOnError, boolean sqlClientOnly) throws IOException(Code)
Creates a new Console instance.
Parameters:
  jmxClient - to connect to the jmxServer
Parameters:
  in - the input stream to get the command from
Parameters:
  interactive - if set to true will display prompt
Parameters:
  debug - true if debug mode should be activated.
Parameters:
  silent - true if silent mode is activated
Parameters:
  exitOnError - true if the console should exit on errorin non interactive mode.
Parameters:
  sqlClientOnly - set to true if the console shouldbehave as a sql client only
throws:
  IOException -




Method Detail
enableMultilineStatements
public void enableMultilineStatements(boolean multilineStatementEnabled)(Code)
(ugly!) pass-through setter to enable/disabled multiline statement on the VirtualDatabaseConsole from the command line options of the console
Parameters:
  multilineStatementEnabled - true if multiline stamementis enabled, false else
See Also:   VirtualDatabaseConsole.setRequestDelimiter(String)



getAdminModule
public VirtualDatabaseAdmin getAdminModule()(Code)
Returns the adminModule value. Returns the adminModule.



getConsoleModule
public VirtualDatabaseConsole getConsoleModule()(Code)
Returns the consoleModule value. Returns the consoleModule.



getConsoleReader
final public ConsoleReader getConsoleReader()(Code)
Returns the consoleReader value. Returns the consoleReader.



getControllerModule
public ControllerConsole getControllerModule()(Code)
Returns the controllerModule value. Returns the controllerModule.



getHistory
public List getHistory()(Code)
Retrieve the command history a List including the command history



getJmxClient
public RmiJmxClient getJmxClient()(Code)
Returns the jmxClient value. Returns the jmxClient.



handlePrompt
public void handlePrompt() throws Exception(Code)
Main menu prompt handling.



isExitOnError
public boolean isExitOnError()(Code)
Test if the console should exit on error in non interactive mode. true if the console should exit on error in noninteractive mode.



isInteractive
public boolean isInteractive()(Code)
Returns the interactive value. Returns the interactive.



print
public void print(String s)(Code)
Prints a String on the console. Use this method to print things returned by Sequoia controller.
Parameters:
  s - the String to print



printError
public void printError(String message)(Code)
Prints an error message.
Use this method to print error messages coming either from Sequoia controller or from the console.
Parameters:
  message - error message to print



printError
public void printError(String message, Exception e)(Code)
Prints an error message (and displays the stack trace of an Exception if the debug option is active).
Use this method to print error messages coming either from Sequoia controller or from the console.
Parameters:
  message - error message to print
Parameters:
  e - an exception



printInfo
public void printInfo(String message)(Code)
Prints an info message.
Use this method to print info messages coming from the console. An info message should not contain essential information that the user can't deduce from the commands he/she typed.
Parameters:
  message - informational message to print



println
public void println(String s)(Code)
Prints a String on the console.
Use this method to print things returned by Sequoia controller.
Parameters:
  s - the String to print



println
public void println()(Code)
Prints a new line.



readLine
public String readLine(String prompt) throws ConsoleException(Code)
Reads a line from the console.
Parameters:
  prompt - the prompt to display the trimmed line read from the console
throws:
  ConsoleException - if an error occured



readPassword
public String readPassword(String prompt) throws ConsoleException(Code)
Read password from the console.
Parameters:
  prompt - the promp to display the password read from the console
throws:
  ConsoleException - if an error occured



setJmxClient
public void setJmxClient(RmiJmxClient jmxClient)(Code)
Sets a new JmxClient (used when console started without being connected).
Parameters:
  jmxClient - the new JMX client to use



setPrintColor
public void setPrintColor(boolean b)(Code)
Should this console display color in interactive mode? Warning, colors only work on non Windows system.
Parameters:
  b - true if the console should display color (ignoredon Windows system).



setRequestDelimiter
public void setRequestDelimiter(String delimiter)(Code)
(ugly!) pass-through setter to set the request delimiter on the VirtualDatabaseConsole from the command line options of the console
Parameters:
  delimiter - the String representing the request delimiter
See Also:   VirtualDatabaseConsole.setRequestDelimiter(String)



storeHistory
public void storeHistory()(Code)
Store the current command history



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.