Class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe
java.lang.Object
net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe
- All Implemented Interfaces:
Closeable, AutoCloseable, VirtualMachine.ForHotSpot.Connection
- Enclosing interface:
VirtualMachine.ForHotSpot.Connection
public static class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe
extends Object
implements VirtualMachine.ForHotSpot.Connection
Implements a connection for a Windows named pipe in JNA.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA factory for establishing a connection to a JVM using a named pipe in JNA.protected static classA response that is sent via a named pipe.protected static interfaceA library for interacting with Windows.protected static interfaceA library for interacting with Windows.Nested classes/interfaces inherited from interface VirtualMachine.ForHotSpot.Connection
VirtualMachine.ForHotSpot.Connection.ForJnaPosixSocket, VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor, VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe, VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel<T>, VirtualMachine.ForHotSpot.Connection.Response -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForJnaWindowsNamedPipe(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. -
Method Summary
-
Constructor Details
-
ForJnaWindowsNamedPipe
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.- Parameters:
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.
-
-
Method Details
-
execute
Executes a command on the current connection.- Specified by:
executein interfaceVirtualMachine.ForHotSpot.Connection- Parameters:
protocol- The target VMs protocol version for the attach API.argument- The arguments to send to the target VM.- Returns:
- The response of the target JVM.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-