Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1208181] look for Dcassandra.jmx.local.port during discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
John Sanda committed Aug 28, 2015
1 parent 819fa3a commit 7bd4f5c
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -114,7 +114,9 @@ private DiscoveredResourceDetails getDetails(ResourceDiscoveryContext<?> context
for (int i = 0; i < arguments.length; i++) {
String arg = arguments[i];

if (arg.startsWith("-Dcom.sun.management.jmxremote.port")) {
if (arg.startsWith("-D-Dcassandra.jmx.local.port") ||
arg.startsWith("-Dcom.sun.management.jmxremote.port")) {

String[] jmxPortArg = arg.split("=");
jmxPort = jmxPortArg[1];
}
Expand Down

0 comments on commit 7bd4f5c

Please sign in to comment.