Package org.appng.core.controller
Class RepositoryWatcher
- java.lang.Object
-
- org.appng.core.controller.RepositoryWatcher
-
- All Implemented Interfaces:
Runnable
public class RepositoryWatcher extends Object implements Runnable
A service that watches for modified/deleted files in a
If caching for the site is active (seeSite
's www-directory (seeSiteProperties.WWW_DIR
) using aWatchService
.SiteProperties.CACHE_ENABLED
), cache entries for the modified/deleted files are removed from the cache. Since there could be some forwarding rules defined in the site'surlrewrite.xml
, it is also necessary to parse these rules and remove the 'aliases' from the cache.- Author:
- Matthias Müller
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_RULE_SUFFIX
protected Long
forwardsUpdatedAt
protected AtomicLong
numEvents
protected AtomicLong
numOverflows
-
Constructor Summary
Constructors Constructor Description RepositoryWatcher(Site site, String jspExtension, String ruleSourceSuffix)
-
-
-
Field Detail
-
DEFAULT_RULE_SUFFIX
public static final String DEFAULT_RULE_SUFFIX
- See Also:
- Constant Field Values
-
forwardsUpdatedAt
protected Long forwardsUpdatedAt
-
numEvents
protected AtomicLong numEvents
-
numOverflows
protected AtomicLong numOverflows
-
-