Class CaptureControlServer

java.lang.Object
com.shaft.capture.control.CaptureControlServer
All Implemented Interfaces:
AutoCloseable

public final class CaptureControlServer extends Object implements AutoCloseable
Loopback-only authenticated control endpoint for a detached recorder.
  • Constructor Details

    • CaptureControlServer

      public CaptureControlServer(CaptureManager manager, CaptureControlFiles files, String token, Runnable stoppedCallback)
      Creates the loopback control endpoint.
      Parameters:
      manager - capture lifecycle
      files - local state files
      token - authorization token
      stoppedCallback - callback after stop
  • Method Details

    • start

      public int start()
      Starts accepting local control requests.
      Returns:
      assigned loopback port
    • close

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