Class DirectoryDownloaderAgent


  • public class DirectoryDownloaderAgent
    extends java.lang.Object
    Download latest files from e.g. jadex nightly builds page.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IInternalAccess agent
      The agent.
      protected java.lang.String baseurl
      The base server URL to start looking for subdirectories.
      protected HttpConnectionManager conman
      The connection manager for open connections.
      protected long interval
      The update interval (defaults to 24h).
      protected java.lang.String pattern
      Regular expression to match against path names (defaults to any).
      protected java.lang.String targetdir
      The target directory for downloading changed files (defaults to current directory).
      protected IDaemonThreadPoolService tp
      The thread pool for asynchronous download.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void body()
      Execute the agent behavior.
      void init()
      Start the agent.
      void shutdown()
      Terminate the agent.
      protected IFuture<java.lang.Void> update()
      Check for updates and download new files.
      • Methods inherited from class java.lang.Object

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

      • baseurl

        protected java.lang.String baseurl
        The base server URL to start looking for subdirectories.
      • targetdir

        protected java.lang.String targetdir
        The target directory for downloading changed files (defaults to current directory).
      • pattern

        protected java.lang.String pattern
        Regular expression to match against path names (defaults to any).
      • interval

        protected long interval
        The update interval (defaults to 24h).
    • Constructor Detail

      • DirectoryDownloaderAgent

        public DirectoryDownloaderAgent()
    • Method Detail

      • init

        public void init()
        Start the agent.
      • shutdown

        public void shutdown()
        Terminate the agent.
      • body

        public void body()
        Execute the agent behavior.
      • update

        protected IFuture<java.lang.Void> update()
        Check for updates and download new files.