Add standard exports to the java client.

Don't include memory for now, it is non-trivial to get
cross platform.
Please factor out the updaters into their own functions for the respective metrics.  This will promote readability.