public class WindowsVirtualMachine extends HotSpotVirtualMachine
| Modifier and Type | Class and Description |
|---|---|
private class |
WindowsVirtualMachine.PipedInputStream |
| Modifier and Type | Field and Description |
|---|---|
private long |
hProcess |
private static byte[] |
stub |
| Constructor and Description |
|---|
WindowsVirtualMachine(AttachProvider provider,
java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
closePipe(long hPipe) |
(package private) static void |
closeProcess(long hProcess) |
(package private) static void |
connectPipe(long hPipe) |
(package private) static long |
createPipe(java.lang.String name) |
void |
detach()
Detach from the virtual machine.
|
(package private) static void |
enqueue(long hProcess,
byte[] stub,
java.lang.String cmd,
java.lang.String pipename,
java.lang.Object... args) |
(package private) java.io.InputStream |
execute(java.lang.String cmd,
java.lang.Object... args) |
(package private) static byte[] |
generateStub() |
(package private) static void |
init() |
(package private) static long |
openProcess(int pid) |
(package private) static int |
readPipe(long hPipe,
byte[] buf,
int off,
int buflen) |
attachTimeout, dumpHeap, executeJCmd, getAgentProperties, getSystemProperties, heapHisto, loadAgent, loadAgentLibrary, loadAgentPath, localDataDump, printFlag, readInt, remoteDataDump, setFlagattach, attach, equals, hashCode, id, list, loadAgent, loadAgentLibrary, loadAgentPath, provider, toStringpublic WindowsVirtualMachine(AttachProvider provider, java.lang.String id) throws AttachNotSupportedException, java.io.IOException
AttachNotSupportedExceptionjava.io.IOExceptionpublic void detach()
throws java.io.IOException
VirtualMachineIOException 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.detach in class VirtualMachinejava.io.IOException - If an I/O error occursjava.io.InputStream execute(java.lang.String cmd,
java.lang.Object... args)
throws AgentLoadException,
java.io.IOException
execute in class HotSpotVirtualMachineAgentLoadExceptionjava.io.IOExceptionstatic void init()
static byte[] generateStub()
static long openProcess(int pid)
throws java.io.IOException
java.io.IOExceptionstatic void closeProcess(long hProcess)
throws java.io.IOException
java.io.IOExceptionstatic long createPipe(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionstatic void closePipe(long hPipe)
throws java.io.IOException
java.io.IOExceptionstatic void connectPipe(long hPipe)
throws java.io.IOException
java.io.IOExceptionstatic int readPipe(long hPipe,
byte[] buf,
int off,
int buflen)
throws java.io.IOException
java.io.IOExceptionstatic void enqueue(long hProcess,
byte[] stub,
java.lang.String cmd,
java.lang.String pipename,
java.lang.Object... args)
throws java.io.IOException
java.io.IOException