< go_jolokia >
--------
\
\
_____ ----------------- _____
| \/ ---- ---- \/ |
\ ==/ / | | \ \== /
\--/ | () | |() | \--/
/ \---/ ___ \---/ \
| _(===)_ |
| (__/--\__) |
| |_||_| |
\ /
go_jolokia is a Simple jolokia JMX/HTTP wrapper for Go. It supports jolokia proxy setup as well as direct host connection.
0.1.0
To get the go_jolokia install Go and execute the below command
go get github.com/swarvanusg/go_jolokia
client := NewJolokiaClient("http://" + proxyhost + ":" + proxyport + "/" + jolokia)
client.SetTarget(targetHost + ":" + targetPort)
beans, err := client.ListBeans("java.lang")
props, err := client.ListProperties("java.lang", []string{"type=Threading"})
val, err := client.GetAttr("java.lang", []string{"type=Threading"}, "PeakThreadCount")
The go_jolokia build is success The test cases are passing
github.com/cmceniry/golokia