Class DirectoryDownloaderAgent
- java.lang.Object
-
- jadex.platform.service.autoupdate.DirectoryDownloaderAgent
-
public class DirectoryDownloaderAgent extends java.lang.ObjectDownload latest files from e.g. jadex nightly builds page.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected java.lang.StringbaseurlThe base server URL to start looking for subdirectories.protected HttpConnectionManagerconmanThe connection manager for open connections.protected longintervalThe update interval (defaults to 24h).protected java.lang.StringpatternRegular expression to match against path names (defaults to any).protected java.lang.StringtargetdirThe target directory for downloading changed files (defaults to current directory).protected IDaemonThreadPoolServicetpThe thread pool for asynchronous download.
-
Constructor Summary
Constructors Constructor Description DirectoryDownloaderAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbody()Execute the agent behavior.voidinit()Start the agent.voidshutdown()Terminate the agent.protected IFuture<java.lang.Void>update()Check for updates and download new files.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
The agent.
-
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).
-
tp
protected IDaemonThreadPoolService tp
The thread pool for asynchronous download.
-
conman
protected HttpConnectionManager conman
The connection manager for open connections.
-
-
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.
-
-