org.seasar.robot
クラス S2RobotContext

java.lang.Object
  上位を拡張 org.seasar.robot.S2RobotContext

public class S2RobotContext
extends Object

作成者:
shinsuke

フィールドの概要
protected  Long accessCount
           
protected  Object accessCountLock
           
protected  Integer activeThreadCount
           
protected  Object activeThreadCountLock
           
protected  IntervalController intervalController
           
protected  long maxAccessCount
          a max count to access urls. 0 is no limit to access it.
protected  int maxDepth
          a max depth for crawling. -1 is no depth check.
protected  int maxThreadCheckCount
           
protected  int numOfThread
          The number of a thread
protected  Set<String> robotTxtUrlSet
           
protected  RuleManager ruleManager
           
protected  boolean running
           
protected  String sessionId
           
protected  UrlFilter urlFilter
           
 
コンストラクタの概要
S2RobotContext()
           
 
メソッドの概要
 Long getAccessCount()
           
 Object getAccessCountLock()
           
 Integer getActiveThreadCount()
           
 Object getActiveThreadCountLock()
           
 IntervalController getIntervalController()
           
 long getMaxAccessCount()
           
 int getMaxDepth()
           
 int getMaxThreadCheckCount()
           
 int getNumOfThread()
           
 Set<String> getRobotTxtUrlSet()
           
 RuleManager getRuleManager()
           
 String getSessionId()
           
 UrlFilter getUrlFilter()
           
 boolean isRunning()
           
 void setAccessCount(Long accessCount)
           
 void setActiveThreadCount(Integer activeThreadCount)
           
 void setIntervalController(IntervalController intervalController)
           
 void setMaxAccessCount(long maxAccessCount)
           
 void setMaxDepth(int maxDepth)
           
 void setMaxThreadCheckCount(int maxThreadCheckCount)
           
 void setNumOfThread(int numOfThread)
           
 void setRobotTxtUrlSet(Set<String> robotTxtUrlSet)
           
 void setRuleManager(RuleManager ruleManager)
           
 void setRunning(boolean running)
           
 void setSessionId(String sessionId)
           
 void setUrlFilter(UrlFilter urlFilter)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

sessionId

protected String sessionId

activeThreadCount

protected Integer activeThreadCount

activeThreadCountLock

protected Object activeThreadCountLock

accessCount

protected volatile Long accessCount

accessCountLock

protected Object accessCountLock

running

protected volatile boolean running

urlFilter

protected UrlFilter urlFilter

ruleManager

protected RuleManager ruleManager

intervalController

protected IntervalController intervalController

robotTxtUrlSet

protected Set<String> robotTxtUrlSet

numOfThread

protected int numOfThread
The number of a thread


maxThreadCheckCount

protected int maxThreadCheckCount

maxDepth

protected int maxDepth
a max depth for crawling. -1 is no depth check.


maxAccessCount

protected long maxAccessCount
a max count to access urls. 0 is no limit to access it.

コンストラクタの詳細

S2RobotContext

public S2RobotContext()
メソッドの詳細

getSessionId

public String getSessionId()

setSessionId

public void setSessionId(String sessionId)

getActiveThreadCount

public Integer getActiveThreadCount()

setActiveThreadCount

public void setActiveThreadCount(Integer activeThreadCount)

getAccessCount

public Long getAccessCount()

setAccessCount

public void setAccessCount(Long accessCount)

isRunning

public boolean isRunning()

setRunning

public void setRunning(boolean running)

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)

getRobotTxtUrlSet

public Set<String> getRobotTxtUrlSet()

setRobotTxtUrlSet

public void setRobotTxtUrlSet(Set<String> robotTxtUrlSet)

getActiveThreadCountLock

public Object getActiveThreadCountLock()

getAccessCountLock

public Object getAccessCountLock()

getNumOfThread

public int getNumOfThread()

setNumOfThread

public void setNumOfThread(int numOfThread)

getMaxThreadCheckCount

public int getMaxThreadCheckCount()

setMaxThreadCheckCount

public void setMaxThreadCheckCount(int maxThreadCheckCount)

getMaxDepth

public int getMaxDepth()

setMaxDepth

public void setMaxDepth(int maxDepth)

getMaxAccessCount

public long getMaxAccessCount()

setMaxAccessCount

public void setMaxAccessCount(long maxAccessCount)


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