Class TaskGeneratorMostRecentRunInfo


  • public class TaskGeneratorMostRecentRunInfo
    extends BaseTaskGeneratorInfo
    a task generator running history which keeps the most recent several success run timestamp and the most recent several error run messages.
    • Method Detail

      • getTableNameWithType

        public String getTableNameWithType()
        Returns the table name with type
      • getMostRecentErrorRunMessages

        public TreeMap<String,​String> getMostRecentErrorRunMessages()
        Gets the timestamp to error message map of the most recent several error runs
      • addErrorRunMessage

        public void addErrorRunMessage​(long ts,
                                       String message)
        Adds an error run message
        Parameters:
        ts - A timestamp
        message - An error message.
      • getMostRecentSuccessRunTS

        public List<String> getMostRecentSuccessRunTS()
        Gets the timestamp of the most recent several success runs
      • addSuccessRunTs

        public void addSuccessRunTs​(long ts)
        Adds a success task generating run timestamp
        Parameters:
        ts - A timestamp