Package net.bytebuddy.agent
Class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.Factory
- java.lang.Object
-
- net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.Factory
-
- All Implemented Interfaces:
VirtualMachine.ForHotSpot.Connection.Factory
- Enclosing class:
- VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe
public static class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.Factory extends java.lang.Object implements VirtualMachine.ForHotSpot.Connection.Factory
A factory for establishing a connection to a JVM using a named pipe in JNA.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.Factory
VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
-
-
Field Summary
Fields Modifier and Type Field Description private VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibrary
attachLibrary
The library to use for communicating with Windows attachment extension that is included as a DLL.private VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsLibrary
library
The library to use for communicating with Windows native functions.static java.lang.String
LIBRARY_NAME
The name of the native code library that is included in this artifact to support Windows attachment.
-
Constructor Summary
Constructors Constructor Description Factory()
Creates a new connection factory for Windows using JNA.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VirtualMachine.ForHotSpot.Connection
connect(java.lang.String processId)
Connects to the supplied process.
-
-
-
Field Detail
-
LIBRARY_NAME
public static final java.lang.String LIBRARY_NAME
The name of the native code library that is included in this artifact to support Windows attachment. This property can be set by other libraries that shade Byte Buddy agent and relocates the library.- See Also:
- Constant Field Values
-
library
private final VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsLibrary library
The library to use for communicating with Windows native functions.
-
attachLibrary
private final VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.WindowsAttachLibrary attachLibrary
The library to use for communicating with Windows attachment extension that is included as a DLL.
-
-
Method Detail
-
connect
public VirtualMachine.ForHotSpot.Connection connect(java.lang.String processId)
Connects to the supplied process.- Specified by:
connect
in interfaceVirtualMachine.ForHotSpot.Connection.Factory
- Parameters:
processId
- The process id.- Returns:
- The connection to the virtual machine with the supplied process id.
-
-