Record Class ShardBlob

java.lang.Object
java.lang.Record
com.shaft.doctor.shard.ShardBlob
Record Components:
root - shard blob root directory
allureResults - allure-results subdirectory, may not exist
traces - shaft-traces subdirectory, may not exist
executionIntelligence - execution-intelligence.json file, may not exist

public record ShardBlob(Path root, Path allureResults, Path traces, Path executionIntelligence) extends Record
One resolved per-shard blob directory laid out by convention as:
<shardRoot>/
  allure-results/*.json        (raw Allure result/container/attachment files)
  shaft-traces/...             (optional, copied through untouched)
  execution-intelligence.json  (optional, doctor ExecutionIntelligence for this shard)
  • Constructor Details

    • ShardBlob

      public ShardBlob(Path root, Path allureResults, Path traces, Path executionIntelligence)
      Creates an instance of a ShardBlob record class.
      Parameters:
      root - the value for the root record component
      allureResults - the value for the allureResults record component
      traces - the value for the traces record component
      executionIntelligence - the value for the executionIntelligence record component
  • Method Details

    • of

      public static ShardBlob of(Path root)
      Resolves the conventional blob layout under a shard root directory.
      Parameters:
      root - shard blob root directory
      Returns:
      resolved shard blob paths (existence is not checked here)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • root

      public Path root()
      Returns the value of the root record component.
      Returns:
      the value of the root record component
    • allureResults

      public Path allureResults()
      Returns the value of the allureResults record component.
      Returns:
      the value of the allureResults record component
    • traces

      public Path traces()
      Returns the value of the traces record component.
      Returns:
      the value of the traces record component
    • executionIntelligence

      public Path executionIntelligence()
      Returns the value of the executionIntelligence record component.
      Returns:
      the value of the executionIntelligence record component