The Encog Project

org.encog.bot.spider
Class WorkloadItem

java.lang.Object
  extended by org.encog.util.orm.DataObject
      extended by org.encog.bot.spider.WorkloadItem
All Implemented Interfaces:
java.io.Serializable

public class WorkloadItem
extends DataObject

This is a Hibernate persisted class that holds the workload for the spider. This becomes a table in the database that holds the spider's workload.

Author:
jheaton
See Also:
Serialized Form

Constructor Summary
WorkloadItem()
           
 
Method Summary
 int getDepth()
           
 java.lang.String getHost()
           
 WorkloadItem getSource()
           
 char getStatus()
           
 java.lang.String getUrl()
           
 void setDepth(int depth)
          Set the depth of this workload.
 void setHost(java.lang.String host)
          The host of this workload.
 void setSource(WorkloadItem source)
          Set the source of this workload, null for top level.
 void setStatus(char status)
          Set the status of this workload.
 void setUrl(java.lang.String url)
          Set the URL for this workload.
 java.lang.String toString()
           
 void validate()
          Validate this object, not really needed.
 
Methods inherited from class org.encog.util.orm.DataObject
copy, equals, getBooleanValue, getCreated, getId, getLastUpdate, getVersion, setCreated, setLastUpdate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkloadItem

public WorkloadItem()
Method Detail

getDepth

public int getDepth()
Returns:
The depth of this workload.

getHost

public java.lang.String getHost()
Returns:
The host this workload is for.

getSource

public WorkloadItem getSource()
Returns:
The source of this workload item, or null for top level.

getStatus

public char getStatus()
Returns:
The status of this workload item, see WorkloadStatus for values.

getUrl

public java.lang.String getUrl()
Returns:
The URL for this workload.

setDepth

public void setDepth(int depth)
Set the depth of this workload.

Parameters:
depth - The depth of this workload.

setHost

public void setHost(java.lang.String host)
The host of this workload.

Parameters:
host - The host of this workload.

setSource

public void setSource(WorkloadItem source)
Set the source of this workload, null for top level.

Parameters:
source - The source of this workload.

setStatus

public void setStatus(char status)
Set the status of this workload.

Parameters:
status - The status (see WorkloadStatus).

setUrl

public void setUrl(java.lang.String url)
Set the URL for this workload.

Parameters:
url - The URL for this workload.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
This object as a string.

validate

public void validate()
Validate this object, not really needed.

Specified by:
validate in class DataObject

The Encog Project