The Encog Project

org.encog.bot.spider.workload.memory
Class URLStatus

java.lang.Object
  extended by 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.


Nested Class Summary
static class URLStatus.Status
          The values for URL statues.
 
Constructor Summary
URLStatus()
           
 
Method Summary
 int getDepth()
           
 java.net.URL getSource()
           
 URLStatus.Status getStatus()
           
 void setDepth(int depth)
           
 void setSource(java.net.URL source)
           
 void setStatus(URLStatus.Status status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLStatus

public URLStatus()
Method Detail

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

The Encog Project