Java Doc for ControllerMBean.java in  » Database-JDBC-Connection-Pool » sequoia-2.10.9 » org » continuent » sequoia » common » jmx » mbeans » 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.common.jmx.mbeans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.continuent.sequoia.common.jmx.mbeans.ControllerMBean

All known Subclasses:   org.continuent.sequoia.controller.management.Controller,
ControllerMBean
public interface ControllerMBean (Code)
JMX Interface of the Sequoia Controller.
author:
   Emmanuel Cecchet
author:
   Mathieu Peltier
version:
   1.0




Method Summary
 voidaddDriver(byte[] bytes)
     Adds a driver jar file sent in its binary form in the drivers directory of the controller.
 voidaddVirtualDatabases(String xml)
     Registers one or several virtual databases in the controller.
 voidaddVirtualDatabases(String xml, boolean force)
     Same as addVirtualDatabases(String xml) above, except that a force option can be specified to bypass the load-order (last-man-down) check.
 intgetBacklogSize()
     Get the controller socket backlog size.
 StringgetControllerName()
     Gets the controller name.
 StringgetJmxName()
     Gets the JMX name of the controller.
 intgetPortNumber()
    
 StringgetVersionNumber()
     Gets the controller version.
 ListgetVirtualDatabaseNames()
     Returns the names of currently available virtual databases.
 StringgetXml()
     Return the xml version of the controller.xml file without doc type declaration, just data.
 voidinitializeVirtualDatabases(String vdbXmlSpec)
     Loads a vdb part and initialize it as the first vdb part.
 booleanisShuttingDown()
    
 voidrefreshLogConfiguration()
     Refreshs the logging system configuration by re-reading the log4j.properties file.
 StringsaveConfiguration()
     Save current configuration of the controller to a default file location.
 voidsetBacklogSize(int size)
     Set the controller socket backlog size.
 voidshutdown()
     Shuts the controller down.
 voidupdateLogConfigurationFile(String newConfiguration)
    
 StringviewLogConfigurationFile()
    



Method Detail
addDriver
void addDriver(byte[] bytes) throws Exception(Code)
Adds a driver jar file sent in its binary form in the drivers directory of the controller.
Parameters:
  bytes - the data in a byte array
throws:
  Exception - if fails



addVirtualDatabases
void addVirtualDatabases(String xml) throws ControllerException(Code)
Registers one or several virtual databases in the controller. The description of each Virtual Database must contain the definition of the backends and components (cache, scheduler, load balancer) to use.

This function expects the content of an XML file conforming to the Sequoia DTD to be given as a single String object.
Parameters:
  xml - XML code to parse
exception:
  ControllerException - if an error occurs while interpreting XML




addVirtualDatabases
void addVirtualDatabases(String xml, boolean force) throws ControllerException(Code)
Same as addVirtualDatabases(String xml) above, except that a force option can be specified to bypass the load-order (last-man-down) check.
Parameters:
  xml - vdb.xml config data
Parameters:
  force - set to true to bypass the load-order (last-man-down) check.
exception:
  ControllerException - if an error occurs (vdb xml not valid, other...)



getBacklogSize
int getBacklogSize()(Code)
Get the controller socket backlog size. the backlog size



getControllerName
String getControllerName()(Code)
Gets the controller name. a String value containing the controller name.



getJmxName
String getJmxName()(Code)
Gets the JMX name of the controller. a String value containing the jmx name of thecontroller



getPortNumber
int getPortNumber()(Code)
Return this controller port number a int containing the port code number



getVersionNumber
String getVersionNumber() throws RemoteException(Code)
Gets the controller version. a String value containing the version number
throws:
  RemoteException - if an error occurs



getVirtualDatabaseNames
List getVirtualDatabaseNames()(Code)
Returns the names of currently available virtual databases. List of String objects.



getXml
String getXml()(Code)
Return the xml version of the controller.xml file without doc type declaration, just data. The content is formatted using the controller xsl stylesheet. controller xml data



initializeVirtualDatabases
void initializeVirtualDatabases(String vdbXmlSpec) throws ControllerException(Code)
Loads a vdb part and initialize it as the first vdb part. This clears the recovery log. Similarly to addVirtualDatabases() above, several vdb parts can be specified at once.
Parameters:
  vdbXmlSpec - an xml string containing the vdb part specification (s)
throws:
  ControllerException - if there is a problem (vdb xml not valid, notfirst in group, ...)



isShuttingDown
boolean isShuttingDown()(Code)
Is the controller shutting down ? true if the controller is no more accepting connection



refreshLogConfiguration
void refreshLogConfiguration() throws ControllerException(Code)
Refreshs the logging system configuration by re-reading the log4j.properties file.
exception:
  ControllerException - if the log4j.properties filecannot be found in classpath



saveConfiguration
String saveConfiguration() throws Exception(Code)
Save current configuration of the controller to a default file location. status message
throws:
  Exception - if fails
See Also:   ControllerMBean.getXml()



setBacklogSize
void setBacklogSize(int size)(Code)
Set the controller socket backlog size.
Parameters:
  size - backlog size



shutdown
void shutdown() throws ControllerException(Code)
Shuts the controller down. The controller can not been shut down if all its hosted virtual database have not been shut down before
throws:
  ControllerException - if all the virtual database have not been shutdown or if an error occurs



updateLogConfigurationFile
void updateLogConfigurationFile(String newConfiguration) throws IOException, ControllerException(Code)
Update the log4j configuration file with the given content Also call refreshLogConfiguration method
Parameters:
  newConfiguration - the content of the new log4j configuration
throws:
  IOException - if cannot access the log4j file
throws:
  ControllerException - if could not refresh the logs



viewLogConfigurationFile
String viewLogConfigurationFile() throws IOException(Code)
Retrieve the content of the log4j configuration file String
throws:
  IOException - if IO problems



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