Package org.apache.oodt.cas.crawl.structs.exceptions

Examples of org.apache.oodt.cas.crawl.structs.exceptions.CrawlException


        try {
            avgCrawlTime = ((Double) client.execute(
                    "crawldaemon.getAverageCrawlTime", argList)).doubleValue();
        } catch (XmlRpcException e) {
            throw new CrawlException(e.getMessage());
        } catch (IOException e) {
            throw new CrawlException(e.getMessage());
        }

        return avgCrawlTime;
    }
View Full Code Here


        try {
            milisCrawling = ((Integer) client.execute(
                    "crawldaemon.getMilisCrawling", argList)).intValue();
        } catch (XmlRpcException e) {
            throw new CrawlException(e.getMessage());
        } catch (IOException e) {
            throw new CrawlException(e.getMessage());
        }

        return milisCrawling;
    }
View Full Code Here

        try {
            waitInterval = ((Integer) client.execute(
                    "crawldaemon.getWaitInterval", argList)).intValue();
        } catch (XmlRpcException e) {
            throw new CrawlException(e.getMessage());
        } catch (IOException e) {
            throw new CrawlException(e.getMessage());
        }

        return waitInterval;
    }
View Full Code Here

        try {
            numCrawls = ((Integer) client.execute("crawldaemon.getNumCrawls",
                    argList)).intValue();
        } catch (XmlRpcException e) {
            throw new CrawlException(e.getMessage());
        } catch (IOException e) {
            throw new CrawlException(e.getMessage());
        }

        return numCrawls;

    }
View Full Code Here

        try {
            running = ((Boolean) client.execute("crawldaemon.isRunning",
                    argList)).booleanValue();
        } catch (XmlRpcException e) {
            throw new CrawlException(e.getMessage());
        } catch (IOException e) {
            throw new CrawlException(e.getMessage());
        }

        return running;
    }
View Full Code Here

        try {
            running = ((Boolean) client.execute("crawldaemon.stop", argList))
                    .booleanValue();
        } catch (XmlRpcException e) {
            throw new CrawlException(e.getMessage());
        } catch (IOException e) {
            throw new CrawlException(e.getMessage());
        }

        if (running) {
            throw new CrawlException("Stop attempt failed: crawl daemon: ["
                    + this.client.getURL() + "] still running");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.crawl.structs.exceptions.CrawlException

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.