示例#1
0
文件: Env.java 项目: NathanEEvans/api
 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);
 }
示例#2
0
文件: Env.java 项目: NathanEEvans/api
 static VirtualMachine vm() {
   return connection.vm();
 }
示例#3
0
文件: Env.java 项目: NathanEEvans/api
 static void init(String connectSpec, boolean openNow, int flags) {
   connection = new VMConnection(connectSpec, flags);
   if (!connection.isLaunch() || openNow) {
     connection.open();
   }
 }