Class LocalDataSource

    • Constructor Summary

      Constructors 
      Constructor Description
      LocalDataSource()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected long getLastUpdated​(java.io.File repo)
      Retrieves the last updated date from the local file system (in a file next to the repo file).
      protected void saveLastUpdated​(java.io.File repo, long timestamp)
      Saves the timestamp in a properties file next to the provided repo file
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocalDataSource

        public LocalDataSource()
    • Method Detail

      • saveLastUpdated

        protected void saveLastUpdated​(java.io.File repo,
                                       long timestamp)
        Saves the timestamp in a properties file next to the provided repo file
        Parameters:
        repo - the local file data source
        timestamp - the epoch timestamp to store
      • getLastUpdated

        protected long getLastUpdated​(java.io.File repo)
        Retrieves the last updated date from the local file system (in a file next to the repo file).
        Parameters:
        repo - the local file data source
        Returns:
        the epoch timestamp of the last updated date/time