Example #1
0
 /** Attach to a target VM using the specified address and Connector arguments. */
 public VirtualMachine attach(String address, Map args)
     throws IOException, IllegalConnectorArgumentsException {
   String ts = argument(ARG_TIMEOUT, args).value();
   int timeout = 0;
   if (ts.length() > 0) {
     timeout = Integer.decode(ts).intValue();
   }
   Connection connection = transportService.attach(address, timeout, 0);
   return Bootstrap.virtualMachineManager().createVirtualMachine(connection);
 }
Example #2
0
 public String description() {
   return transportService.description();
 }