Class DirectoryDownloaderAgent
- java.lang.Object
-
- jadex.platform.service.autoupdate.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.
-
Constructor Summary
Constructors Constructor Description DirectoryDownloaderAgent()
-
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.
-
-
-
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.
-
-