...
Compilation
Code Block language bash javac JMXClient.java
Execution
Code Block language bash java JMXClient <ObjectName> <DelayInMillis>
Replace
<ObjectName>
with the desired metric's ObjectName and<DelayInMillis>
with the desired delay between checks in milliseconds.
Dependencies for JMX are already included in the JDK, making it easy to access and monitor HiveMQ metrics with these Java programs.
...