Class LastReindexDateManager

java.lang.Object
edu.ucsb.nceas.metacat.index.queue.LastReindexDateManager

public class LastReindexDateManager extends Object
A class to save/retrieve the last re-index date.
Author:
tao
  • Method Details

    • getInstance

      public static LastReindexDateManager getInstance() throws IOException
      Get the singleton instance of the class
      Returns:
      the LastReindexDateManager instance
      Throws:
      IOException
    • getLastProcessDate

      public Date getLastProcessDate() throws IOException, ParseException
      Get the latest SystemMetadata modification Date of the objects that were built the solr index during the previous timed indexing process.
      Returns:
      the date. The null will be returned if there is no such date.
      Throws:
      IndexEventLogException
      IOException
      ParseException
    • setLastProcessDate

      public void setLastProcessDate(Date date) throws IOException
      Set the SystemMetadata modification Date of the objects that were built the solr index during the previous timed indexing process.
      Throws:
      IndexEventLogException
      IOException