Package com.flaptor.hounder.crawler.modules

Examples of com.flaptor.hounder.crawler.modules.CacheModule


     */
    public void refresh () {
        boolean hasCache = false;
        IProcessorModule[] caches = ModulesManager.getInstance().getModuleInstances("com.flaptor.hounder.crawler.modules.CacheModule");
        if (caches.length > 0) {
            CacheModule cacheModule = null;
            FileCache<DocumentCacheItem> fileCache = null;
            for (int i=0; i<caches.length && null == fileCache; i++) {
                cacheModule = (CacheModule)caches[i];
                fileCache = cacheModule.getPageCache();
            }
            if (null != fileCache) {
                try {
                    ModulesManager.getInstance().unloadModule(cacheModule);
                    hasCache = true;
View Full Code Here

TOP

Related Classes of com.flaptor.hounder.crawler.modules.CacheModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.