org.apache.droids.robot.walker
Class FileTask

java.lang.Object
  extended by org.apache.droids.robot.walker.FileTask
All Implemented Interfaces:
java.io.Serializable, Task

public class FileTask
extends java.lang.Object
implements Task

See Also:
Serialized Form

Constructor Summary
FileTask(java.io.File file, int depth)
           
 
Method Summary
 int getDepth()
           
 java.io.File getFile()
           
 java.lang.String getId()
          The id of the task.
 java.util.Date getTaskDate()
          When was the task created
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileTask

public FileTask(java.io.File file,
                int depth)
Method Detail

getId

public java.lang.String getId()
Description copied from interface: Task
The id of the task. In a standard crawl that is most likely the url that identifies the task

Specified by:
getId in interface Task
Returns:
The id of the task

getTaskDate

public java.util.Date getTaskDate()
Description copied from interface: Task
When was the task created

Specified by:
getTaskDate in interface Task
Returns:
the date when the task was created.

getDepth

public int getDepth()
Specified by:
getDepth in interface Task
Returns:
The depth of the task

getFile

public java.io.File getFile()

toString

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


Copyright © 2007-2009. All Rights Reserved.