Several options are available to have an embedded version of the R66 monitor.
1) Natively in Java
The first option is to integrate the R66 monitor natively using client integration. Several examples exist in the distribution to show how to do that.
The second option is to integrate an applicative module with R66 monitor, such that it will call directly application Java modules during task executions.
2) Outside Java
The first option is of course to use scripts to call R66 command line commands.
The second option is to use the proposed Thrift interface which facilitates the integration of the client side in several languages (see Thrift for more details).
Among the supported languages in Thrift, we have: