Package sun.tools.attach
Class WindowsVirtualMachine
- java.lang.Object
-
- com.sun.tools.attach.VirtualMachine
-
- sun.tools.attach.HotSpotVirtualMachine
-
- sun.tools.attach.WindowsVirtualMachine
-
public class WindowsVirtualMachine extends HotSpotVirtualMachine
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classWindowsVirtualMachine.PipedInputStream
-
Constructor Summary
Constructors Constructor Description WindowsVirtualMachine(AttachProvider provider, java.lang.String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static voidclosePipe(long hPipe)(package private) static voidcloseProcess(long hProcess)(package private) static voidconnectPipe(long hPipe)(package private) static longcreatePipe(java.lang.String name)voiddetach()Detach from the virtual machine.(package private) static voidenqueue(long hProcess, byte[] stub, java.lang.String cmd, java.lang.String pipename, java.lang.Object... args)(package private) java.io.InputStreamexecute(java.lang.String cmd, java.lang.Object... args)(package private) static byte[]generateStub()(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 sun.tools.attach.HotSpotVirtualMachine
attachTimeout, dumpHeap, executeJCmd, getAgentProperties, getSystemProperties, heapHisto, loadAgent, loadAgentLibrary, loadAgentPath, localDataDump, printFlag, readInt, remoteDataDump, setFlag
-
Methods inherited from class com.sun.tools.attach.VirtualMachine
attach, attach, equals, hashCode, id, list, loadAgent, loadAgentLibrary, loadAgentPath, provider, toString
-
-
-
-
Constructor Detail
-
WindowsVirtualMachine
public WindowsVirtualMachine(AttachProvider provider, java.lang.String id) throws AttachNotSupportedException, java.io.IOException
- Throws:
AttachNotSupportedExceptionjava.io.IOException
-
-
Method Detail
-
detach
public void detach() throws java.io.IOExceptionDescription 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:
java.io.IOException- If an I/O error occurs
-
execute
java.io.InputStream execute(java.lang.String cmd, java.lang.Object... args) throws AgentLoadException, java.io.IOException- Specified by:
executein classHotSpotVirtualMachine- Throws:
AgentLoadExceptionjava.io.IOException
-
init
static void init()
-
generateStub
static byte[] generateStub()
-
openProcess
static long openProcess(int pid) throws java.io.IOException- Throws:
java.io.IOException
-
closeProcess
static void closeProcess(long hProcess) throws java.io.IOException- Throws:
java.io.IOException
-
createPipe
static long createPipe(java.lang.String name) throws java.io.IOException- Throws:
java.io.IOException
-
closePipe
static void closePipe(long hPipe) throws java.io.IOException- Throws:
java.io.IOException
-
connectPipe
static void connectPipe(long hPipe) throws java.io.IOException- Throws:
java.io.IOException
-
readPipe
static int readPipe(long hPipe, byte[] buf, int off, int buflen) throws java.io.IOException- Throws:
java.io.IOException
-
enqueue
static void enqueue(long hProcess, byte[] stub, java.lang.String cmd, java.lang.String pipename, java.lang.Object... args) throws java.io.IOException- Throws:
java.io.IOException
-
-