Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 static VirtualMachine vm() {
   return connection.vm();
 }
Exemplo n.º 3
0
 static void init(String connectSpec, boolean openNow, int flags) {
   connection = new VMConnection(connectSpec, flags);
   if (!connection.isLaunch() || openNow) {
     connection.open();
   }
 }