Class AttestFacade.Handle

java.lang.Object
org.egothor.methodatlas.attest.AttestFacade.Handle
Enclosing class:
AttestFacade

public static final class AttestFacade.Handle extends Object
Opaque handle returned by AttestFacade.prepare(double, List). Carries the collector through the scan and yields the manifest when the scan is done.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.egothor.methodatlas.emit.TestMethodSink
    Returns the TestMethodSink that the orchestrator must receive every per-method record on.
    void
    write(String toolVersion, Path outputFile)
    Builds the attestation manifest and writes it to outputFile.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • asSink

      public org.egothor.methodatlas.emit.TestMethodSink asSink()
      Returns the TestMethodSink that the orchestrator must receive every per-method record on.
      Returns:
      collector as a sink
    • write

      public void write(String toolVersion, Path outputFile) throws IOException
      Builds the attestation manifest and writes it to outputFile.
      Parameters:
      toolVersion - resolved tool version string
      outputFile - destination path
      Throws:
      IOException - if the file cannot be written