[ 
https://issues.apache.org/jira/browse/CASSANDRA-918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12852519#action_12852519
 ] 

Pablo Cuadrado commented on CASSANDRA-918:
------------------------------------------

Guys!

In case you missed it, I'm copying this e-mail (related to this subject), which 
I've sent to the list, I have a working java JMX-Rest interface.

------------

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

http://blogs.sun.com/jmxnetbeans/entry/restful_access_to_jmx_instrumentation

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:

http://localhost:2021/jmx/org.apache.cassandra.db:type=ColumnFamilyStores,name=Keyspace1,columnfamily=Standard2/MemtableDataSize

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.

-----

Regards!

==============

Also, take a look at:

http://blogs.sun.com/jmxnetbeans/entry/restful_access_to_jmx_instrumentation1



> Create a dazzling web ui for cassandra
> --------------------------------------
>
>                 Key: CASSANDRA-918
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-918
>             Project: Cassandra
>          Issue Type: Wish
>          Components: Contrib
>            Reporter: Gary Dusbabek
>
> This would need to pull in jmx attributes and be able to execute operations.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to