Package net.bytebuddy.agent
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 Classes Modifier and Type Class Description static classVirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.FactoryA factory for establishing a connection to a JVM using a named pipe in JNA.protected static classVirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.NamedPipeResponseA response that is sent via a named pipe.protected static interfaceVirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibraryA library for interacting with Windows.protected static interfaceVirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsLibraryA library for interacting with Windows.-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.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
Constructors Modifier Constructor Description protectedForJnaWindowsNamedPipe(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()VirtualMachine.ForHotSpot.Connection.Responseexecute(String protocol, String... argument)Executes a command on the current connection.
-
-
-
Constructor Detail
-
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 Detail
-
execute
public VirtualMachine.ForHotSpot.Connection.Response execute(String protocol, String... argument)
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
-
-