Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

MySQL Fabric / ConnectorJ feature request (3 replies)

$
0
0
Hi guys,
Was looking for a place to request some code to be added to ConnectorJ, more exactly to the FabricMySQLConnection class.

Currently I am using FabricMySQLDataSource which provides the capability to obtain FabricMySQLConnection instances (more exactly FabricMySQLConnectionProxy instances) without caring about the FabricConnection instance.

Now, FabricMySQLConnection interface has 2 methods for getting and setting ServerGroupName but it does not provide a method for getting all currently available server group names within the fabric host.

Can we get FabricMySQLConnection.java interface to contain following method:
/**
* Get all server group names available
*/
Set<String> getServerGroupNames() throws SQLException;

And also here is what would the FabricMySQLConnectionProxy.java contain :
/**
* Get all server group names
*
* @throws SQLException
*
*/
public Set<String> getServerGroupNames() throws SQLException {
Set<String> serverGroupNames = null;
try {
serverGroupNames = this.fabricConnection.getClient().getGroupNames();
} catch (FabricCommunicationException e) {
throw SQLError.createSQLException("Unable to obtain server group names from Fabric server", SQLError.SQL_STATE_GENERAL_ERROR, e,
getExceptionInterceptor(), this);
}
return serverGroupNames;
}

P.S : please let me know if this is not the right place to request for new capabilities.

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>