MySQL Fabric / ConnectorJ feature request
Posted by: Cosmin Mutu
Date: August 09, 2016 02:45AM

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.

Options: ReplyQuote


Subject
Written By
Posted
MySQL Fabric / ConnectorJ feature request
August 09, 2016 02:45AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.