public interface HostListProvider
| Modifier and Type | Method and Description |
|---|---|
java.util.List<HostSpec> |
forceRefresh() |
java.util.List<HostSpec> |
forceRefresh(java.sql.Connection connection) |
java.lang.String |
getClusterId() |
HostRole |
getHostRole(java.sql.Connection connection)
Evaluates the host role of the given connection - either a writer or a reader.
|
HostSpec |
identifyConnection(java.sql.Connection connection) |
java.util.List<HostSpec> |
refresh() |
java.util.List<HostSpec> |
refresh(java.sql.Connection connection) |
java.util.List<HostSpec> refresh() throws java.sql.SQLException
java.sql.SQLExceptionjava.util.List<HostSpec> refresh(java.sql.Connection connection) throws java.sql.SQLException
java.sql.SQLExceptionjava.util.List<HostSpec> forceRefresh() throws java.sql.SQLException
java.sql.SQLExceptionjava.util.List<HostSpec> forceRefresh(java.sql.Connection connection) throws java.sql.SQLException
java.sql.SQLExceptionHostRole getHostRole(java.sql.Connection connection) throws java.sql.SQLException
connection - a connection to the database instance whose role should be determinedjava.sql.SQLException - if there is a problem executing or processing the SQL query used to
determine the host roleHostSpec identifyConnection(java.sql.Connection connection) throws java.sql.SQLException
java.sql.SQLExceptionjava.lang.String getClusterId()
throws java.lang.UnsupportedOperationException,
java.sql.SQLException
java.lang.UnsupportedOperationExceptionjava.sql.SQLException