public class Request extends WorkflowJob
Modifier and Type | Field and Description |
---|---|
private long |
appdate |
private int |
depth |
static int |
descrLength |
private Bitfield |
flags |
private int |
initialHash |
private byte[] |
initiator |
private java.lang.String |
name |
private java.lang.String |
profileHandle |
private byte[] |
refhash |
static Row |
rowdef |
private java.lang.String |
statusMessage |
private int |
timezoneOffset |
private DigestURL |
url |
poisonPill, status, STATUS_FINISHED, STATUS_INITIATED, STATUS_POISON, STATUS_RUNNING, STATUS_STARTED
Constructor and Description |
---|
Request() |
Request(byte[] initiator,
DigestURL url,
byte[] referrerhash,
java.lang.String name,
java.util.Date appdate,
java.lang.String profileHandle,
int depth,
int timezoneOffset)
A Request Entry is a object that is created to provide all information to load a specific resource.
|
Request(DigestURL url,
byte[] referrerhash)
convenience method for 'full' request object
|
Request(Row.Entry entry) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
appdate() |
int |
depth() |
java.lang.String |
getStatus() |
int |
hashCode() |
byte[] |
initiator() |
private void |
insertEntry(Row.Entry entry) |
java.lang.String |
name() |
java.lang.String |
profileHandle() |
boolean |
proxy() |
void |
redirectURL(DigestURL redirectedURL) |
byte[] |
referrerhash() |
void |
setStatus(java.lang.String s,
int code) |
int |
timezoneOffset() |
Row.Entry |
toRow() |
java.lang.String |
toString() |
DigestURL |
url() |
public static final Row rowdef
public static final int descrLength
private byte[] initiator
private byte[] refhash
private DigestURL url
private java.lang.String name
private long appdate
private java.lang.String profileHandle
private int depth
private Bitfield flags
private java.lang.String statusMessage
private int initialHash
private int timezoneOffset
public Request()
public Request(DigestURL url, byte[] referrerhash)
url
- referrerhash
- public Request(byte[] initiator, DigestURL url, byte[] referrerhash, java.lang.String name, java.util.Date appdate, java.lang.String profileHandle, int depth, int timezoneOffset)
initiator
- the hash of the initiator peerurl
- the URL
to crawlreferrer
- the hash of the referrer URLname
- the name of the document to crawlappdate
- the time when the url was first time appearedprofileHandle
- the name of the prefetch profile. This must not be null!depth
- the crawling depth of the entrypublic Request(Row.Entry entry) throws java.io.IOException
java.io.IOException
private void insertEntry(Row.Entry entry) throws java.io.IOException
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public void setStatus(java.lang.String s, int code)
public java.lang.String getStatus()
public Row.Entry toRow()
public DigestURL url()
public void redirectURL(DigestURL redirectedURL)
public byte[] referrerhash()
public byte[] initiator()
public boolean proxy()
public java.util.Date appdate()
public java.lang.String name()
public int depth()
public int timezoneOffset()
public java.lang.String profileHandle()
public java.lang.String toString()
toString
in class java.lang.Object