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 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 static 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(String processId)
Connects to the supplied process.
-
-
-
Field Detail
-
LIBRARY_NAME
public static final 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
-
-
Method Detail
-
connect
public VirtualMachine.ForHotSpot.Connection connect(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.
-
-