Class AbstractDataContainerFileChecker.FileInfo

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    AbstractDataContainerFileChecker<T extends DataContainer>

    public static class AbstractDataContainerFileChecker.FileInfo
    extends Object
    implements Serializable
    Container for storing additional information about a file, i.e., a timestamp when it first got black listed and a timestamp for when it should get checked again.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_AddedTimestamp

        protected Date m_AddedTimestamp
        the timestamp the file was added.
      • m_CheckTimestamp

        protected Date m_CheckTimestamp
        the timestamp the file should be checked again at earliest.
    • Constructor Detail

      • FileInfo

        public FileInfo​(String timeDiff)
        Initializes the container.
        Parameters:
        timeDiff - the time difference string before checking the file again, e.g., "START +1 HOUR"
        See Also:
        BaseDate
    • Method Detail

      • getAddedTimestamp

        public Date getAddedTimestamp()
        Returns the timestamp when it got added.
        Returns:
        the timestamp
      • getCheckTimestamp

        public Date getCheckTimestamp()
        Returns the earliest timestamp when to check this file again.
        Returns:
        the timestamp
      • updateCheckTimestamp

        public void updateCheckTimestamp​(String timeDiff)
        Updates the timestamp after which the item should get checked again.
        Parameters:
        timeDiff - the time string, e.g., "START +1 HOUR"
      • toString

        public String toString()
        Returns a short string representation of the item.
        Overrides:
        toString in class Object
        Returns:
        a string representation