---
title: "org.archive.crawler.restlet.JobResource"
author: "shareHua"
date: "2012-12-09T23:30:49Z"
tags: ["Heritrix3"]
categories: ["互联网"]
slug: "org-archive-crawler-restlet-jobresource"
draft: false
lastmod: "2012-12-19T18:57:42Z"
id: 1744706
url: "https://sharehua.iteye.com/blog/1744706"
---

1、build ：validateConfiguration（）
2、launch：launch()
   new Thread start ，CrawlController.requestCrawlStart()
   getFrontier().run();
3、pause：getCrawlController().requestCrawlPause()
4、unpause：getCrawlController().requestCrawlResume()
   BdbFrontier.unpause()
   BdbFrontier:A Frontier using several BerkeleyDB JE Databases to hold its record of known hosts (queues), and pending URIs.
   
   sendCrawlStateChangeEvent(State.RUNNING, CrawlStatus.RUNNING);

CrawlController noteFrontierState  INFO: Crawl running.
CrawlJob onApplicationEvent INFO: RUNNING 20121211155156

5、checkpoint：getCheckpointService().requestCrawlCheckpoint()
6、terminate：terminate()
7、teardown ：teardown()