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 SummaryFields 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 SummaryConstructors Constructor Description DirectoryDownloaderAgent()
 - 
Method SummaryAll 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- 
agentprotected IInternalAccess agent The agent.
 - 
baseurlprotected java.lang.String baseurl The base server URL to start looking for subdirectories.
 - 
targetdirprotected java.lang.String targetdir The target directory for downloading changed files (defaults to current directory).
 - 
patternprotected java.lang.String pattern Regular expression to match against path names (defaults to any).
 - 
intervalprotected long interval The update interval (defaults to 24h).
 - 
tpprotected IDaemonThreadPoolService tp The thread pool for asynchronous download.
 - 
conmanprotected HttpConnectionManager conman The connection manager for open connections.
 
- 
 - 
Method Detail- 
initpublic void init() Start the agent.
 - 
shutdownpublic void shutdown() Terminate the agent.
 - 
bodypublic void body() Execute the agent behavior.
 - 
updateprotected IFuture<java.lang.Void> update() Check for updates and download new files.
 
- 
 
-