exposed a java API to manage the lifecyle of the server