| net.sf.hajdbc.Balancer
Balancer | public interface Balancer (Code) | | author: Paul Ferraro since: 1.0< Parameters: D - > either java.sql.Driver or javax.sql.DataSource |
add | public boolean add(Database<D> database)(Code) | | Adds the specified database to this balancer.
Parameters: database - a database descriptor true, if the database was added successfully, false if already existed. |
afterInvocation | public void afterInvocation(Database<D> database)(Code) | | Called after an operation is performed on the specified database retrieved via
Balancer.next() .
Parameters: database - a database descriptor |
all | public Set<Database<D>> all()(Code) | | Returns an unmodifiable collection of databases known to this balancer
a collection of database descriptors |
beforeInvocation | public void beforeInvocation(Database<D> database)(Code) | | Called before an operation is performed on the specified database retrieved via
Balancer.next() .
Parameters: database - a database descriptor |
clear | public void clear()(Code) | | Removes all databases from this balancer.
|
next | public Database<D> next()(Code) | | Returns the next database from this balancer
the next database from this balancer |
remove | public boolean remove(Database<D> database)(Code) | | Removes the specified database from this balancer.
Parameters: database - a database descriptor true, if the database was removed successfully, false if it did not exist. |
|
|