Class GeoScrapeWatermark

java.lang.Object
ubic.gemma.model.expression.experiment.GeoScrapeWatermark
All Implemented Interfaces:
Serializable

@Entity public class GeoScrapeWatermark extends Object implements Serializable
Append-only record of one GEO scrape run. One row per POST /admin/tasks/geo-scrape invocation.

The pair scanFrom/scanTo defines the time window the scrape covered. The latest GeoScrapeWatermark.Status.COMPLETED row's scanTo is the high-water mark the next scrape resumes from. status tracks lifecycle (IN_PROGRESS, COMPLETED, FAILED, CANCELLED) so partial / wedged scrapes can be inspected and resumed.

Schema: Flyway mysql/V17__geo_scrape_watermark.sql + h2/V19__geo_scrape_watermark.sql. Paul-approved 2026-05-23.

See Also:
  • Constructor Details

    • GeoScrapeWatermark

      public GeoScrapeWatermark()
  • Method Details

    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getScannedAt

      public Date getScannedAt()
      When the scrape started (or was last updated). NOT NULL.
    • setScannedAt

      public void setScannedAt(Date scannedAt)
    • getScanFrom

      public Date getScanFrom()
      Inclusive lower bound of the scrape window; null if the first scrape ever.
    • setScanFrom

      public void setScanFrom(Date scanFrom)
    • getScanTo

      public Date getScanTo()
      Exclusive upper bound of the scrape window; null while IN_PROGRESS.
    • setScanTo

      public void setScanTo(Date scanTo)
    • getRecordsScanned

      public int getRecordsScanned()
    • setRecordsScanned

      public void setRecordsScanned(int recordsScanned)
    • getRecordsMatched

      public int getRecordsMatched()
    • setRecordsMatched

      public void setRecordsMatched(int recordsMatched)
    • getCriteriaApplied

      public String getCriteriaApplied()
      Comma-separated list of matcher names applied (e.g. "brain,scbrain,tfperturb"); null means "all available matchers".
    • setCriteriaApplied

      public void setCriteriaApplied(String criteriaApplied)
    • getStatus

      public GeoScrapeWatermark.Status getStatus()
    • setStatus

      public void setStatus(GeoScrapeWatermark.Status status)
    • getErrorMessage

      public String getErrorMessage()
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object