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.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Datem_AddedTimestampthe timestamp the file was added.protected Datem_CheckTimestampthe timestamp the file should be checked again at earliest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetAddedTimestamp()Returns the timestamp when it got added.DategetCheckTimestamp()Returns the earliest timestamp when to check this file again.StringtoString()Returns a short string representation of the item.voidupdateCheckTimestamp(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"
-
-