Java Doc for AbstractDatabaseCluster.java in » Database-JDBC-Connection-Pool » HA-JDBC » net » sf » hajdbc » sql » 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.sql
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
net.sf.hajdbc.sql
.AbstractDatabaseCluster
AbstractDatabaseCluster
abstract
public
class AbstractDatabaseCluster implements
DatabaseCluster
<D>,
DatabaseClusterMBean
,
MBeanRegistration
(Code)
author:
Paul Ferraro<
Parameters:
D - > either java.sql.Driver or javax.sql.DataSource
since:
1.0
Inner Class :class FailureDetectionTask implements
Runnable
Inner Class :class AutoActivationTask implements
Runnable
Field Summary
static Logger
logger
Constructor Summary
protected
AbstractDatabaseCluster
(
String
id,
URL
url)
Method Summary
public
boolean
activate
(
Database
<D> database,
StateManager
stateManager)
public
void
activate
(
String
databaseId)
public
void
activate
(
String
databaseId,
String
strategyId)
protected
void
add
(
Database
<D> database)
protected
void
addSynchronizationStrategyBuilder
(
SynchronizationStrategyBuilder
builder)
public
boolean
deactivate
(
Database
<D> database,
StateManager
stateManager)
public
void
deactivate
(
String
databaseId)
public
boolean
equals
(
Object
object)
public
void
flushMetaDataCache
()
public
Set
<
String
>
getActiveDatabases
()
public
Map
<
Boolean
,
List
<
Database
<D>>>
getAliveMap
(
Collection
<
Database
<D>> databases)
public
Balancer
<D>
getBalancer
()
public
Database
<D>
getDatabase
(
String
id)
public
DatabaseMetaDataCache
getDatabaseMetaDataCache
()
protected
Iterator
<
Database
<D>>
getDatabases
()
protected
DatabaseClusterDecorator
getDecorator
()
public
String
getDefaultSynchronizationStrategy
()
public
Dialect
getDialect
()
public
String
getId
()
public
Set
<
String
>
getInactiveDatabases
()
public
LockManager
getLockManager
()
public
ExecutorService
getNonTransactionalExecutor
()
public
StateManager
getStateManager
()
public
Set
<
String
>
getSynchronizationStrategies
()
protected
Iterator
<
SynchronizationStrategyBuilder
>
getSynchronizationStrategyBuilders
()
public
ExecutorService
getTransactionalExecutor
()
public
URL
getUrl
()
public
String
getVersion
()
public
int
hashCode
()
public
boolean
isActive
()
boolean
isAlive
(
Database
<D> database)
public
boolean
isAlive
(
String
id)
public
boolean
isCurrentDateEvaluationEnabled
()
public
boolean
isCurrentTimeEvaluationEnabled
()
public
boolean
isCurrentTimestampEvaluationEnabled
()
public
boolean
isIdentityColumnDetectionEnabled
()
public
boolean
isRandEvaluationEnabled
()
public
boolean
isSequenceDetectionEnabled
()
public
void
postDeregister
()
public
void
postRegister
(
Boolean
registered)
public
void
preDeregister
()
public
ObjectName
preRegister
(
MBeanServer
server,
ObjectName
name)
protected
void
register
(
Database
<D> database,
DynamicMBean
mbean)
public
void
remove
(
String
id)
protected
void
setDecorator
(
DatabaseClusterDecorator
decorator)
public
void
setLockManager
(
LockManager
lockManager)
public
void
setStateManager
(
StateManager
stateManager)
public
synchronized void
start
()
public
synchronized void
stop
()
public
String
toString
()
Field Detail
logger
static Logger logger
(Code)
Constructor Detail
AbstractDatabaseCluster
protected
AbstractDatabaseCluster(
String
id,
URL
url)
(Code)
Method Detail
activate
public
boolean activate(
Database
<D> database,
StateManager
stateManager)
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.activate(net.sf.hajdbc.Databasenet.sf.hajdbc.StateManager)
activate
public
void activate(
String
databaseId)
(Code)
See Also:
net.sf.hajdbc.DatabaseClusterMBean.activate(java.lang.String)
activate
public
void activate(
String
databaseId,
String
strategyId)
(Code)
See Also:
net.sf.hajdbc.DatabaseClusterMBean.activate(java.lang.Stringjava.lang.String)
add
protected
void add(
Database
<D> database)
(Code)
addSynchronizationStrategyBuilder
protected
void addSynchronizationStrategyBuilder(
SynchronizationStrategyBuilder
builder) throws
Exception
(Code)
deactivate
public
boolean deactivate(
Database
<D> database,
StateManager
stateManager)
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.deactivate(net.sf.hajdbc.Databasenet.sf.hajdbc.StateManager)
deactivate
public
void deactivate(
String
databaseId)
(Code)
See Also:
net.sf.hajdbc.DatabaseClusterMBean.deactivate(java.lang.String)
equals
public
boolean equals(
Object
object)
(Code)
See Also:
java.lang.Object.equals(java.lang.Object)
flushMetaDataCache
public
void flushMetaDataCache()
(Code)
See Also:
net.sf.hajdbc.DatabaseClusterMBean.flushMetaDataCache
getActiveDatabases
public
Set
<
String
> getActiveDatabases()
(Code)
See Also:
net.sf.hajdbc.DatabaseClusterMBean.getActiveDatabases
getAliveMap
public
Map
<
Boolean
,
List
<
Database
<D>>> getAliveMap(
Collection
<
Database
<D>> databases)
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.getAliveMap(java.util.Collection)
getBalancer
public
Balancer
<D> getBalancer()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.getBalancer
getDatabase
public
Database
<D> getDatabase(
String
id)
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.getDatabase(java.lang.String)
getDatabaseMetaDataCache
public
DatabaseMetaDataCache
getDatabaseMetaDataCache()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.getDatabaseMetaDataCache
getDatabases
protected
Iterator
<
Database
<D>> getDatabases()
(Code)
getDecorator
protected
DatabaseClusterDecorator
getDecorator()
(Code)
getDefaultSynchronizationStrategy
public
String
getDefaultSynchronizationStrategy()
(Code)
See Also:
net.sf.hajdbc.DatabaseClusterMBean.getDefaultSynchronizationStrategy
getDialect
public
Dialect
getDialect()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.getDialect
getId
public
String
getId()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.getId
getInactiveDatabases
public
Set
<
String
> getInactiveDatabases()
(Code)
See Also:
net.sf.hajdbc.DatabaseClusterMBean.getInactiveDatabases
getLockManager
public
LockManager
getLockManager()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.getLockManager
getNonTransactionalExecutor
public
ExecutorService
getNonTransactionalExecutor()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.getNonTransactionalExecutor
getStateManager
public
StateManager
getStateManager()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.getStateManager
getSynchronizationStrategies
public
Set
<
String
> getSynchronizationStrategies()
(Code)
See Also:
net.sf.hajdbc.DatabaseClusterMBean.getSynchronizationStrategies
getSynchronizationStrategyBuilders
protected
Iterator
<
SynchronizationStrategyBuilder
> getSynchronizationStrategyBuilders() throws
Exception
(Code)
getTransactionalExecutor
public
ExecutorService
getTransactionalExecutor()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.getTransactionalExecutor
getUrl
public
URL
getUrl()
(Code)
See Also:
net.sf.hajdbc.DatabaseClusterMBean.getUrl
getVersion
public
String
getVersion()
(Code)
See Also:
net.sf.hajdbc.DatabaseClusterMBean.getVersion
hashCode
public
int hashCode()
(Code)
See Also:
java.lang.Object.hashCode
isActive
public
boolean isActive()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.isActive
isAlive
boolean isAlive(
Database
<D> database)
(Code)
isAlive
public
boolean isAlive(
String
id)
(Code)
See Also:
net.sf.hajdbc.DatabaseClusterMBean.isAlive(java.lang.String)
isCurrentDateEvaluationEnabled
public
boolean isCurrentDateEvaluationEnabled()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.isCurrentDateEvaluationEnabled
isCurrentTimeEvaluationEnabled
public
boolean isCurrentTimeEvaluationEnabled()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.isCurrentTimeEvaluationEnabled
isCurrentTimestampEvaluationEnabled
public
boolean isCurrentTimestampEvaluationEnabled()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.isCurrentTimestampEvaluationEnabled
isIdentityColumnDetectionEnabled
public
boolean isIdentityColumnDetectionEnabled()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.isIdentityColumnDetectionEnabled
isRandEvaluationEnabled
public
boolean isRandEvaluationEnabled()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.isRandEvaluationEnabled
isSequenceDetectionEnabled
public
boolean isSequenceDetectionEnabled()
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.isSequenceDetectionEnabled
postDeregister
public
void postDeregister()
(Code)
See Also:
javax.management.MBeanRegistration.postDeregister
postRegister
public
void postRegister(
Boolean
registered)
(Code)
See Also:
javax.management.MBeanRegistration.postRegister(java.lang.Boolean)
preDeregister
public
void preDeregister() throws
Exception
(Code)
See Also:
javax.management.MBeanRegistration.preDeregister
preRegister
public
ObjectName
preRegister(
MBeanServer
server,
ObjectName
name) throws
Exception
(Code)
See Also:
javax.management.MBeanRegistration.preRegister(javax.management.MBeanServerjavax.management.ObjectName)
register
protected
void register(
Database
<D> database,
DynamicMBean
mbean)
(Code)
remove
public
void remove(
String
id)
(Code)
See Also:
net.sf.hajdbc.DatabaseClusterMBean.remove(java.lang.String)
setDecorator
protected
void setDecorator(
DatabaseClusterDecorator
decorator)
(Code)
setLockManager
public
void setLockManager(
LockManager
lockManager)
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.setLockManager(net.sf.hajdbc.LockManager)
setStateManager
public
void setStateManager(
StateManager
stateManager)
(Code)
See Also:
net.sf.hajdbc.DatabaseCluster.setStateManager(net.sf.hajdbc.StateManager)
start
public
synchronized void start() throws
Exception
(Code)
Starts this database cluster
throws:
Exception
- if database cluster start fails
stop
public
synchronized void stop()
(Code)
Stops this database cluster
toString
public
String
toString()
(Code)
See Also:
java.lang.Object.toString
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.