Java Doc for DatabaseCluster.java in  » Database-JDBC-Connection-Pool » HA-JDBC » net » sf » hajdbc » 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 » HA JDBC » net.sf.hajdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.sf.hajdbc.DatabaseCluster

DatabaseCluster
public interface DatabaseCluster (Code)

author:
   Paul Ferraro<
Parameters:
  D - > either java.sql.Driver or javax.sql.DataSource




Method Summary
public  booleanactivate(Database<D> database, StateManager stateManager)
    
public  booleandeactivate(Database<D> database, StateManager stateManager)
    
public  Map<Boolean, List<Database<D>>>getAliveMap(Collection<Database<D>> databases)
     Determines whether the specified databases are alive.
public  Balancer<D>getBalancer()
     Returns the Balancer implementation used by this database cluster.
public  Database<D>getDatabase(String id)
    
public  DatabaseMetaDataCachegetDatabaseMetaDataCache()
     Returns a DatabaseMetaData cache.
public  DialectgetDialect()
     Returns a dialect capable of returning database vendor specific values.
public  StringgetId()
     Returns the identifier of this cluster.
public  LockManagergetLockManager()
     Returns a LockManager capable of acquiring named read/write locks on the specific objects in this database cluster.
public  ExecutorServicegetNonTransactionalExecutor()
     Returns an executor service used to execute non-transactional database writes.
public  StateManagergetStateManager()
     Returns a StateManager for persisting database cluster state.
public  ExecutorServicegetTransactionalExecutor()
     Returns an executor service used to execute transactional database writes.
public  booleanisActive()
     Indicates whether or not this cluster is active, i.e.
public  booleanisCurrentDateEvaluationEnabled()
     Indicates whether or not non-deterministic CURRENT_DATE SQL functions will be evaluated to deterministic static values.
public  booleanisCurrentTimeEvaluationEnabled()
     Indicates whether or not non-deterministic CURRENT_TIME functions will be evaluated to deterministic static values.
public  booleanisCurrentTimestampEvaluationEnabled()
     Indicates whether or not non-deterministic CURRENT_TIMESTAMP functions will be evaluated to deterministic static values.
public  booleanisIdentityColumnDetectionEnabled()
     Indicates whether or not identity column detection is enabled for this cluster.
public  booleanisRandEvaluationEnabled()
     Indicates whether or not non-deterministic RAND() functions will be replaced by evaluated to static values.
public  booleanisSequenceDetectionEnabled()
     Indicates whether or not sequence detection is enabled for this cluster.
public  voidsetLockManager(LockManager lockManager)
     Sets the LockManager implementation capable of acquiring named read/write locks on the specific objects in this database cluster.
public  voidsetStateManager(StateManager stateManager)
     Sets the StateManager implementation for persisting database cluster state.
public  voidstart()
     Starts this database cluster.
public  voidstop()
    



Method Detail
activate
public boolean activate(Database<D> database, StateManager stateManager)(Code)
Activates the specified database
Parameters:
  database - a database descriptor true, if the database was activated, false it was already active



deactivate
public boolean deactivate(Database<D> database, StateManager stateManager)(Code)
Deactivates the specified database
Parameters:
  database - a database descriptor true, if the database was deactivated, false it was already inactive



getAliveMap
public Map<Boolean, List<Database<D>>> getAliveMap(Collection<Database<D>> databases)(Code)
Determines whether the specified databases are alive.
Parameters:
  databases - a collection of database descriptors a map of alive status to set of database descriptors



getBalancer
public Balancer<D> getBalancer()(Code)
Returns the Balancer implementation used by this database cluster. an implementation of Balancer



getDatabase
public Database<D> getDatabase(String id)(Code)
Returns the database identified by the specified id
Parameters:
  id - a database identifier a database descriptor
throws:
  IllegalArgumentException - if no database exists with the specified identifier



getDatabaseMetaDataCache
public DatabaseMetaDataCache getDatabaseMetaDataCache()(Code)
Returns a DatabaseMetaData cache. a DatabaseMetaDataCache implementation



getDialect
public Dialect getDialect()(Code)
Returns a dialect capable of returning database vendor specific values. an implementation of Dialect



getId
public String getId()(Code)
Returns the identifier of this cluster. an identifier



getLockManager
public LockManager getLockManager()(Code)
Returns a LockManager capable of acquiring named read/write locks on the specific objects in this database cluster. a LockManager implementation



getNonTransactionalExecutor
public ExecutorService getNonTransactionalExecutor()(Code)
Returns an executor service used to execute non-transactional database writes. an implementation of ExecutorService



getStateManager
public StateManager getStateManager()(Code)
Returns a StateManager for persisting database cluster state. a StateManager implementation



getTransactionalExecutor
public ExecutorService getTransactionalExecutor()(Code)
Returns an executor service used to execute transactional database writes. an implementation of ExecutorService



isActive
public boolean isActive()(Code)
Indicates whether or not this cluster is active, i.e. started, but not yet stopped. true, if this cluster is active, false otherwise.



isCurrentDateEvaluationEnabled
public boolean isCurrentDateEvaluationEnabled()(Code)
Indicates whether or not non-deterministic CURRENT_DATE SQL functions will be evaluated to deterministic static values. true, if temporal SQL replacement is enabled, false otherwise.



isCurrentTimeEvaluationEnabled
public boolean isCurrentTimeEvaluationEnabled()(Code)
Indicates whether or not non-deterministic CURRENT_TIME functions will be evaluated to deterministic static values. true, if temporal SQL replacement is enabled, false otherwise.



isCurrentTimestampEvaluationEnabled
public boolean isCurrentTimestampEvaluationEnabled()(Code)
Indicates whether or not non-deterministic CURRENT_TIMESTAMP functions will be evaluated to deterministic static values. true, if temporal SQL replacement is enabled, false otherwise.



isIdentityColumnDetectionEnabled
public boolean isIdentityColumnDetectionEnabled()(Code)
Indicates whether or not identity column detection is enabled for this cluster. true, if identity column detection is enabled, false otherwise.



isRandEvaluationEnabled
public boolean isRandEvaluationEnabled()(Code)
Indicates whether or not non-deterministic RAND() functions will be replaced by evaluated to static values. true, if temporal SQL replacement is enabled, false otherwise.



isSequenceDetectionEnabled
public boolean isSequenceDetectionEnabled()(Code)
Indicates whether or not sequence detection is enabled for this cluster. true, if sequence detection is enabled, false otherwise.



setLockManager
public void setLockManager(LockManager lockManager)(Code)
Sets the LockManager implementation capable of acquiring named read/write locks on the specific objects in this database cluster.



setStateManager
public void setStateManager(StateManager stateManager)(Code)
Sets the StateManager implementation for persisting database cluster state.



start
public void start() throws Exception(Code)
Starts this database cluster.
throws:
  Exception - if cluster could not be started



stop
public void stop()(Code)
Stops this database cluster



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