You can used managed beans (MBeans) to track statistics in your environment.
You can also enable statistics programmatically with the StatsAccessor interface, which is retrieved with the StatsAccessorFactory class. Use this interface in a client environment or when you need to monitor aneXtreme Scale that is running in the current process.