Author: thorsten
Date: Wed May 6 21:34:37 2009
New Revision: 772434
URL: http://svn.apache.org/viewvc?rev=772434&view=rev
Log:
DROIDS-49
Make LinkTask.started non-final, and rename it propertly
Modified:
incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/LinkTask.java
Modified:
incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/LinkTask.java
URL:
http://svn.apache.org/viewvc/incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/LinkTask.java?rev=772434&r1=772433&r2=772434&view=diff
==============================================================================
---
incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/LinkTask.java
(original)
+++
incubator/droids/trunk/droids-core/src/main/java/org/apache/droids/LinkTask.java
Wed May 6 21:34:37 2009
@@ -19,12 +19,13 @@
import java.net.URI;
import java.util.Collection;
import java.util.Date;
+import java.io.Serializable;
import org.apache.droids.api.Link;
-public class LinkTask implements Link
+public class LinkTask implements Link, Serializable
{
- private final Date started;
+ private Date started;
private final int depth;
private final URI uri;
private final Link from;
@@ -32,7 +33,8 @@
private Date lastModifedDate;
private Collection<URI> linksTo;
private String anchorText;
-
+ private int weight;
+
public LinkTask( Link from, URI uri, int depth )
{
this.from = from;
@@ -40,7 +42,16 @@
this.depth = depth;
this.started = new Date();
}
-
+
+ public LinkTask( Link from, URI uri, int depth, int weight )
+ {
+ this.from = from;
+ this.uri = uri;
+ this.depth = depth;
+ this.started = new Date();
+ this.weight = weight;
+ }
+
public String getId() {
return uri.toString();
}
@@ -49,6 +60,10 @@
return started;
}
+ public void setTaskDate(Date started) {
+ this.started = started;
+ }
+
public int getDepth() {
return depth;
}
@@ -88,4 +103,12 @@
public void setAnchorText(String anchorText) {
this.anchorText = anchorText;
}
+
+ public int getWeight() {
+ return weight;
+ }
+
+ public void setWeight(int weight) {
+ this.weight = weight;
+ }
}
\ No newline at end of file