public static class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe extends Object implements VirtualMachine.ForHotSpot.Connection
Modifier and Type | Class and Description |
---|---|
static class |
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.Factory
A factory for establishing a connection to a JVM using a named pipe in JNA.
|
protected static class |
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.NamedPipeResponse
A response that is sent via a named pipe.
|
protected static interface |
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibrary
A library for interacting with Windows.
|
protected static interface |
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsLibrary
A library for interacting with Windows.
|
VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket, VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor, VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe, VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel, VirtualMachine.ForHotSpot.Connection.Response
Modifier | Constructor and Description |
---|---|
protected |
ForJnaWindowsNamedPipe(VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsLibrary library,
VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibrary attachLibrary,
com.sun.jna.platform.win32.WinNT.HANDLE process,
com.sun.jna.platform.win32.WinDef.LPVOID code)
Creates a new connection via a named pipe.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
VirtualMachine.ForHotSpot.Connection.Response |
execute(String protocol,
String... argument)
Executes a command on the current connection.
|
protected ForJnaWindowsNamedPipe(VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsLibrary library, VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibrary attachLibrary, com.sun.jna.platform.win32.WinNT.HANDLE process, com.sun.jna.platform.win32.WinDef.LPVOID code)
library
- The library to use for communicating with Windows native functions.attachLibrary
- The library to use for communicating with Windows attachment extension that is included as a DLL.process
- The handle of the target VM's process.code
- A pointer to the code that was injected into the target process.public VirtualMachine.ForHotSpot.Connection.Response execute(String protocol, String... argument)
execute
in interface VirtualMachine.ForHotSpot.Connection
protocol
- The target VMs protocol version for the attach API.argument
- The arguments to send to the target VM.public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2019. All rights reserved.