Class VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile

java.lang.Object
net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile
All Implemented Interfaces:
VirtualMachine.ForHotSpot.Connection.Factory
Enclosing interface:
VirtualMachine.ForHotSpot.Connection.Factory

public abstract static class VirtualMachine.ForHotSpot.Connection.Factory.ForSocketFile extends Object implements VirtualMachine.ForHotSpot.Connection.Factory
A factory for attaching via a socket file.
  • Field Details

    • SOCKET_FILE_PREFIX

      private static final String SOCKET_FILE_PREFIX
      The name prefix for a socket.
      See Also:
    • ATTACH_FILE_PREFIX

      private static final String ATTACH_FILE_PREFIX
      The name prefix for an attachment file indicator.
      See Also:
    • temporaryDirectory

      private final String temporaryDirectory
      The temporary directory to use.
    • attempts

      private final int attempts
      The maximum amount of attempts for checking the establishment of a socket connection.
    • pause

      private final long pause
      The pause between two checks for an established socket connection.
    • timeUnit

      private final TimeUnit timeUnit
      The time unit of the pause time.
  • Constructor Details

    • ForSocketFile

      protected ForSocketFile(String temporaryDirectory, int attempts, long pause, TimeUnit timeUnit)
      Creates a connection factory for creating a socket connection via a file.
      Parameters:
      temporaryDirectory - The temporary directory to use.
      attempts - The maximum amount of attempts for checking the establishment of a socket connection.
      pause - The pause between two checks for an established socket connection.
      timeUnit - The time unit of the pause time.
  • Method Details