|
Oracle Ultra Search Java API Reference Release 10g (10.1) B12028-02 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DocumentService is an interface used by a document service agent to submit document attributes and/or document contents to the crawler
Field Summary | |
static int |
FOLLOW_AND_INDEX |
static int |
FOLLOW_AND_NO_INDEX |
static int |
FOLLOW_UP |
static int |
NO_CHANGE status codes for doService |
static int |
NO_FOLLOW_AND_INDEX |
static int |
NO_FOLLOW_AND_NO_INDEX |
static int |
USE_CURRENT status codes for getRobotControl |
Method Summary | |
void |
close() Shut down the agent |
int |
doService(java.lang.String documentUrl, int urlId, java.io.Reader docReader) Ask the agent to prepare for fetching of document URL and its attribute from the data source. |
UrlData |
getAttribute(int urlId) Set the attributes of the document identified by urlId |
java.io.Reader |
getContents(int urlId) Get the new contents of the document |
int |
getRobotControl(int urlId) Get the attributes of the document identified by urlId |
void |
open(DataSourceParams params, java.io.PrintWriter log) Initialize the document service agent |
void |
received(int urlId) Called after finishing work with the target document to allow the agent to do any clean up work associate with its service |
Field Detail |
public static final int NO_CHANGE
public static final int FOLLOW_UP
public static final int USE_CURRENT
public static final int FOLLOW_AND_INDEX
public static final int FOLLOW_AND_NO_INDEX
public static final int NO_FOLLOW_AND_INDEX
public static final int NO_FOLLOW_AND_NO_INDEX
Method Detail |
public void open(DataSourceParams params, java.io.PrintWriter log) throws AgentException
params
- the agent parameterslog
- the crawler log fileAgentException
- if unable to initialize the agentpublic int doService(java.lang.String documentUrl, int urlId, java.io.Reader docReader) throws AgentException
documentUrl
- the URL string of the documenturlId
- the URL id associated with this documentdocReader
- Reader access to the documentAgentException
- if unable to process the document. Throw fatal agent exception to stop the crawler. Throw warning agent exception for warning.public UrlData getAttribute(int urlId)
urlId
- URL idpublic int getRobotControl(int urlId)
urlId
- URL idpublic java.io.Reader getContents(int urlId)
urlId
- URL idpublic void received(int urlId) throws AgentException
AgentException
- for any error the crawler should be aware ofpublic void close() throws AgentException
AgentException
- if unable to close the agent
|
Oracle Ultra Search Java API Reference Release 10g (10.1) B12028-02 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |