org.seasar.robot
クラス S2RobotThread

java.lang.Object
  上位を拡張 org.seasar.robot.S2RobotThread
すべての実装されたインタフェース:
Runnable

public class S2RobotThread
extends Object
implements Runnable

作成者:
shinsuke

フィールドの概要
protected  S2RobotClientFactory clientFactory
           
protected  S2Container container
           
protected  DataService dataService
           
protected  LogHelper logHelper
           
protected  S2RobotContext robotContext
           
protected  UrlQueueService urlQueueService
           
 
コンストラクタの概要
S2RobotThread()
           
 
メソッドの概要
protected  void finishCrawling()
           
protected  S2RobotClient getClient(String url)
           
protected  boolean isContentUpdated(S2RobotClient client, UrlQueue urlQueue)
           
protected  boolean isContinue(int tcCount)
           
protected  boolean isValid(UrlQueue urlQueue)
           
protected  void log(LogHelper logHelper, LogType key, Object... objs)
           
protected  void processResponse(UrlQueue urlQueue, ResponseData responseData)
           
 void run()
           
protected  void startCrawling()
           
protected  void storeChildUrl(String childUrl, String url, int depth)
           
protected  void storeChildUrls(Set<String> childUrlList, String url, int depth)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

urlQueueService

protected UrlQueueService urlQueueService

dataService

protected DataService dataService

container

protected S2Container container

logHelper

protected LogHelper logHelper

clientFactory

protected S2RobotClientFactory clientFactory

robotContext

protected S2RobotContext robotContext
コンストラクタの詳細

S2RobotThread

public S2RobotThread()
メソッドの詳細

startCrawling

protected void startCrawling()

finishCrawling

protected void finishCrawling()

isContinue

protected boolean isContinue(int tcCount)

log

protected void log(LogHelper logHelper,
                   LogType key,
                   Object... objs)

run

public void run()
定義:
インタフェース Runnable 内の run

getClient

protected S2RobotClient getClient(String url)

isContentUpdated

protected boolean isContentUpdated(S2RobotClient client,
                                   UrlQueue urlQueue)

processResponse

protected void processResponse(UrlQueue urlQueue,
                               ResponseData responseData)

storeChildUrls

protected void storeChildUrls(Set<String> childUrlList,
                              String url,
                              int depth)

storeChildUrl

protected void storeChildUrl(String childUrl,
                             String url,
                             int depth)

isValid

protected boolean isValid(UrlQueue urlQueue)


Copyright © 2009-2010 The Seasar Foundation. All Rights Reserved.