Record Class CrawlCleanupService.RunResources

java.lang.Object
java.lang.Record
ai.pipestream.module.pipelineprobe.pipelinecrawl.CrawlCleanupService.RunResources
Record Components:
intakeAccount - the account the intake side ran under
intakeMinted - true if this run created intakeAccount (delete it and all its drives) rather than the caller supplying a long-lived one
pipelineAccount - the account the pipeline side ran under
pipelineMinted - true if this run created pipelineAccount
graphId - the run's pipeline graph id (its versions are deleted)
planId - the run's IndexPlan id, or null when the sink wasn't in the graph (then there are no plan/indices to drop)
datasourceId - the run's datasource id, deleted only when the intake account was minted by this run
retainIndex - true to keep the OS indices, their IndexPlan, and the claim-check drive for inspection; everything else is still deleted
Enclosing class:
CrawlCleanupService

public static record CrawlCleanupService.RunResources(String intakeAccount, boolean intakeMinted, String pipelineAccount, boolean pipelineMinted, String graphId, String planId, String datasourceId, boolean retainIndex) extends Record
Everything one run needs torn down. Minted flags distinguish "this run created the account" (delete it and all its drives) from "the caller supplied a long-lived account" (delete only the run-scoped claim-check drive; never touch the account, its datasource, or its intake/pipeline drives).
  • Constructor Details

    • RunResources

      public RunResources(String intakeAccount, boolean intakeMinted, String pipelineAccount, boolean pipelineMinted, String graphId, String planId, String datasourceId, boolean retainIndex)
      Creates an instance of a RunResources record class.
      Parameters:
      intakeAccount - the value for the intakeAccount record component
      intakeMinted - the value for the intakeMinted record component
      pipelineAccount - the value for the pipelineAccount record component
      pipelineMinted - the value for the pipelineMinted record component
      graphId - the value for the graphId record component
      planId - the value for the planId record component
      datasourceId - the value for the datasourceId record component
      retainIndex - the value for the retainIndex record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • intakeAccount

      public String intakeAccount()
      Returns the value of the intakeAccount record component.
      Returns:
      the value of the intakeAccount record component
    • intakeMinted

      public boolean intakeMinted()
      Returns the value of the intakeMinted record component.
      Returns:
      the value of the intakeMinted record component
    • pipelineAccount

      public String pipelineAccount()
      Returns the value of the pipelineAccount record component.
      Returns:
      the value of the pipelineAccount record component
    • pipelineMinted

      public boolean pipelineMinted()
      Returns the value of the pipelineMinted record component.
      Returns:
      the value of the pipelineMinted record component
    • graphId

      public String graphId()
      Returns the value of the graphId record component.
      Returns:
      the value of the graphId record component
    • planId

      public String planId()
      Returns the value of the planId record component.
      Returns:
      the value of the planId record component
    • datasourceId

      public String datasourceId()
      Returns the value of the datasourceId record component.
      Returns:
      the value of the datasourceId record component
    • retainIndex

      public boolean retainIndex()
      Returns the value of the retainIndex record component.
      Returns:
      the value of the retainIndex record component