Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement support for Cassandra 3.x version #1

Merged
merged 2 commits into from
May 11, 2018

Conversation

AntonGabov
Copy link
Contributor

No description provided.

ObjectName storageMBean = new ObjectName("org.apache.cassandra.db:type=StorageService");
String releaseVersion = (String) remote.getAttribute(storageMBean, "ReleaseVersion");
int majorVersion = Integer.valueOf(releaseVersion.substring(0, releaseVersion.indexOf('.')));
System.out.println("Version of connected Cassandra is " + releaseVersion);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be better "Cassandra version is".

@AntonGabov AntonGabov merged commit feb4b1b into master May 11, 2018
@chemist777 chemist777 deleted the feature/180511-new-cassandra-support branch May 17, 2018 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants