gmetric and basic gmond functionality in Java