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