public class RdsMultiAzDbClusterListProvider extends RdsHostListProvider
CLUSTER_ID, CLUSTER_INSTANCE_HOST_PATTERN, CLUSTER_TOPOLOGY_REFRESH_RATE_MS, clusterId, clusterInstanceTemplate, connectionUrlParser, isInitialized, isPrimaryClusterId, primaryClusterIdCache, suggestedPrimaryClusterIdCache, topologyCache| Constructor and Description |
|---|
RdsMultiAzDbClusterListProvider(java.util.Properties properties,
java.lang.String originalUrl,
HostListProviderService hostListProviderService,
java.lang.String topologyQuery,
java.lang.String nodeIdQuery,
java.lang.String isReaderQuery,
java.lang.String fetchWriterNodeQuery,
java.lang.String fetchWriterNodeQueryHeader) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<HostSpec> |
queryForTopology(java.sql.Connection conn)
Obtain a cluster topology from database.
|
clear, clearAll, forceRefresh, forceRefresh, getCachedTopology, getHostRole, getRdsUrlType, getTopology, identifyConnection, init, logCache, refresh, refresh, suggestPrimaryClusterpublic RdsMultiAzDbClusterListProvider(java.util.Properties properties,
java.lang.String originalUrl,
HostListProviderService hostListProviderService,
java.lang.String topologyQuery,
java.lang.String nodeIdQuery,
java.lang.String isReaderQuery,
java.lang.String fetchWriterNodeQuery,
java.lang.String fetchWriterNodeQueryHeader)
protected java.util.List<HostSpec> queryForTopology(java.sql.Connection conn) throws java.sql.SQLException
queryForTopology in class RdsHostListProviderconn - A connection to database to fetch the latest topology.HostSpec objects representing the topologyjava.sql.SQLException - if errors occurred while retrieving the topology.