Class HotDeploy
java.lang.Object
com.iizix.server.app.HotDeploy
A hot deploy app that defines what is included for hot deploy to check for changes. The file system watcher service on the top level directory is used, then when it happens, the application files and directories are checked if it does affect a reload.
- Author:
- Christopher Mindus
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longThe default settle time in milliseconds: an application whose files have changed is reported as changed only once no file event has arrived for this long, so that a reload never runs in the middle of a rebuild (CC-FIX-TRANSLATION-ENGINE-RELOAD).Method Summary
Modifier and TypeMethodDescriptionFile[]addDirectory(File dir) Adds a new directory to check for changes.File[]addDirectory(File dir, File[] files) Adds a new directory to check for changes.voidAdds a new file or directory to check for changes.static longGets the settle time: how long the files of an application must have been quiet before it is reported as changed.
Field Details
DEFAULT_SETTLE_TIME
public static final long DEFAULT_SETTLE_TIMEThe default settle time in milliseconds: an application whose files have changed is reported as changed only once no file event has arrived for this long, so that a reload never runs in the middle of a rebuild (CC-FIX-TRANSLATION-ENGINE-RELOAD). Two seconds: a build writes the class files of a project within fractions of a second of each other (an iiziGo restart rebuilt four projects in five seconds, 2026-10-27), and a single save of a developer is live two seconds later.- See Also:
Method Details
getSettleTime
public static long getSettleTime()Gets the settle time: how long the files of an application must have been quiet before it is reported as changed.- Returns:
- The settle time in milliseconds.
addFile
Adds a new file or directory to check for changes.- Parameters:
file- The file or directory to keep track of.
addDirectory
addDirectory