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.
  • Field Details

  • Constructor Details

  • Method Details

    • execute

      public VirtualMachine.ForHotSpot.Connection.Response execute(String protocol, String... argument)
      Executes a command on the current connection.
      Specified by:
      execute in interface VirtualMachine.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.
    • createSecurityAttributesToAllowMediumIntegrity

      private com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES createSecurityAttributesToAllowMediumIntegrity()
      Custom WinBase.SECURITY_ATTRIBUTES is required here to "get" Medium Integrity Level. In order to allow Medium Integrity Level clients to open and use a NamedPipe created by an High Integrity Level process.
      Returns:
      A security attributes object that gives everyone read and write access.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable