incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pablo Cuadrado <>
Subject JMX-REST interface working!
Date Thu, 01 Apr 2010 07:59:26 GMT
Hi there!

In a first progressive step, I managed to adapt a simple (yet
effective) REST interface I've found at:

The example was connecting to the first MBean server found on the
virtual machine, so it was showing many JVM MBeans, but not the
Cassandra ones. I added a JMXConnector articulation (connecting to the
default 8080 port) to enable remote MBean browsing... with an awful
implementation... HORRIBLE!... But it was just a simple test...

It even supports reading of tabular, composite, collections, complex MBeans.

Runs on it's own http server (in port 2021 in my example), this is a
working URL which returns the requested data:


So, that huge URI returns a single number!!!       :P


Limitations so far:

- TO-DO items: Set, Invoke and Notifications handling.

- The "request-per-mbean-attribute" approach is a bit rough, the web
client will be doing a request for every single magnitude being
measured... the interface should have more commands to retrieve
related sets of information, possibly JSON formatted.



View raw message