org.encog.bot.spider.workload.memory
Class URLStatus
java.lang.Object
org.encog.bot.spider.workload.memory.URLStatus
public class URLStatus
- extends java.lang.Object
URLStatus: This class holds in memory status information for URLs.
Specifically it holds their processing status, depth and source URL.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLStatus
public URLStatus()
getDepth
public int getDepth()
- Returns:
- the depth
getSource
public java.net.URL getSource()
- Returns:
- the source
getStatus
public URLStatus.Status getStatus()
- Returns:
- the status
setDepth
public void setDepth(int depth)
- Parameters:
depth - the depth to set
setSource
public void setSource(java.net.URL source)
- Parameters:
source - the source to set
setStatus
public void setStatus(URLStatus.Status status)
- Parameters:
status - the status to set