Package com.flaptor.hounder.crawler

Examples of com.flaptor.hounder.crawler.CacheBean


        }
    }

    public static void main (String[] args){
        ConfigBean config= new ConfigBean();
        CacheBean cacheB= new CacheBean();
        String cacheDir= args[1];
        String baseDir=args[2];
        String urlFile=args[3];
        boolean refetch= false;
        if (args.length == 5 && args[4].equalsIgnoreCase("refetch")){
          refetch=true;
            logger.debug("Forcing refetch");
        } else {
            logger.debug("Not forcing refetch");
        }
        config.initialize(null, cacheDir, baseDir, urlFile, -1);
        cacheB.initialize(config.getCacheDir(), true);
        UrlsBean ub= new UrlsBean();
        ub.initialize(config,cacheB);
        ub.startBGFetcher(refetch);       
    }
View Full Code Here

TOP

Related Classes of com.flaptor.hounder.crawler.CacheBean

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.