public class ShardManagerImpl extends Object implements ShardManager
| Constructor and Description |
|---|
ShardManagerImpl(oracle.ons.ONS ons) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionOpened(Connection conn,
JDBCConnectionRetrievalInfo cri)
Performs the required post-processing in the UCP datasource once a new
connection is created to a sharded database.
|
Set<RACInstance> |
getInstancesForShardKey(JDBCConnectionRetrievalInfo cri)
Retrieves a set of
RACInstance objects
corresponding to the shard keys specified via the connection retrieval
object. |
public void connectionOpened(Connection conn, JDBCConnectionRetrievalInfo cri) throws UniversalConnectionPoolException
ShardManagerconnectionOpened in interface ShardManagerconn - the newly created connectioncri - retrieval information used to create the connection,for a sharded
database this also includes the sharding key information.UniversalConnectionPoolExceptionpublic Set<RACInstance> getInstancesForShardKey(JDBCConnectionRetrievalInfo cri)
ShardManagerRACInstance objects
corresponding to the shard keys specified via the connection retrieval
object.getInstancesForShardKey in interface ShardManagercri - the JDBCConnectionRetrievalInfo object that contains the
shard key information for which the instance information needs to
be looked up.
Copyright © 2008, 2016, Oracle. All rights reserved.