|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexedDataSourceCluster
Field Summary | |
---|---|
static String |
ROLE
The name of the role for convenience |
Method Summary | |
---|---|
int |
getClusterSize()
Returns the number of DataSources in the cluster. |
Connection |
getConnectionForIndex(int index)
Gets a Connection to a database given an index. |
Methods inherited from interface org.apache.avalon.excalibur.datasource.DataSourceComponent |
---|
getConnection |
Methods inherited from interface org.apache.avalon.framework.configuration.Configurable |
---|
configure |
Field Detail |
---|
static final String ROLE
Method Detail |
---|
int getClusterSize()
Connection getConnectionForIndex(int index) throws SQLException
index
- Index of the DataSource for which a connection is to be returned.
NoValidConnectionException
- when there is no valid Connection wrapper
available in the classloader or when the index is not valid.
NoAvailableConnectionException
- when there are no more available
Connections in the pool.
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |