org.seasar.robot
クラス S2Robot

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

public class S2Robot
extends Object
implements Runnable

S2Robot manages/controls a crawling information.

作成者:
shinsuke

フィールドの概要
protected  boolean background
           
protected  S2RobotClientFactory clientFactory
           
protected  S2Container container
           
protected  boolean daemon
           
protected  DataService dataService
           
protected  IntervalController intervalController
           
protected  Thread parentThread
           
protected  S2RobotContext robotContext
           
protected  RuleManager ruleManager
           
protected  int threadPriority
           
protected  UrlFilter urlFilter
           
protected  UrlQueueService urlQueueService
           
 
コンストラクタの概要
S2Robot()
           
 
メソッドの概要
 void addExcludeFilter(String regexp)
           
 void addIncludeFilter(String regexp)
           
 void addUrl(String url)
           
 void awaitTermination()
           
 void awaitTermination(long millis)
           
 void cleanup(String sessionId)
           
 String execute()
           
 S2RobotClientFactory getClientFactory()
           
 IntervalController getIntervalController()
           
 S2RobotContext getRobotContext()
           
 RuleManager getRuleManager()
           
 String getSessionId()
           
 UrlFilter getUrlFilter()
           
 boolean isBackground()
           
 boolean isDaemon()
           
 void run()
           
 void setBackground(boolean background)
           
 void setDaemon(boolean daemon)
           
 void setIntervalController(IntervalController intervalController)
           
 void setMaxAccessCount(long maxAccessCount)
           
 void setMaxDepth(int maxDepth)
           
 void setMaxThreadCheckCount(int maxThreadCheckCount)
           
 void setNumOfThread(int numOfThread)
           
 void setRuleManager(RuleManager ruleManager)
           
 void setSessionId(String sessionId)
           
 void setThreadPriority(int threadPriority)
           
 void setUrlFilter(UrlFilter urlFilter)
           
 void stop()
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

urlQueueService

protected UrlQueueService urlQueueService

dataService

protected DataService dataService

urlFilter

protected UrlFilter urlFilter

ruleManager

protected RuleManager ruleManager

container

protected S2Container container

intervalController

protected IntervalController intervalController

clientFactory

protected S2RobotClientFactory clientFactory

robotContext

protected S2RobotContext robotContext

background

protected boolean background

daemon

protected boolean daemon

threadPriority

protected int threadPriority

parentThread

protected Thread parentThread
コンストラクタの詳細

S2Robot

public S2Robot()
メソッドの詳細

addUrl

public void addUrl(String url)

getSessionId

public String getSessionId()

setSessionId

public void setSessionId(String sessionId)

execute

public String execute()

awaitTermination

public void awaitTermination()

awaitTermination

public void awaitTermination(long millis)

cleanup

public void cleanup(String sessionId)

addIncludeFilter

public void addIncludeFilter(String regexp)

addExcludeFilter

public void addExcludeFilter(String regexp)

stop

public void stop()

getUrlFilter

public UrlFilter getUrlFilter()

setUrlFilter

public void setUrlFilter(UrlFilter urlFilter)

getRuleManager

public RuleManager getRuleManager()

setRuleManager

public void setRuleManager(RuleManager ruleManager)

getIntervalController

public IntervalController getIntervalController()

setIntervalController

public void setIntervalController(IntervalController intervalController)

getClientFactory

public S2RobotClientFactory getClientFactory()

isBackground

public boolean isBackground()

setBackground

public void setBackground(boolean background)

isDaemon

public boolean isDaemon()

setDaemon

public void setDaemon(boolean daemon)

run

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

getRobotContext

public S2RobotContext getRobotContext()

setNumOfThread

public void setNumOfThread(int numOfThread)

setMaxThreadCheckCount

public void setMaxThreadCheckCount(int maxThreadCheckCount)

setMaxDepth

public void setMaxDepth(int maxDepth)

setMaxAccessCount

public void setMaxAccessCount(long maxAccessCount)

setThreadPriority

public void setThreadPriority(int threadPriority)


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