sun.tools.attach
Class WindowsVirtualMachine

java.lang.Object
  extended by com.sun.tools.attach.VirtualMachine
      extended by sun.tools.attach.HotSpotVirtualMachine
          extended by sun.tools.attach.WindowsVirtualMachine

public final class WindowsVirtualMachine
extends HotSpotVirtualMachine


Constructor Summary
WindowsVirtualMachine(AttachProvider provider, String id)
           
 
Method Summary
 void detach()
          Detach from the virtual machine.
 
Methods inherited from class sun.tools.attach.HotSpotVirtualMachine
dumpHeap, getAgentProperties, getSystemProperties, heapHisto, loadAgent, loadAgentLibrary, loadAgentPath, localDataDump, printFlag, remoteDataDump, setFlag
 
Methods inherited from class com.sun.tools.attach.VirtualMachine
attach, attach, equals, hashCode, id, list, loadAgent, loadAgentLibrary, loadAgentPath, provider, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindowsVirtualMachine

public WindowsVirtualMachine(AttachProvider provider,
                             String id)
                      throws IOException
Throws:
IOException
Method Detail

detach

public void detach()
            throws IOException
Description copied from class: VirtualMachine
Detach from the virtual machine.

After detaching from the virtual machine, any further attempt to invoke operations on that virtual machine will cause an IOException to be thrown. If an operation (such as loadAgent for example) is in progress when this method is invoked then the behaviour is implementation dependent. In other words, it is implementation specific if the operation completes or throws IOException.

If already detached from the virtual machine then invoking this method has no effect.

Specified by:
detach in class VirtualMachine
Throws:
IOException - If an I/O error occurs


Copyright © 2007-2013. All Rights Reserved.