org.supermind.crawl
Class ScheduledURL

java.lang.Object
  extended by org.supermind.crawl.ScheduledURL
All Implemented Interfaces:
org.apache.nutch.io.Writable

public class ScheduledURL
extends java.lang.Object
implements org.apache.nutch.io.Writable

A URL to be fetched. Roughly equivalent to Nutch's FetchListEntry.


Field Summary
(package private) static long currentItemId
           
 long id
          URL's id.
 long lastModified
           
 long parentId
          The immediate URL that contained this link.
 int retries
           
 int seedIndex
          Which seed this URL originated from.
 java.net.URL url
          URL to fetch.
 
Constructor Summary
ScheduledURL()
           
ScheduledURL(int seedIndex, long parentId, java.net.URL url)
           
 
Method Summary
(package private) static long assignId()
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static ScheduledURL read(java.io.DataInput in)
           
 void readFields(java.io.DataInput in)
           
 java.lang.String toString()
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

currentItemId

static long currentItemId

id

public long id
URL's id.


lastModified

public long lastModified

parentId

public long parentId
The immediate URL that contained this link.


retries

public int retries

seedIndex

public int seedIndex
Which seed this URL originated from.


url

public java.net.URL url
URL to fetch.

Constructor Detail

ScheduledURL

public ScheduledURL()

ScheduledURL

public ScheduledURL(int seedIndex,
                    long parentId,
                    java.net.URL url)
Method Detail

assignId

static long assignId()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

read

public static ScheduledURL read(java.io.DataInput in)
                         throws java.io.IOException
Throws:
java.io.IOException

readFields

public void readFields(java.io.DataInput in)
                throws java.io.IOException
Specified by:
readFields in interface org.apache.nutch.io.Writable
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Specified by:
write in interface org.apache.nutch.io.Writable
Throws:
java.io.IOException