Package adams.flow.control
Class AbstractDataContainerFileChecker.FileInfo
- java.lang.Object
-
- adams.flow.control.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 Summary
Fields Modifier and Type Field Description protected Date
m_AddedTimestamp
the timestamp the file was added.protected Date
m_CheckTimestamp
the timestamp the file should be checked again at earliest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getAddedTimestamp()
Returns the timestamp when it got added.Date
getCheckTimestamp()
Returns the earliest timestamp when to check this file again.String
toString()
Returns a short string representation of the item.void
updateCheckTimestamp(String timeDiff)
Updates the timestamp after which the item should get checked again.
-
-
-
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"
-
-