|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.index.writer.HarvestLogWriter
Writes a Lucene Document that holds
information about a harvest.
The Lucene Document
fields that are
created by this class are:
requestdate
- The date of the client request. Stored.
requesturl
- The URL and query the client requested.
Stored.
remotehost
- The requesting client's host name or IP
address. Stored.
notes
- Free text notes related to this log entry.
Stored.
doctype
- The document format type, which is 'weblog,'
with '0' appended to support wildcard searching.
readerclass
- The class which is used to read Document
s created by this writer, which is
'WebLogReader'.
admindefaultfield
- The default field that holds all content for searching.
'WebLogReader'.
HarvestLogReader
Field Summary | |
---|---|
static int |
COMPLETED_OAI_ERROR
|
static int |
COMPLETED_SERIOUS_ERROR
|
static int |
COMPLETED_SUCCESSFUL
|
static int |
HARVEST_IN_PROGRESS
|
Constructor Summary | |
---|---|
HarvestLogWriter(String repositoryName,
String baseURL,
String set,
String shUid)
Constructor for the HarvestLogWriter object |
Method Summary | |
---|---|
protected void |
addToAdminDefaultField(String value,
StringBuffer adminDefaultBuffer)
Adds the given String to a text field referenced in the index by the field name 'default'. |
String |
getDocType()
Gets doctype, which is "harvestlog". |
String |
getReaderClass()
Gets the name of the concrete DocReader
class that is used to read this type of Document , which is "HarvestLogReader". |
Document |
logEntry(long harvestUid,
long startTime,
long endTime,
int recordCount,
int resumptionCount,
int messageType,
String harvestedRecordsDir,
String message)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int HARVEST_IN_PROGRESS
public static int COMPLETED_SUCCESSFUL
public static int COMPLETED_OAI_ERROR
public static int COMPLETED_SERIOUS_ERROR
Constructor Detail |
public HarvestLogWriter(String repositoryName, String baseURL, String set, String shUid)
Method Detail |
public String getDocType()
getDocType
in interface DocWriter
public String getReaderClass()
DocReader
class that is used to read this type of Document
, which is "HarvestLogReader".
getReaderClass
in interface DocWriter
public final Document logEntry(long harvestUid, long startTime, long endTime, int recordCount, int resumptionCount, int messageType, String harvestedRecordsDir, String message)
protected final void addToAdminDefaultField(String value, StringBuffer adminDefaultBuffer)
value
- A text string to be added to the indexed field named
'default.'adminDefaultBuffer
- The feature to be added to the ToDefaultField
attribute
|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |