Class WindowsVirtualMachine
java.lang.Object
com.sun.tools.attach.VirtualMachine
sun.tools.attach.HotSpotVirtualMachine
sun.tools.attach.WindowsVirtualMachine
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidclosePipe(long hPipe) (package private) static voidcloseProcess(long hProcess) (package private) static voidconnectPipe(long hPipe) (package private) static longcreatePipe(String name) voiddetach()Detach from the virtual machine.(package private) static void(package private) InputStream(package private) static byte[](package private) static voidinit()(package private) static longopenProcess(int pid) (package private) static intreadPipe(long hPipe, byte[] buf, int off, int buflen) Methods inherited from class HotSpotVirtualMachine
attachTimeout, dumpHeap, executeJCmd, getAgentProperties, getSystemProperties, heapHisto, loadAgent, loadAgentLibrary, loadAgentPath, localDataDump, printFlag, readInt, remoteDataDump, setFlagMethods inherited from class VirtualMachine
attach, attach, equals, hashCode, id, list, loadAgent, loadAgentLibrary, loadAgentPath, provider, toString
-
Field Details
-
stub
private static byte[] stub -
hProcess
private volatile long hProcess
-
-
Constructor Details
-
WindowsVirtualMachine
public WindowsVirtualMachine(AttachProvider provider, String id) throws AttachNotSupportedException, IOException
-
-
Method Details
-
detach
Description copied from class:VirtualMachineDetach from the virtual machine. After detaching from the virtual machine, any further attempt to invoke operations on that virtual machine will cause anIOExceptionto be thrown. If an operation (such asloadAgentfor 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:
detachin classVirtualMachine- Throws:
IOException- If an I/O error occurs
-
execute
- Specified by:
executein classHotSpotVirtualMachine- Throws:
AgentLoadExceptionIOException
-
init
static void init() -
generateStub
static byte[] generateStub() -
openProcess
- Throws:
IOException
-
closeProcess
- Throws:
IOException
-
createPipe
- Throws:
IOException
-
closePipe
- Throws:
IOException
-
connectPipe
- Throws:
IOException
-
readPipe
- Throws:
IOException
-
enqueue
static void enqueue(long hProcess, byte[] stub, String cmd, String pipename, Object... args) throws IOException - Throws:
IOException
-