Java Doc for DatabaseBackendMBean.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.DatabaseBackendMBean

All known Subclasses:   org.continuent.sequoia.controller.backend.management.DatabaseBackend,
DatabaseBackendMBean
public interface DatabaseBackendMBean (Code)
MBeanInterface to the DatabaseBackend
author:
   Nicolas Modrzyk
version:
   1.0




Method Summary
 voiddisable()
     Sets the database backend state to disable.
 voiddisableRead()
     Disables the database backend for reads.
 voiddisableWrite()
     Disables the database backend for writes.
 voidenableRead()
     Enables the database backend for reads.
 voidenableWrite()
     Enables the database backend for writes.
 ListgetActiveTransactions()
     Returns the list of active transactions for this backend.
 String[]getColumnsNames(String tableName)
     Gets the names of the columns.
 StringgetConnectionTestStatement()
     Returns the SQL statement to use to check the connection validity.
 StringgetDriverClassName()
     Returns the database native JDBC driver class name.
 StringgetDriverPath()
     Returns the driver path.
 StringgetLastKnownCheckpoint()
     Returns the lastKnownCheckpoint value.
 StringgetLockInfo(String tableName)
     Gets a description of the given table locks.
 StringgetName()
     Returns the backend logical name.
 ListgetPendingRequestsDescription(int count, boolean fromFirst, boolean clone)
     Returns the list of pending requests for this backend.
 StringgetSchemaXml(boolean expandSchema)
     The getXml() method does not return the schema if it is not static anymore, to avoid confusion between static and dynamic schema.
 StringgetState()
     Returns a description of the state of the backend
See Also:   org.continuent.sequoia.common.jmx.notifications.SequoiaNotificationList a string description of the state.
 intgetStateValue()
     Return the integer value corresponding to the state of the backend.
 String[]getStoredProceduresNames()
     Lists all stored procedures in this schema.
 String[]getTablesNames()
     Gets the names of the tables.
 StringgetURL()
     Returns the JDBC URL used to access the database.
 StringgetXml()
     Return a string description of the backend in xml format.
 booleanisDisabled()
     Is the backend completely disabled ? This usually means it has a known state with a checkpoint associated to it.
 booleanisInitialized()
     Tests if this backend is enabled (active and synchronized).
 booleanisJDBCConnected()
    
 booleanisReadEnabled()
     Tests if this backend is read enabled (active and synchronized).
 booleanisSchemaStatic()
    
 booleanisWriteEnabled()
     Tests if this backend is write enabled (active and synchronized).



Method Detail
disable
void disable()(Code)
Sets the database backend state to disable. This state is just an indication and it has no semantic effect. It is up to the request manager (especially the load balancer) to ensure that no more requests are sent to this backend.



disableRead
void disableRead()(Code)
Disables the database backend for reads. This does not affect write ability



disableWrite
void disableWrite()(Code)
Disables the database backend for writes. This does not affect read ability although the backend will not be coherent anymore as soon as a write as occured. This should be used in conjunction with a checkpoint to recover missing writes.



enableRead
void enableRead()(Code)
Enables the database backend for reads. This method should only be called when the backend is synchronized with the others.



enableWrite
void enableWrite()(Code)
Enables the database backend for writes. This method should only be called when the backend is synchronized with the others.



getActiveTransactions
List getActiveTransactions()(Code)
Returns the list of active transactions for this backend. List of Long, corresponding toactive transaction identifier.



getColumnsNames
String[] getColumnsNames(String tableName)(Code)
Gets the names of the columns.
Parameters:
  tableName - fully qualified name of the table (with. prefix) an array containing the columns names, or null if tableName is nota valid table name.



getConnectionTestStatement
String getConnectionTestStatement()(Code)
Returns the SQL statement to use to check the connection validity. a String containing a SQL statement



getDriverClassName
String getDriverClassName()(Code)
Returns the database native JDBC driver class name. the driver class name



getDriverPath
String getDriverPath()(Code)
Returns the driver path. the driver path



getLastKnownCheckpoint
String getLastKnownCheckpoint()(Code)
Returns the lastKnownCheckpoint value. Returns the lastKnownCheckpoint.



getLockInfo
String getLockInfo(String tableName)(Code)
Gets a description of the given table locks.
Parameters:
  tableName - fully qualified name of the table (with. prefix) a (localized) string containing either "No locks" or "Locked by"



getName
String getName()(Code)
Returns the backend logical name. the backend logical name



getPendingRequestsDescription
List getPendingRequestsDescription(int count, boolean fromFirst, boolean clone)(Code)
Returns the list of pending requests for this backend.
Parameters:
  count - number of requests to retrieve, if 0, return all.
Parameters:
  fromFirst - count the request from first if true, or from last iffalse
Parameters:
  clone - should clone the pending request if true, block it if false List of String description ofeach request.



getSchemaXml
String getSchemaXml(boolean expandSchema)(Code)
The getXml() method does not return the schema if it is not static anymore, to avoid confusion between static and dynamic schema. This method returns a static view of the schema, whatever the dynamic precision is.
Parameters:
  expandSchema - if we should force the schema to be expanded. This isneeded as the default getXml should call this method. an xml formatted string



getState
String getState()(Code)
Returns a description of the state of the backend
See Also:   org.continuent.sequoia.common.jmx.notifications.SequoiaNotificationList a string description of the state. Can be enabled, disabled,recovering, backuping ...



getStateValue
int getStateValue()(Code)
Return the integer value corresponding to the state of the backend. The values are defined in BackendState int value
See Also:   org.continuent.sequoia.common.jmx.management.BackendState



getStoredProceduresNames
String[] getStoredProceduresNames()(Code)
Lists all stored procedures in this schema. Note: There is an issue with stored procedures with same name (but different parameters): one will appear with 0 parameters, the 2nd with the total parameters from the 2 stored proc. See SEQUOIA-296 for more info An array of Strings containing all stored procedure names (onearray entry per procedure)



getTablesNames
String[] getTablesNames()(Code)
Gets the names of the tables. NOTE: The returned array will contain only one entry per actual table prefixed by the schema name + "." the names as an array of Strings, or an empty arrayif no tables were found



getURL
String getURL()(Code)
Returns the JDBC URL used to access the database. a JDBC URL



getXml
String getXml()(Code)
Return a string description of the backend in xml format. This does not include the schema description if the dynamic precision is not set to static. an xml formatted string



isDisabled
boolean isDisabled()(Code)
Is the backend completely disabled ? This usually means it has a known state with a checkpoint associated to it. true if the backend is disabled



isInitialized
boolean isInitialized() throws Exception(Code)
Tests if this backend is enabled (active and synchronized). true if this backend is enabled
throws:
  Exception - if an error occurs



isJDBCConnected
boolean isJDBCConnected()(Code)
Is the backend accessible ? true if a jdbc connection is still possible from thecontroller, false if connectionTestStatement failed



isReadEnabled
boolean isReadEnabled()(Code)
Tests if this backend is read enabled (active and synchronized). true if this backend is enabled.



isSchemaStatic
boolean isSchemaStatic()(Code)
Returns the schemaIsStatic.



isWriteEnabled
boolean isWriteEnabled()(Code)
Tests if this backend is write enabled (active and synchronized). true if this backend is enabled.



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