static void shutdown(String message) { if (connection != null) { try { connection.disposeVM(); } catch (VMDisconnectedException e) { // Shutting down after the VM has gone away. This is // not an error, and we just ignore it. } } if (message != null) { MessageOutput.lnprint(message); MessageOutput.println(); } System.exit(0); }
static VirtualMachine vm() { return connection.vm(); }
static void init(String connectSpec, boolean openNow, int flags) { connection = new VMConnection(connectSpec, flags); if (!connection.isLaunch() || openNow) { connection.open(); } }