Class CaptureControlServer
java.lang.Object
com.shaft.capture.control.CaptureControlServer
- All Implemented Interfaces:
AutoCloseable
Loopback-only authenticated control endpoint for a detached recorder.
-
Constructor Summary
ConstructorsConstructorDescriptionCaptureControlServer(CaptureManager manager, CaptureControlFiles files, String token, Runnable stoppedCallback) Creates the loopback control endpoint. -
Method Summary
-
Constructor Details
-
CaptureControlServer
public CaptureControlServer(CaptureManager manager, CaptureControlFiles files, String token, Runnable stoppedCallback) Creates the loopback control endpoint.- Parameters:
manager- capture lifecyclefiles- local state filestoken- authorization tokenstoppedCallback- callback after stop
-
-
Method Details
-
start
public int start()Starts accepting local control requests.- Returns:
- assigned loopback port
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-